summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/perthread.h
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate most unneeded this-> pointers throughout.Christopher Faylor2003-02-041-6/+6
|
* fix commentChristopher Faylor2002-12-041-2/+2
|
* * perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.Christopher Faylor2002-08-181-2/+18
| | | | | | | | | | | | | | | | | (vfork_save::restore_pid): New method. (vfork_save::restore_exit): New method. * fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to "parent". Use exitval field if exiting but never created a new process. * syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that pid will be allocated (UGLY!). (getsid): New function. * dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a vfork. * spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for returning from vfork. * cygwin.din: Export getsid. * include/cygwin/version.h: Bump api minor number. * malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
* * debug.cc (makethread): Eliminate unneeded function call.Christopher Faylor2001-11-301-21/+0
| | | | | | | | | | * miscfuncs.cc (tls_ix): Predefine. * perthread.h (set_reent): Eliminate. (get_reent): Ditto. * winbase.h (my_tlsalloc): Use global stack base pointer. Set newly allocated location to NULL. (my_tlssetvalue): Use global stack base pointer. (my_tlsgetvalue): Ditto.
* * dcrt0.cc (dll_crt0_1): Create vfork main storage here so that it can beChristopher Faylor2001-09-151-1/+2
| | | | | | queried in waitsig later. * sigproc.cc (wait_sig): Don't deliver a signal if in a vfork. * fork.cc (vfork): Deliver all signals on parent return from vfork.
* * debug.h: Add regparm attributes to some functions.Christopher Faylor2001-01-121-1/+2
| | | | | | | | | | | | * signal.cc (sigaction): Don't treat SIGCONT specially. * exceptions.cc (interrupt_setup): Save sa_flags of interrupted signal for later use. (sig_handler): Default any stopping signal to SIGSTOP. (call_signal_handler): New function. (sigdelayed0): New function. * sigproc.cc (sigproc_init): Initialize SIGSTOP sigaction for special behavior. * sigproc.h: Define call_signal_handler. * syscalls.cc (_read): Allow restartable signal behavior.
* * sigproc.cc (wait_sig): Remove unneeded for loop iteration.Christopher Faylor2000-11-161-0/+1
| | | | | | | | | | | * exceptions.cc (interrupt_setup): Don't set signal mask here or races occur with main thread. Set it in sigdelayed instead. (sigreturn): Reflect change in stack order of ebp and flags. (sigdelayed): Set stack frame correctly. Call set_process_mask here with flags for last trapped signal. (signal_dispatch): Add newmask. * sigproc.cc (wait_sig): Eliminate ill-considered attempt to halt looping signal processors.
* Break out more header info into separate files. Use appropriate header filesChristopher Faylor2000-09-081-1/+3
| | | | | | | | | | | | throughout. * shared.h: Remove. * cygwin_version.h: New file. * delqueue.h: New file. * environ.h: New file. * host_dependent.h: New file. * perprocess.h: New file. * registry.h: New file. * security.h: New file.
* * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h filesChristopher Faylor2000-08-221-0/+76
| | | | | only in sources which require them. * Makefile.in: Generate dependencies with -MD option.
* Forgot perthread.h.Christopher Faylor2000-07-011-0/+37