haiku/headers/private
Ingo Weinhold 4048494ce4 axeld + bonefish:
* Implemented automatic syscall restarts:
  - A syscall can indicate that it has been interrupted and can be
    restarted by setting a respective bit in thread::flags. It can
    store parameters it wants to be preserved for the restart in
    thread::syscall_restart::parameters. Another thread::flags bit
    indicates whether it has been restarted.
  - handle_signals() clears the restart flag, if the handled signal
    has a handler function installed and SA_RESTART is not set. Another
    thread flag (THREAD_FLAGS_DONT_RESTART_SYSCALL) can prevent syscalls
    from being restarted, even if they could be (not used yet, but we
    might want to use it in resume_thread(), so that we stay
    behaviorally compatible with BeOS).
  - The architecture specific syscall handler restarts the syscall, if
    the restart flag is set. Implemented for x86 only.
  - Added some support functions in the private <syscall_restart.h> to
    simplify the syscall restart code in the syscalls.
  - Adjusted all syscalls that can potentially be restarted accordingly.
  - _user_ioctl() sets new thread flag THREAD_FLAGS_IOCTL_SYSCALL while
    calling the underlying FS's/driver's hook, so that syscall restarts
    can also be supported there.
* thread_at_kernel_exit() invokes handle_signals() in a loop now, as
  long as the latter indicates that the thread shall be suspended, so
  that after waking up signals received in the meantime will be handled
  before the thread returns to userland. Adjusted handle_signals()
  accordingly -- when encountering a suspending signal we don't check
  for further signals.
* Fixed sigsuspend(): Suspending the thread and rescheduling doesn't
  result in the correct behavior. Instead we employ a temporary
  condition variable and interruptably wait on it. The POSIX test
  suite test passes, now.
* Made the switch_sem[_etc]() behavior on interruption consistent.
  Depending on when the signal arrived (before the call or when already
  waiting) the first semaphore would or wouldn't be released. Now we
  consistently release it.
* Refactored _user_{read,write}[v]() syscalls. Use a common function for
  either pair. The iovec version doesn't fail anymore, if anything could
  be read/written at all. It also checks whether a complete vector
  could be read/written, so that we won't skip data, if the underlying
  FS/driver couldn't read/write more ATM.
* Some refactoring in the x86 syscall handler: The int 99 and sysenter
  handlers use a common subroutine to avoid code duplication.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-17 15:48:30 +00:00
..
app bonefish+axeld: 2007-11-14 01:28:47 +00:00
audio Move this to media/, seems audio/ is only for old stuff. 2007-08-29 12:31:55 +00:00
bluetooth Add private bluetooth headers being used in the kit and the future server 2008-02-01 20:59:14 +00:00
debug Added support for looking up symbols of other team to libdebug. The 2005-07-16 21:12:32 +00:00
disk_scanner missing comment tokens 2007-06-20 21:30:00 +00:00
drivers Mask io-space bit in promise_tx2 driver, the driver was broken after recent ide-adapter changes. 2008-01-01 20:31:14 +00:00
firewire work from JiSheng Zhang : firewire and ohci modules from FreeBSD current, update for fw_raw and fw_control. Thanks! 2007-08-30 21:59:49 +00:00
fs_shell * cache_detach_sub_transaction() didn't really work: it did not put all needed 2008-01-18 17:07:18 +00:00
graphics * Overlay on the G33 does not work anymore in the secondary ring buffer; 2008-01-31 18:28:48 +00:00
input the keymap is now saved when key locks or key modifiers are changed 2007-07-16 18:40:32 +00:00
interface Fixed problem with some popup menus (check ticket #1679) 2008-01-03 07:30:05 +00:00
kernel axeld + bonefish: 2008-02-17 15:48:30 +00:00
libroot Works much better when actually allocating the TLS entry... 2008-01-14 02:03:34 +00:00
mail * part of libbe_test build fix... why is the _IMPEXP stuff there in the 2007-10-21 15:19:25 +00:00
media Some cleanup. 2007-10-15 14:09:14 +00:00
midi Made all server version and signatures consistent, and thus closing bug #909. 2006-10-22 17:56:02 +00:00
net * Added flags field in net_protocol_module_info; there is currently a single 2008-02-07 15:09:19 +00:00
opengl/GL/internal updated mesa to 6.5.3 2007-06-08 23:00:44 +00:00
print Slight rework of my previous commit... now ports can be asked too ;) 2008-02-08 02:00:08 +00:00
runtime_loader Now supports symbolic links correctly, and no longer loads the same shared 2006-06-27 00:07:42 +00:00
screen_saver * ScreenCornerSelector is now a BControl and fully keyboard navigable. 2006-06-09 16:03:16 +00:00
shared Allow derived classes to access the member variables. 2007-10-01 18:39:02 +00:00
storage * added a PrintToStream() method 2008-02-02 12:38:15 +00:00
syslog_daemon Implemented syslog support for the kernel debug output. Not fancy at all yet, but 2006-01-24 20:28:52 +00:00
textencoding missing comment tokens 2007-06-20 21:20:11 +00:00
tracker * Rewrote BeBuild.h which had "a few" consequences (got rid of all those class 2007-10-15 20:13:55 +00:00
usb_vision * added a bunch of drivers by Siarzhuk Zharski 2006-05-29 09:54:03 +00:00
userlandfs * Renamed fs/vfs_select.cpp to wait_for_objects.cpp and got rid of 2007-10-02 19:47:31 +00:00