haiku/src/system
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
..
boot fixed ppc build. It was broken since r21611. Obviously it's not tested. 2007-07-16 19:12:37 +00:00
glue The SimpleTest rule is now using the Haiku glue code - so it should better be 100% compatible; turns out _init_c_library_() gets the arguments and environment as parameters (in case you wondered why __libc_argv and __libc_argc wouldn't work anymore for these apps all of a sudden). 2007-06-20 01:06:48 +00:00
kernel Some more work on the signal code: 2007-08-17 11:01:09 +00:00
ldscripts Modified the pxe_ia32 stage 1 loader to load stage 2 at the same address as bios_ia32 stage 1 does. 2006-10-24 20:53:30 +00:00
libroot Some more work on the signal code: 2007-08-17 11:01:09 +00:00
runtime_loader Give the runtime loader a chance to reinit its semaphore after fork(). 2007-08-11 00:14:26 +00:00
Jamfile Reorganized building of kernel, boot loader, and libroot. 2005-11-27 00:27:19 +00:00