diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-02-09 00:13:54 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-02-09 00:13:54 +0000 |
commit | 8915d10a26e51b54ae5a908d0697ace2ab64ef53 (patch) | |
tree | 2206381690f64111bbf9565f5a3ec64ed6d0024b /newlib/libc/include/sys | |
parent | 889109ab1f067163550437c266efb53710c74ab9 (diff) | |
download | cygnal-8915d10a26e51b54ae5a908d0697ace2ab64ef53.tar.gz cygnal-8915d10a26e51b54ae5a908d0697ace2ab64ef53.tar.bz2 cygnal-8915d10a26e51b54ae5a908d0697ace2ab64ef53.zip |
2001-02-08 Edward M. Lee <tailbert@yahoo.com>
* libc/include/grp.h: add prototype for initgroups.
* libc/include/stdio.h: fix prototype for putw.
* libc/include/sys/signal.h: add prototype for killpg.
* libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
* libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
vhangup and remove duplicate sysconf prototype.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r-- | newlib/libc/include/sys/signal.h | 1 | ||||
-rw-r--r-- | newlib/libc/include/sys/stat.h | 11 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 5 |
3 files changed, 5 insertions, 12 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 496fc58a9..e590ae38c 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -147,6 +147,7 @@ int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset)); changes, then we will need to do something else, perhaps along the lines of <machine/types.h>. */ int _EXFUN(kill, (int, int)); +int _EXFUN(killpg, (pid_t, int)); int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *)); int _EXFUN(sigaddset, (sigset_t *, const int)); int _EXFUN(sigdelset, (sigset_t *, const int)); diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index c5102aaf7..2ab364208 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -124,7 +124,7 @@ int _EXFUN(mkfifo,( const char *__path, mode_t __mode )); int _EXFUN(stat,( const char *__path, struct stat *__sbuf )); mode_t _EXFUN(umask,( mode_t __mask )); -#if defined(__rtems__) +#if defined(__rtems__) || defined(__CYGWIN__) int _EXFUN(mknod,( const char *_path, mode_t _mode, dev_t dev )); int _EXFUN(lstat,( const char *__path, struct stat *__buf )); #endif @@ -134,15 +134,6 @@ int _EXFUN(lstat,( const char *__path, struct stat *__buf )); int _EXFUN(_fstat,( int __fd, struct stat *__sbuf )); int _EXFUN(_stat,( const char *__path, struct stat *__sbuf )); -#ifdef __CYGWIN__ -int _EXFUN(lstat,( const char *__path, struct stat *__buf )); -#endif - -#if defined(__rtems__) -int _EXFUN(mknod,( const char *_path, mode_t _mode, dev_t dev )); -int _EXFUN(lstat,( const char *_path, struct stat *_sbuf )); -#endif - #endif /* !_STAT_H_ */ #ifdef __cplusplus } diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index e01831ef0..42cf56ebf 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -50,6 +50,7 @@ int _EXFUN(getlogin_r, (char *name, size_t namesize) ); #endif char _EXFUN(*getpass, (__const char *__prompt)); size_t _EXFUN(getpagesize, (void)); +pid_t _EXFUN(getpgid, (pid_t)); pid_t _EXFUN(getpgrp, (void )); pid_t _EXFUN(getpid, (void )); pid_t _EXFUN(getppid, (void )); @@ -83,6 +84,7 @@ int _EXFUN(seteuid, (uid_t __uid )); #endif int _EXFUN(setgid, (gid_t __gid )); int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid )); +int _EXFUN(setpgrp, (void )); pid_t _EXFUN(setsid, (void )); int _EXFUN(setuid, (uid_t __uid )); unsigned _EXFUN(sleep, (unsigned int __seconds )); @@ -92,6 +94,7 @@ pid_t _EXFUN(tcgetpgrp, (int __fildes )); int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id )); char _EXFUN(*ttyname, (int __fildes )); int _EXFUN(unlink, (const char *__path )); +int _EXFUN(vhangup, (void )); /* POSIX 1003.1b-1993 says write() returns ssize_t */ #if defined(__rtems__) ssize_t _EXFUN(write, (int __fildes, const void *__buf, size_t __nbyte )); @@ -144,8 +147,6 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); #define STDOUT_FILENO 1 /* standard output file descriptor */ #define STDERR_FILENO 2 /* standard error file descriptor */ -long _EXFUN(sysconf, (int __name)); - /* * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 96 * |