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.
This commit is contained in:
Jeff Johnston 2001-02-09 00:13:54 +00:00
parent 889109ab1f
commit 8915d10a26
6 changed files with 16 additions and 13 deletions

View File

@ -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> 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/sys/types.h: Removed. * libc/sys/rtems/sys/types.h: Removed.

View File

@ -75,6 +75,7 @@ void setgrfile (const char *);
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
char *group_from_gid (gid_t, int); char *group_from_gid (gid_t, int);
int setgroupent (int); int setgroupent (int);
int initgroups (const char *, gid_t);
#endif /* !_XOPEN_SOURCE */ #endif /* !_XOPEN_SOURCE */
#endif /* !_POSIX_SOURCE */ #endif /* !_POSIX_SOURCE */

View File

@ -209,7 +209,7 @@ int _EXFUN(fileno, (FILE *));
int _EXFUN(getw, (FILE *)); int _EXFUN(getw, (FILE *));
int _EXFUN(pclose, (FILE *)); int _EXFUN(pclose, (FILE *));
FILE * _EXFUN(popen, (const char *, const char *)); FILE * _EXFUN(popen, (const char *, const char *));
int _EXFUN(putw, (int, FILE *)); int _EXFUN(putw, (int w, FILE *));
void _EXFUN(setbuffer, (FILE *, char *, int)); void _EXFUN(setbuffer, (FILE *, char *, int));
int _EXFUN(setlinebuf, (FILE *)); int _EXFUN(setlinebuf, (FILE *));
#endif #endif

View File

@ -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 changes, then we will need to do something else, perhaps along the
lines of <machine/types.h>. */ lines of <machine/types.h>. */
int _EXFUN(kill, (int, int)); int _EXFUN(kill, (int, int));
int _EXFUN(killpg, (pid_t, int));
int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *)); int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
int _EXFUN(sigaddset, (sigset_t *, const int)); int _EXFUN(sigaddset, (sigset_t *, const int));
int _EXFUN(sigdelset, (sigset_t *, const int)); int _EXFUN(sigdelset, (sigset_t *, const int));

View File

@ -124,7 +124,7 @@ int _EXFUN(mkfifo,( const char *__path, mode_t __mode ));
int _EXFUN(stat,( const char *__path, struct stat *__sbuf )); int _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
mode_t _EXFUN(umask,( mode_t __mask )); 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(mknod,( const char *_path, mode_t _mode, dev_t dev ));
int _EXFUN(lstat,( const char *__path, struct stat *__buf )); int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
#endif #endif
@ -134,15 +134,6 @@ int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf )); int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
int _EXFUN(_stat,( const char *__path, 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_ */ #endif /* !_STAT_H_ */
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -50,6 +50,7 @@ int _EXFUN(getlogin_r, (char *name, size_t namesize) );
#endif #endif
char _EXFUN(*getpass, (__const char *__prompt)); char _EXFUN(*getpass, (__const char *__prompt));
size_t _EXFUN(getpagesize, (void)); size_t _EXFUN(getpagesize, (void));
pid_t _EXFUN(getpgid, (pid_t));
pid_t _EXFUN(getpgrp, (void )); pid_t _EXFUN(getpgrp, (void ));
pid_t _EXFUN(getpid, (void )); pid_t _EXFUN(getpid, (void ));
pid_t _EXFUN(getppid, (void )); pid_t _EXFUN(getppid, (void ));
@ -83,6 +84,7 @@ int _EXFUN(seteuid, (uid_t __uid ));
#endif #endif
int _EXFUN(setgid, (gid_t __gid )); int _EXFUN(setgid, (gid_t __gid ));
int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid )); int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
int _EXFUN(setpgrp, (void ));
pid_t _EXFUN(setsid, (void )); pid_t _EXFUN(setsid, (void ));
int _EXFUN(setuid, (uid_t __uid )); int _EXFUN(setuid, (uid_t __uid ));
unsigned _EXFUN(sleep, (unsigned int __seconds )); 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 )); int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
char _EXFUN(*ttyname, (int __fildes )); char _EXFUN(*ttyname, (int __fildes ));
int _EXFUN(unlink, (const char *__path )); int _EXFUN(unlink, (const char *__path ));
int _EXFUN(vhangup, (void ));
/* POSIX 1003.1b-1993 says write() returns ssize_t */ /* POSIX 1003.1b-1993 says write() returns ssize_t */
#if defined(__rtems__) #if defined(__rtems__)
ssize_t _EXFUN(write, (int __fildes, const void *__buf, size_t __nbyte )); 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 STDOUT_FILENO 1 /* standard output file descriptor */
#define STDERR_FILENO 2 /* standard error 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 * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 96
* *