diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-09-10 15:51:59 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-09-10 15:51:59 +0000 |
commit | 34a1d63d80fcc64cced0fb40b03f1c2a6fbc8ab8 (patch) | |
tree | ed8ef52985251bc75d6cd9ee91e3d67b6c694099 /winsup/cygwin/include | |
parent | 136265194d593ddee3923cdb3bc0fcfe087a7e5a (diff) | |
download | cygnal-34a1d63d80fcc64cced0fb40b03f1c2a6fbc8ab8.tar.gz cygnal-34a1d63d80fcc64cced0fb40b03f1c2a6fbc8ab8.tar.bz2 cygnal-34a1d63d80fcc64cced0fb40b03f1c2a6fbc8ab8.zip |
* Makefile.in (DLL_OFILES): Add bsdlib.o.
* autoload.cc (RegisterServiceProcess): Add.
* bsdlib.cc: New file.
(daemon): New function.
(login_tty): Ditto.
(openpty): Ditto.
(forkpty): Ditto.
* cygwin.din: Export daemon, forkpty, login_tty, logwtmp, updwtmp,
openpty and revoke.
* syscalls.cc (updwtmp): New function, writing to wtmp exclusively.
(logwtmp): Ditto.
(login): Call updwtmp instead of writing to wtmp by itself.
(logout): Ditto.
* tty.cc (revoke): New funtion.
* include/paths.h: Define _PATH_DEVNULL.
* include/pty.h: New header.
* include/cygwin/version.h: Bump API minor number.
* include/sys/utmp.h: Declare logwtmp with const arguments.
Declare updwtmp.
* lib/iruserok.c: New file.
(ruserok): New function.
(iruserok): Ditto.
(__ivaliduser): Ditto.
(__icheckhost): Ditto.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 6 | ||||
-rw-r--r-- | winsup/cygwin/include/paths.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/pty.h | 18 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/utmp.h | 3 |
4 files changed, 26 insertions, 3 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 9fc8cdf2b..c37f52910 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -214,14 +214,16 @@ details. */ argz_create_sep argz_delete argz_extract argz_insert argz_next argz_replace argz_stringify envz_add envz_entry envz_get envz_merge envz_remove envz_strip - 92: Export getusershell, setusershell, eetusershell + 92: Export getusershell, setusershell, endusershell + 93: Export daemon, forkpty, openpty, iruserok, ruserok, login_tty, + openpty, forkpty, revoke, logwtmp, updwtmp */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 92 +#define CYGWIN_VERSION_API_MINOR 93 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/paths.h b/winsup/cygwin/include/paths.h index e5ff51e96..fd03f9790 100644 --- a/winsup/cygwin/include/paths.h +++ b/winsup/cygwin/include/paths.h @@ -16,4 +16,6 @@ details. */ #define _PATH_LASTLOG "/var/log/lastlog" #define _PATH_UTMP "/var/run/utmp" #define _PATH_WTMP "/var/log/wtmp" +#define _PATH_DEVNULL "/dev/null" + #endif /* _PATHS_H_ */ diff --git a/winsup/cygwin/include/pty.h b/winsup/cygwin/include/pty.h new file mode 100644 index 000000000..e4b4da03f --- /dev/null +++ b/winsup/cygwin/include/pty.h @@ -0,0 +1,18 @@ +#ifndef __PTY_H__ +#define __PTY_H__ + +#include <_ansi.h> +#include <sys/termios.h> + +#ifdef __cplusplus +extern "C" { +#endif + +int _EXFUN(openpty ,(int *, int *, char *, struct termios *, struct winsize *)); +int _EXFUN(forkpty ,(int *, char *, struct termios *, struct winsize *)); + +#ifdef __cplusplus +} +#endif + +#endif /* __PTY_H__ */ diff --git a/winsup/cygwin/include/sys/utmp.h b/winsup/cygwin/include/sys/utmp.h index 2d959d806..b78c56317 100644 --- a/winsup/cygwin/include/sys/utmp.h +++ b/winsup/cygwin/include/sys/utmp.h @@ -60,7 +60,8 @@ extern void utmpname (const char *); void login (struct utmp *); int logout (char *); int login_tty (int); -void logwtmp (char *, char *, char *); +void updwtmp (const char *, const struct utmp *); +void logwtmp (const char *, const char *, const char *); #ifdef __cplusplus } |