diff options
Diffstat (limited to 'newlib/libc')
-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 |
5 files changed, 7 insertions, 13 deletions
diff --git a/newlib/libc/include/grp.h b/newlib/libc/include/grp.h index b8680a5d8..2e676f366 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 9c1a06f76..5c5dae4b4 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 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 * |