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 | |
parent | 889109ab1f067163550437c266efb53710c74ab9 (diff) | |
download | newlib-8915d10a26e51b54ae5a908d0697ace2ab64ef53.zip newlib-8915d10a26e51b54ae5a908d0697ace2ab64ef53.tar.gz newlib-8915d10a26e51b54ae5a908d0697ace2ab64ef53.tar.bz2 |
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')
-rw-r--r-- | newlib/ChangeLog | 9 | ||||
-rw-r--r-- | newlib/libc/include/grp.h | 1 | ||||
-rw-r--r-- | newlib/libc/include/stdio.h | 2 | ||||
-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 |
6 files changed, 16 insertions, 13 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c52fed6..c1aaf24 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,12 @@ +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. + 2001-02-07 Jeff Johnston <jjohnstn@redhat.com> * libc/sys/rtems/sys/types.h: Removed. diff --git a/newlib/libc/include/grp.h b/newlib/libc/include/grp.h index b8680a5..2e676f3 100644 --- a/newlib/libc/include/grp.h +++ b/newlib/libc/include/grp.h @@ -75,6 +75,7 @@ void setgrfile (const char *); #ifndef _XOPEN_SOURCE char *group_from_gid (gid_t, int); int setgroupent (int); +int initgroups (const char *, gid_t); #endif /* !_XOPEN_SOURCE */ #endif /* !_POSIX_SOURCE */ diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 9c1a06f..5c5dae4 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -209,7 +209,7 @@ int _EXFUN(fileno, (FILE *)); int _EXFUN(getw, (FILE *)); int _EXFUN(pclose, (FILE *)); FILE * _EXFUN(popen, (const char *, const char *)); -int _EXFUN(putw, (int, FILE *)); +int _EXFUN(putw, (int w, FILE *)); void _EXFUN(setbuffer, (FILE *, char *, int)); int _EXFUN(setlinebuf, (FILE *)); #endif diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 496fc58..e590ae3 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 c5102aa..2ab3642 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 e01831e..42cf56e 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 * |