aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-11-05 18:06:24 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-11-05 18:06:24 +0000
commitc7dd4f95118f40d8fcb2f83c11d9419aba5bdef2 (patch)
tree38db51321c0dcdb8d7c8354f00df4e3e836feb74
parent48da07548b0224b9ab9996010c2e8467a9f5a2a6 (diff)
downloadnewlib-c7dd4f95118f40d8fcb2f83c11d9419aba5bdef2.zip
newlib-c7dd4f95118f40d8fcb2f83c11d9419aba5bdef2.tar.gz
newlib-c7dd4f95118f40d8fcb2f83c11d9419aba5bdef2.tar.bz2
* libc/include/sys/unistd.h: Add prototypes for endusershell(),
getusershell(), iruserok(), revoke(), ruserok() and setusershell() when __CYGWIN__ is defined. * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and logwtmp().
-rw-r--r--newlib/ChangeLog8
-rw-r--r--newlib/libc/include/sys/unistd.h14
-rw-r--r--newlib/libc/sys/cygwin/sys/utmp.h2
3 files changed, 24 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 4cb8a19..a1c1591 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,11 @@
+2001-11-05 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/include/sys/unistd.h: Add prototypes for endusershell(),
+ getusershell(), iruserok(), revoke(), ruserok() and setusershell()
+ when __CYGWIN__ is defined.
+ * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
+ logwtmp().
+
2001-11-01 Arati Dikey <aratidikey@hotmail.com>
* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index b9e7690..8ebabe3 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -29,6 +29,9 @@ char _EXFUN(*ctermid, (char *__s ));
char _EXFUN(*cuserid, (char *__s ));
int _EXFUN(dup, (int __fildes ));
int _EXFUN(dup2, (int __fildes, int __fildes2 ));
+#if defined(__CYGWIN__)
+void _EXFUN(endusershell, (void));
+#endif
int _EXFUN(execl, (const char *__path, const char *, ... ));
int _EXFUN(execle, (const char *__path, const char *, ... ));
int _EXFUN(execlp, (const char *__file, const char *, ... ));
@@ -60,7 +63,9 @@ pid_t _EXFUN(getpid, (void ));
pid_t _EXFUN(getppid, (void ));
uid_t _EXFUN(getuid, (void ));
#ifdef __CYGWIN__
+char * _EXFUN(getusershell, (void));
char _EXFUN(*getwd, (char *__buf ));
+int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
#endif
int _EXFUN(isatty, (int __fildes ));
int _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
@@ -74,7 +79,13 @@ int _EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
#endif
int _EXFUN(pipe, (int __fildes[2] ));
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
+#if defined(__CYGWIN__)
+int _EXFUN(revoke, (char *path));
+#endif
int _EXFUN(rmdir, (const char *__path ));
+#if defined(__CYGWIN__)
+int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
+#endif
#if defined(__rtems__)
void * _EXFUN(sbrk, (ptrdiff_t __incr));
#else
@@ -89,6 +100,9 @@ int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
int _EXFUN(setpgrp, (void ));
pid_t _EXFUN(setsid, (void ));
int _EXFUN(setuid, (uid_t __uid ));
+#if defined(__CYGWIN__)
+void _EXFUN(setusershell, (void));
+#endif
unsigned _EXFUN(sleep, (unsigned int __seconds ));
void _EXFUN(swab, (const void *, void *, ssize_t));
long _EXFUN(sysconf, (int __name ));
diff --git a/newlib/libc/sys/cygwin/sys/utmp.h b/newlib/libc/sys/cygwin/sys/utmp.h
index 7ba33b4..12257f5 100644
--- a/newlib/libc/sys/cygwin/sys/utmp.h
+++ b/newlib/libc/sys/cygwin/sys/utmp.h
@@ -50,6 +50,8 @@ extern void utmpname (const char *);
void login (struct utmp *);
int logout (char *);
+int login_tty (int);
+void logwtmp (char *, char *, char *);
#ifdef __cplusplus
}