Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-09-10 19:51:59 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-09-10 19:51:59 +0400
commit34a1d63d80fcc64cced0fb40b03f1c2a6fbc8ab8 (patch)
treeed8ef52985251bc75d6cd9ee91e3d67b6c694099 /winsup/cygwin/tty.cc
parent136265194d593ddee3923cdb3bc0fcfe087a7e5a (diff)
* 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/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index d972f0d82..df301819c 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -40,6 +40,13 @@ unlockpt (int fd)
}
extern "C" int
+revoke (char *ttyname)
+{
+ set_errno (ENOSYS);
+ return -1;
+}
+
+extern "C" int
ttyslot (void)
{
if (NOTSTATE (myself, PID_USETTY))