haiku/headers/posix
Axel Dörfler a728651f04 Some more work on the signal code:
* get_signal_stack() checked the wrong sig_action field (index is signal-1), also,
  it had an off-by-one error in the stack range check.
* factored out a restart_syscall() function to avoid code duplication
* arch_setup_signal_frame() relied on the fact that vregs and the signal stack code
  is a multiple of 4 bytes in size.
* Fixed sigaction(): it did return the error code directly instead of setting errno.
* signal() actually had a work-around for the broken sigaction()...
* Replaced the sig_func_t typedef with a sighandler_t typedef - this is non-standard
  anyway, but now we're at least compatible with the GNU world instead of introducing
  our own solution (BSD seems to use sig_t here, BTW).
* Removed now unused sigval structure from the header; it should be added again as
  soon as we start supporting it.
* SA_RESETHAND and SA_ONESHOT are the same thing; the former did not work before.
* Made the non-standard SA_* flags refer to the standard ones instead of the other
  way around.
* Added a test application for various signal features - works fine under Haiku,
  tested also under Linux and BeOS (the latter fails as it does not support SA_RESTART).
  More tests should be added, though.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-17 11:01:09 +00:00
..
arch * Implemented [sig]{set,long}jmp() for PPC. No idea, if it is any good, 2005-12-10 22:56:52 +00:00
arpa replaced size_t with socklen_t where appropriate following POSIX 2007-01-08 20:57:28 +00:00
net added IFM_AUTO to if_media and ifconfig. 2007-05-07 05:28:55 +00:00
netinet make tcphdr public, it is used by several applications. 2007-05-08 13:10:45 +00:00
netinet6 * Removed superfluous prototypes from in.h. Minor cleanup. 2006-12-18 17:12:54 +00:00
sys Support getting route information for a specific destination 2007-04-01 12:06:16 +00:00
alloca.h
assert.h
bsd_mem.h Merged changes from branch build_system_redesign at revision 14573. 2005-10-29 16:27:43 +00:00
ctype.h Use -I instead of -isystem for system header directories when building 2007-03-14 20:36:42 +00:00
dirent.h added two missing functions : seekdir and telldir 2005-11-04 16:13:13 +00:00
div_t.h
dlfcn.h
endian.h
errno.h
fcntl.h * Added a note that the flock() definitions are misplaced here. 2007-01-06 17:25:52 +00:00
fnmatch.h
getopt.h
glob.h
grp.h
iconv.h
inttypes.h
iovec.h
libio.h
limits.h * BEntry::GetStat() and BNode::GetStat() used sizeof(struct stat) for the kernel 2006-06-21 13:49:16 +00:00
locale.h
malloc.h * Implemented a simple version of the private function mstats() (BeIDE needs it). 2006-03-14 23:15:57 +00:00
math.h * fix ticket #1365, isinf(x) -> isinf(value) 2007-08-08 09:14:38 +00:00
memory.h Merged changes from branch build_system_redesign at revision 14573. 2005-10-29 16:27:43 +00:00
netdb.h replaced size_t with socklen_t where appropriate following POSIX 2007-01-08 20:57:28 +00:00
nl_types.h
null.h
poll.h
pthread.h * PTHREAD_MUTEX_INITIALIZER inits to NULL, pthread_mutex_lock now call pthread_mutex_init to support this PTHREAD_MUTEX_INITIALIZER 2006-06-21 14:07:34 +00:00
pwd.h
regex.h
resolv.h Merge of branches/team/network/new_stack - not yet complete as SVN does only support 2006-08-08 12:33:33 +00:00
setjmp.h * Implemented [sig]{set,long}jmp() for PPC. No idea, if it is any good, 2005-12-10 22:56:52 +00:00
signal.h Some more work on the signal code: 2007-08-17 11:01:09 +00:00
size_t.h Removed kludge that was only necessary for building the old bfs_shell. 2007-05-04 07:59:47 +00:00
stdarg.h
stdbool.h GCC 3 conforms to ISO-C-99 so _Bool is a built-in type; we should not try to redefine it. 2005-04-13 16:51:55 +00:00
stddef.h use __builtin_offsetof for gcc4 and superior, it avoids a gcc4 broken build with template use of offsetof() 2007-04-12 18:36:37 +00:00
stdint.h avoids a gcc warning on definition of INT32_MIN 2006-05-17 16:06:06 +00:00
stdio.h added setbuf, setvbuf, setbuffer and setlinebuf prototypes 2005-01-29 13:06:04 +00:00
stdio_post.h
stdio_pre.h Use -I instead of -isystem for system header directories when building 2007-03-14 20:36:42 +00:00
stdlib.h Even though Korli beat me, I've updated the posix_memalign() function to be more standards 2007-08-16 10:04:44 +00:00
string.h Added memccpy() - not there in BeOS, but part of the POSIX specs. 2005-10-31 12:18:55 +00:00
strings.h
syslog.h
termios.h tcsetpgrp() and tcgetpgrp() are actually defined in unistd.h, not termios.h. 2005-03-26 14:41:30 +00:00
time.h Changed useconds_t and suseconds_t to be "long" types instead of "long long". 2006-04-16 15:16:50 +00:00
unistd.h added an empty implementation of confstr() 2007-08-03 18:13:55 +00:00
utime.h
wchar.h Added C++ guard. I don't know, why we define the <wctype.h> protos both 2007-03-04 02:31:43 +00:00
wchar_t.h Moved mbstate to wchar.h 2005-02-22 18:06:35 +00:00
wctype.h wctype_t is already defined in wchar.h which is included 2006-05-03 13:39:23 +00:00