diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-01-08 19:25:21 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-01-08 19:25:21 +0000 |
commit | 9f13ccb3562531b31642db1151f126fe31c972fb (patch) | |
tree | 0f61ce396a628e43e9951f255e68d4ef1c59c665 /newlib/libc/include | |
parent | 9488c414887b7bbcf0123943d156af24b230d84f (diff) | |
download | cygnal-9f13ccb3562531b31642db1151f126fe31c972fb.tar.gz cygnal-9f13ccb3562531b31642db1151f126fe31c972fb.tar.bz2 cygnal-9f13ccb3562531b31642db1151f126fe31c972fb.zip |
2004-01-08 Joel Sherrill <joel@oarcorp.com>
* libc/sys/rtems/sys/queue.h: New file.
* libc/include/sys/signal.h: Reflect renumbering of signals to
fit into 32-bit mask.
* libc/include/sys/unistd.h: Add fdatasync() prototype.
* libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
required. In particular, add the reentrant variants of libc calls.
* libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/sys/signal.h | 31 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 1 |
2 files changed, 19 insertions, 13 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 2bc4eeefe..2bfbbf0a8 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -237,25 +237,30 @@ int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value)); #define SIGTERM 15 /* software termination signal from kill */ #if defined(__rtems__) -#define SIGUSR1 16 /* reserved as application defined signal 1 */ -#define SIGUSR2 17 /* reserved as application defined signal 2 */ - -#define __SIGFIRSTNOTRT SIGHUP -#define __SIGLASTNOTRT SIGUSR2 - -/* RTEMS does not support job control, hence no Job Control Signals are - defined per P1003.1b-1993, p. 60-61. - - RTEMS does not support memory protection, hence no Memory Protection - Signals are defined per P1003.1b-1993, p. 60-61. */ +#define SIGURG 16 /* urgent condition on IO channel */ +#define SIGSTOP 17 /* sendable stop signal not from tty */ +#define SIGTSTP 18 /* stop signal from tty */ +#define SIGCONT 19 /* continue a stopped process */ +#define SIGCHLD 20 /* to parent on child stop or exit */ +#define SIGCLD 20 /* System V name for SIGCHLD */ +#define SIGTTIN 21 /* to readers pgrp upon background tty read */ +#define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ +#define SIGIO 23 /* input/output possible signal */ +#define SIGPOLL SIGIO /* System V name for SIGIO */ +#define SIGWINCH 24 /* window changed */ +#define SIGUSR1 25 /* user defined signal 1 */ +#define SIGUSR2 26 /* user defined signal 2 */ /* Real-Time Signals Range, P1003.1b-1993, p. 61 NOTE: By P1003.1b-1993, this should be at least RTSIG_MAX (which is a minimum of 8) signals. */ +#define SIGRTMIN 27 +#define SIGRTMAX 31 +#define __SIGFIRSTNOTRT SIGHUP +#define __SIGLASTNOTRT SIGUSR2 -#define SIGRTMIN 18 -#define SIGRTMAX 32 +#define NSIG 32 /* signal 0 implied */ #elif defined(__svr4__) /* svr4 specifics. different signals above 15, and sigaction. */ diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index e86895928..387e2ef17 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -53,6 +53,7 @@ int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group )); pid_t _EXFUN(fork, (void )); long _EXFUN(fpathconf, (int __fd, int __name )); int _EXFUN(fsync, (int __fd)); +int _EXFUN(fdatasync, (int __fd)); char _EXFUN(*getcwd, (char *__buf, size_t __size )); #if defined(__CYGWIN__) int _EXFUN(getdomainname ,(char *__name, size_t __len)); |