Commit Graph

  • f2f1af25ab Remove erroneous entry. Christopher Faylor 2003-12-15 03:10:38 +0000
  • f6393387ef * exceptions.cc (ctrl_c_handler): Remove this thread from the signal handler chain. Christopher Faylor 2003-12-14 16:55:24 +0000
  • c350feda20 * cygthread.cc (cygthread::stub): Revert previous change and again subsume cygthread::stub2. Just return from function now since ExitThread is guaranteed by automatic _threadinfo wrapper. Define as per ThreadProc convention. (cygthread::stub2): Remove. (cygthread::simplestub): Perform similar operations to cygthread::stub. (cygthread::simplestub2): Remove. * cygthread.h (cygthread::stub): Declare as per ThreadProc convention. (cygthread::stub2): Remove declaration. (cygthread::simplestub): Declare as per ThreadProc convention. (cygthread::simplestub2): Remove declaration. * cygtls.h (_threadinfo::call): Define first argument as per ThreadProc convention. (_threadinfo::call2): Ditto. (_tlsbase): Define as char * pointer. (_tlstop): New definition. (_main_tls): Define here. * dcrt0.cc (alloc_stack): Revert previous change which called init_thread since information would be overwritten by fork later anyway. (dll_crt0_1): Use _tlsbase and _tlstop for setting stack bottom, top. * exceptions.cc: Move _main_tls declaration to cygtls.h. (_threadinfo::call): Define first argument as per ThreadProc convention. (_threadinfo::call2): Call ExitThread with thread function return value. (_threadinfo::init_thread): Don't initialize cygtls to zero if input arg is NULL. * fork.cc (fork_child): Reset _main_tls here. Reinitialize parts of _my_tls after copying data from parent. * init.cc (threadfunc_fe): New function. Front-end for all threads created in cygwin processes. (munge_threadfunc): New function. (dll_entry): Call munge_threadfunc to force the call of a thread wrapper. * thread.cc (pthread::thread_init_wrapper): Perform similar operations to cygthread::stub. (pthread::thread_init_wrapper2): Remove. * thread.h (pthread::thread_init_wrapper): Declare as per ThreadProc convention. (pthread::thread_init_wrapper2): Remove declaration. * window.cc (Winmain): Just return from function now since ExitThread is guaranteed by automatic _threadinfo wrapper. Christopher Faylor 2003-12-14 07:09:22 +0000
  • f082663050 * include/stdio.h:(_fileno): Define macro version after both fileno and _fileno functions declared. Danny Smith 2003-12-13 21:22:34 +0000
  • 9279515ae1 * dtable.cc (dtable::delete_archetype): Add debugging. (dtable::release): Move archetype deletion here. (dtable::vfork_child_dup): Increment ctty usecount to catch later close_all_files case in parent/child. (dtable::vfork_child_fixup): Avoid using cygheap->foo where this should really be using local references. Call close on archetyped handles since the handles haven't had the noninherit flag set. * fhandler_tty.cc (fhandler_tty_slave::close): Remove archetype deletion code. Add defensive error message when DEBUGGING. (fhandler_tty_common::set_close_on_exec): Use more robust method for checking whether to set handles into noninherit if there is an archetype associated with the fhandler. Christopher Faylor 2003-12-12 20:46:03 +0000
  • fac0681d6c * dcrt0.cc (alloc_stack): Move _main_tls if stack is relocated. Christopher Faylor 2003-12-12 05:04:47 +0000
  • c76d70d7c0 * miscfuncs.cc (low_priority_sleep): Correct thinko which caused SetPriority to be called unnecessarily. * thread.cc (pthread::init_main_thread): Call new create_cancel_event function. (pthread::precreate): Ditto. (pthread::postcreate): Remove cancel_event creation. (pthread::create_cancel_event): Define new function. * thread.h (pthread::create_cancel_event): Declare new function. Christopher Faylor 2003-12-12 04:15:32 +0000
  • 97cb9b9de4 * fhandler_serial.cc (fhandler_serial::tcflush): Simplify. Remove read polling loop to avoid a hang with streaming devices. Corinna Vinschen 2003-12-11 18:07:42 +0000
  • 992406a5ea * pinfo.cc (_pinfo::set_ctty): Correct stupid typo. Christopher Faylor 2003-12-11 06:19:36 +0000
  • 8e10c4311f * cygheap.h (cygheap_types): Add HEAP_ARCHETYPES. (init_cheap::ctty): Change to pointer. * dtable.h (dtable::find_archetype): Declare new function. (dtable::add_archetype): Declare new function. (dtable::delete_archetype): Declare new function. (dtable::narchetypes): Declare. (dtable::farchetypes): Declare. (dtable::initial_archetype_size): Declare. (dtable::dtable): Initialize new fields. (dtable::initial_archetype_size): Declare. * dtable.cc (dtable::find_archetype): Define new function. (dtable::add_archetype): Define new function. (dtable::delete_archetype): Define new function. (dtable::initial_archetype_size): Define. * fhandler.h (fhandler_base::archetype): Declare. (fhandler_base::usecount): Declare. * fhandler.cc (fhandler_base::fhandler_base): Initialize new fields. * fhandler_console.cc (fhandler_console::get_tty_stuff): Pass NULL to third argument of set_ctty. * fhandler_tty.cc (fhandler_tty_slave::open): Accommodate new archetype method to create only one instance of a tty. (fhandler_tty_slave::close): Don't close handles unless archetype usecount is zero. When that happens, close archetype too. (fhandler_tty_slave::dup): Just copy archetype. Set use count appropriately. Set ctty, if appropriate. (fhandler_tty_common::dup): Remove slave considerations. (fhandler_tty_common::set_close_on_exec): Remove cygheap->ctty considerations. * pinfo.cc (_pinfo::set_ctty): Accommodate new archetype methods. * pinfo.h (_pinfo::set_ctty): Make third argument explicit. * syscalls.cc (close_all_files): Decrement controlling tty use count before closing all handles to allow controlling tty to be closed. Remove previous controlling tty considerations. Christopher Faylor 2003-12-11 06:12:41 +0000
  • 3f23411449 remove debug output Christopher Faylor 2003-12-10 04:08:50 +0000
  • ce40c6baf7 * fhandler_tty.cc (fhandler_tty_common::dup): Just copy cygheap->ctty to child if duping the current ctty. (fhandler_tty_common::close): Move debugging statement earlier in function. (fhandler_tty_slave::close): Return success when closing ctty. * syscalls.cc (close_all_files): Avoid calling fhandler_tty_slave close method so that open_fhs will not be decremented when closing cygheap ctty. (setsid): Ditto. * dcrt0.cc (do_exit): Reorganize to avoid leaving a critical section active after vfork. * fhandler.h (fhandler_tty_slave::get_unit): Remove regparm parameter since it can't work in a virtualized function. Christopher Faylor 2003-12-10 03:19:19 +0000
  • 7176387b4f * pinfo.cc (_pinfo::set_ctty): Don't copy over existing ctty if it is active. Christopher Faylor 2003-12-09 03:27:05 +0000
  • 91ec94b67c 2003-12-08 Danny Smith <dannysmith@users.sourceforge.net> Danny Smith 2003-12-08 22:41:44 +0000
  • 8e5f3482bc 2003-12-08 Thomas Fitzsimmons <fitzsim@redhat.com> Thomas Fitzsimmons 2003-12-08 21:19:41 +0000
  • ddd3eeee8c 2003-12-08 Roald Ribe <rrib@users.sourceforge.net> Danny Smith 2003-12-08 19:37:19 +0000
  • ac5ba8b0de * thread.cc (pthread::precreate): Delete duplicate setting of cancel_event. Christopher Faylor 2003-12-08 06:32:46 +0000
  • da915a3aa6 * fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it is guaranteed to be accurate. * fhandler_tty.cc (fhandler_tty_slave::open): Increment open_fhs appropriate when copying ctty. (fhandler_tty_slave::close): Remove special case handling for exit_state. Use ctty < 0 check instead. (fhandler_tty_common::close): Set io_handle to NULL after closing. * syscalls.cc (close_all_files): Specifically close cygheap->ctty, if appropriate. Christopher Faylor 2003-12-08 06:27:05 +0000
  • 1b11f4fd72 * wait.cc (wait4): Move sawsig initialization inside loop. Christopher Faylor 2003-12-08 00:22:56 +0000
  • 1c5c9a6bfb * spawn.cc (spawn_guts): Change type back to 'int' after erroneous change below. Christopher Faylor 2003-12-08 00:21:17 +0000
  • 2e008fb91f Change use of BOOL, TRUE, FALSE to bool, true, false, as appropriate, throughout. * tty.cc (tty::common_init): Remove call to SetKernelObjectSecurity and edit some comments. * cygheap.h (init_cygheap::ctty): Add new element. * devices.in (device::parse): Remove special handling for /dev/tty. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Don't reset /dev/tty device. Let the device opener do that. * fhandler_termios.cc (tty_min::set_ctty): Redefine to _pinfo class. * fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Avoid setting noninherit flag for ctty. * tty.h: Move BOOLs to bools. (tty_min::set_ctty): Redeclare to _pinfo class. * pinfo.cc (_pinfo::set_ctty): Define new function based on tty_min::set_ctty. Change first argument from tty number to tty_min class. * pinfo.h (_pinfo::set_ctty): Declare. * fhandler_console.cc (fhandler_console::get_tty_stuff): Reflect move of set_ctty to _pinfo class. * fhandler_tty.cc (fhandler_tty_slave::open): Treat FH_TTY specially. Use saved cygheap value if it exists. Otherwise convert to real device and save on first time open. (fhandler_tty_common::dup): Potentially set controlling tty if duping a slave tty. * syscalls.cc (setsid): Close controlling tty in cygheap. * tty.cc: Change some BOOLs to bools. Christopher Faylor 2003-12-07 22:37:12 +0000
  • 2e3ff06d3c * syscalls.cc (locked_append): New. (updwtmp): Remove mutex code and call locked_append. (pututline): Ditto. Corinna Vinschen 2003-12-07 12:56:59 +0000
  • ae2543ed76 * exceptions.cc (_threadinfo::remove): Avoid a linked list walk. Christopher Faylor 2003-12-07 03:27:51 +0000
  • 73262d7a44 * cygtls.h (_threadinfo::find_tls): New function. * exceptions.cc (_threadinfo::find_tls): Rename from find_tls. Use critical section to protect access to linked list. Christopher Faylor 2003-12-07 02:56:52 +0000
  • fcc47fd001 * exceptions.cc (_threadinfo::remove): Avoid returning without unlocking critical section in the (hopefully impossible) case of an unrecognized thread. Christopher Faylor 2003-12-07 02:33:31 +0000
  • 2b6d15a908 * cygtls.h: Add more "don't parse this" guards. (_threadinfo::init_thread): Rename from 'init'. (_threadinfo::init): Declare new function. (_threadinfo::protect_linked_list): Declare new critical section. * dcrt0.cc (dll_crt0_1): Call init_thread to initialize thread stuff. (_dll_crt0): Call _threadinfo::init prior to invoking dll_crt0_1. * exceptions.cc (_threadinfo::init_thread): Rename from 'init'. (_threadinfo::init): Define new function. Protect linked list manipulation with new critical section. (_threadinfo::call): Reflect function name change. (_threadinfo::remove): Protect linked list manipulation with new critical section * gentls_offsets: Rework to allow multi-line "don't parse this" protection. * init.cc (dll_entry): Don't remove threads info stuff here since the remove function uses a critical section which can't be used during thread creation or destruction. * thread.cc (pthread::exit): Call _threadinfo remove function here. Christopher Faylor 2003-12-06 18:08:38 +0000
  • bdfb870e4a * common.h (DT_HIOS): Correct value. Alan Modra 2003-12-06 05:32:21 +0000
  • 9fc92ceb06 2003-12-05 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-12-05 21:09:13 +0000
  • 25c7dad1fb 2003-12-05 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-12-05 20:51:57 +0000
  • f36d3b6a0d Revert accidental checkin. Christopher Faylor 2003-12-05 06:15:18 +0000
  • 576593dd72 * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when defining _mbrtowc. * libc/stdlib/mbsinit.c: Ditto. * libc/stdlib/mbsrtowcs.c: Ditto. * libc/stdlib/wcrtomb.c: Ditto. * libc/stdlib/wcsrtombs.c: Ditto. * libc/stdlib/wctob.c: Ditto. * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when defining _mbrtowc. * libc/stdlib/mbsinit.c: Ditto. * libc/stdlib/mbsrtowcs.c: Ditto. Christopher Faylor 2003-12-05 06:13:44 +0000
  • 4c889d629d * libc/stdlib/mbrtowc.c: Change include order to prevent compiler errors when defining _mbrtowc. Christopher Faylor 2003-12-05 06:02:31 +0000
  • aeab6ea658 * cygthread.cc (cygthread::stub2): Remove myself from the list of threads monitored by signals since this thread will never call raise or sigwait. (cygthread::simplestub2): Ditto. Set ev here. (cygthread::cygthread): Don't set ev here for freerange thread. Christopher Faylor 2003-12-05 05:29:17 +0000
  • 78f3155ced * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a UNC path. Christopher Faylor 2003-12-05 04:33:40 +0000
  • 57e6aca667 * exceptions.cc (setup_handler): Remove ill-advised debugging output. Christopher Faylor 2003-12-05 04:20:48 +0000
  • 5d109bdeb0 2003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com> Jeff Johnston 2003-12-05 01:42:26 +0000
  • 3aca088831 2003-12-04 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-12-05 01:36:32 +0000
  • 0444b90fcd bfd/ H.J. Lu 2003-12-04 22:43:36 +0000
  • 592db10ed7 * include/cygwin/types.h (struct __fcntl64): Fix datatype of l_start. Corinna Vinschen 2003-12-04 09:37:55 +0000
  • a562b2239a Add support for the M32R2 processor. Nick Clifton 2003-12-03 17:38:48 +0000
  • 145b4dc249 Substitute 0x7fffffff and 0xffffffff by INT32_MAX and UINT32_MAX throughout, except in assembler code. Corinna Vinschen 2003-12-03 16:35:52 +0000
  • d2fa946e51 * fhandler_disk_file.cc (fhandler_disk_file::lock): Use UINT32_MAX instead of 0xffffffff. Accomodate Win 9x bug in evaluating length of area to lock when given length is 0. Corinna Vinschen 2003-12-03 11:22:49 +0000
  • 1843517401 * fhandler_disk_file.cc (fhandler_disk_file::lock): Interchange values of off_low and off_high. Corinna Vinschen 2003-12-03 09:58:23 +0000
  • e2a39e2efa * fcntl.cc (fcntl_worker): Remove static storage class. * flock.cc (flock): Use struct __flock64. Call fcntl_worker. Use Cygwin errno functions instead of accessing errno directly. * winsup.h: Declare fcntl_worker. Corinna Vinschen 2003-12-03 09:55:42 +0000
  • 941c9bf805 * fcntl.cc (_fcntl): Whitespace cleanup. Corinna Vinschen 2003-12-03 09:16:37 +0000
  • d1eb7a4615 * cygthread.cc (cygthread::stub): Properly establish _threadinfo environment. (cygthread::stub2): New function. (cygthread::simplestub): Ditto. (cygthread::simplestub2): New function. * cygthread.h (cygthread::stub2): Declare new function. (cygthread::simplestub2): Ditto. * cygtls.h (_threadinfo::call): Declare new function. (_threadinfo::call2): Ditto. * dcrt0.cc (dll_crt0_1): Accommodate new _threadinfo::init which doesn't return pointer to tls. (_dll_crt0): Remove obsolete DECLARE_TLS_STORAGE. (dll_crt0): Ditto. * exceptions.cc (_threadinfo::call): New function. (_threadinfo::call2): Ditto. (_threadinfo::init): Don't return pointer. * thread.cc (pthread::thread_init_wrapper): Properly establish _threadinfo environment. (pthread::thread_init_wrapper2): New function. * thread.h (pthread::thread_init_wrapper): Remove noreturn attribute (pthread::thread_init_wrapper2): Declare new function. * winbase.h: Remove obsolete code. Christopher Faylor 2003-12-03 05:21:55 +0000
  • af9ef8abb2 * Makefile.in: Change the way that -f options are appended to CFLAGS, slightly. Christopher Faylor 2003-12-03 00:21:21 +0000
  • e575a697ba * fcntl.cc (_fcntl): Silence a compiler warning. Christopher Faylor 2003-12-02 23:47:28 +0000
  • d47640a3d5 Rename bfd_link_hash_entry field "next" -> "und_next". Alan Modra 2003-12-02 22:59:59 +0000
  • c488125f39 Add alternative defintion of C_WEAKEXT for AIX 5.2 Nick Clifton 2003-12-02 10:49:14 +0000
  • 8a91312a3a * bfdlink.h (struct bfd_link_info): Remove mpc860c0 field. Alan Modra 2003-12-02 05:58:36 +0000
  • 93e4038242 * pinfo.cc (pinfo::init): Use shared_name to construct the mapname. Christopher Faylor 2003-12-02 04:10:56 +0000
  • 5c9cceced7 white space Christopher Faylor 2003-12-02 01:36:08 +0000
  • 693dd53815 Change tab to space in Changelog. Thomas Pfaff 2003-12-01 22:13:58 +0000
  • 94d2416049 * thread.cc (pthread_rwlock::add_reader): Remove mx parameter for List_insert call. (pthread::prepare): Ensure race safeness when adding function pointers to atfork lists by using List_insert. * thread.h (List_insert): Use InterlockedCompareExchangePointer to ensure race safeness without using a mutex. (List_remove): Use InterlockedCompareExchangePointer to ensure race safeness with List_insert. (List::insert): Remove mx parameter for List_insert call. Thomas Pfaff 2003-12-01 22:10:57 +0000
  • bd16a3a8a8 * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. These tests had a compatibility bug. * winsup.api/ltp/fcntl09.c: Don't use F_RDLCK | F_WRLCK but only F_WRLCK to set a write lock. * winsup.api/ltp/fcntl10.c: Ditto. Corinna Vinschen 2003-12-01 17:33:11 +0000
  • 18dcb16757 * libc/include/sys/fcntl.h: Don't define struct flock when on Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now. Corinna Vinschen 2003-12-01 17:27:01 +0000
  • dc3998682a * Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl. (NEW_FUNCTIONS): Add fcntl64. * cygwin.din: Export fcntl64. Make fcntl being SIGFE. * fcntl.cc (fcntl_worker): New function. (fcntl64): New function. (_fcntl): Call fcntl_worker. Convert 32 bit flock structure into 64 bit flock structure and vice versa. * fhandler.cc (fhandler_base::lock): Change 2nd parameter to struct __flock64 *. * fhandler_disk_file.cc (fhandler_disk_file::lock): Ditto. Rework to be 64 bit aware. * fhandler.h: Accomodate above method argument changes. * include/cygwin/types.h: Add struct __flock32 and __flock64. Define struct flock according to setting of __CYGWIN_USE_BIG_TYPES__. * include/cygwin/version.h: Bump API minor number. Corinna Vinschen 2003-12-01 17:26:28 +0000
  • 6c2b784612 * cygheap.cc (cygheap_init): Set cygheap->shared_prefix. * cygheap.h (struct init_cygheap): Add shared_prefix. * shared.cc (shared_name): Use cygheap->shared_prefix. Corinna Vinschen 2003-12-01 15:03:43 +0000
  • 4febe95f89 * shared.cc (shared_name): Take into account the SE_CREATE_GLOBAL_NAME privilege when building the name string. (open_shared): Remove the call to OpenFileMapping. (shared_info::initialize): Move cygheap initialization to ... (memory_init): ... here. Suppress now useless shared_h variable. (user_shared_initialize): Make tu a cygpsid. Corinna Vinschen 2003-12-01 11:16:20 +0000
  • cb766c47bb * include/tzfile.h: Remove duplicate definition of TM_SUNDAY. * localtime.cc: Point TZDIR to the /usr/share/zoneinfo directory used by the tzcode package. Corinna Vinschen 2003-12-01 10:39:17 +0000
  • 635fa4ba48 * include/winnt.h (GetCurrentFiber): Remove duplicate prototype. (GetFiberData); Likewise. Danny Smith 2003-12-01 09:11:42 +0000
  • b406ed7b51 * flock.cc: Renamed from flock.c. Corinna Vinschen 2003-11-30 10:43:04 +0000
  • fcac349166 * pinfo.h: Remove global_sigs declaration. * siginfo.h: Move global_sigs declaration here. * Makefile.in: Remove duplicate compiler flag. Christopher Faylor 2003-11-30 02:21:04 +0000
  • b63ba3b6aa * exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack location rather than the actual stack pointer. Christopher Faylor 2003-11-30 02:19:45 +0000
  • f3a1e23eb3 * Makefile.in: (DLL_OFILES): Add flock.o. * cygwin.din: Export flock. * flock.c: New file. * include/sys/file.h: Include sys/cdefs.h. Add function prototype for flock(). Add some comments from BSD's header for further clarity. (L_SET, L_CURR, L_INCR, L_XTND): Redefine as the macros SEEK_SET, SEEK_CUR, SEEK_CUR, & SEEK_END respectively. (LOCK_SH,LOCK_EX,LOCK_NB,LOCK_UN): New macros for flock(). * include/cygwin/version.h: Bump API minor number. Corinna Vinschen 2003-11-29 23:00:51 +0000
  • b50fe8212f * sigproc.cc (no_signals_available): Fix so that non-zero exit state is a true condition rather than errnoneously only checking other states when exist_state was zero. Christopher Faylor 2003-11-29 00:31:37 +0000
  • 62e070d72e * pinfo.h (_pinfo::getthread2signal): Remove obsolete function. * cygtls.h (_threadinfo): Define tid more precisely. (_threadinfo::operator HANDLE): Define. * exceptions.cc (_threadinfo::interupt_now): Use _threadinfo HANDLE operator to derive thread handle. (setup_handler): Ditto. * sigproc.cc: Reorganize includes. Christopher Faylor 2003-11-29 00:26:40 +0000
  • 13584f077b * pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout. * exceptions.cc: Ditto. * fhandler_termios.cc: Ditto. * signal.cc: Ditto. * sigproc.cc: Ditto. * Makefile.in: Revert previous change which made a cygwin.din newer than a version.h a warning rather than an error. Christopher Faylor 2003-11-28 22:13:57 +0000
  • 74d893b13c * cygwin.din: Re-add inexplicably missing semaphore/msg functions. Christopher Faylor 2003-11-28 21:39:08 +0000
  • 965f78cbbe * gendevices: Issue error when shilka is missing. Christopher Faylor 2003-11-28 21:20:15 +0000
  • 93f8e67384 * libc/include/sys/signal.h: Use system specific signal file when building on cygwin. Christopher Faylor 2003-11-28 21:05:51 +0000
  • abd2fa9994 * include/cygwin/signal.h: New file. (also check in tlsoffsets.h, missed by previous checkin) Christopher Faylor 2003-11-28 21:01:09 +0000
  • 9a4d574b8d Eliminate use of sigframe and sigthread throughout. * Makefile.in (DLL_OFILES): Add sigfe.o. Remove reliance on cygwin.def from cygwin0.dll dependency since dependence on sigfe.o implies that. Generate def file on the fly using 'gendef'. * configure.in: Don't auto-generate cygwin.def. * configure: Regenerate. * cygwin.din: Add SIGFE stuff where appropriate. * dcrt0.cc (dll_crt0_1): Initialize cygwin tls early in process startup. Set _main_tls to address of the main thread's cygwin tls. * debug.h: Remove now unneeded WFSO and WFMO declarations. * exceptions.cc (_last_thread): Define. (set_thread_state_for_signals): New function. (reset_thread_exception_for_signals): Ditto. (init_thread_for_signals): Ditto. (delete_thread_for_signals): Ditto. (capture_thread_for_signals): Ditto. (handle_exceptions): Set return address explicitly for exceptions prior to calling sig_send. (interrupt_on_return): Eliminate. (setup_handler): Add preliminary implementation for dealing with thread-specific signals by querying _main_tls. (signal_exit): Use cygthread::main_thread_id instead of mainthread.id. (call_signal_handler_now): For now, just handle the main thread. * fork.cc (vfork): Save and restore main _my_tls. * gendef: New file. Generates def file and sigfe.s file. * gentls_offsets: New file. Generates offsets for perl to use in sigfe.s. * how-signals-work.txt: Mention that info is obsolete. * init.cc (dll_entry): Initialize cygwin tls storage here. * miscfuncs.cc (low_priority_sleep): Make a C function for easier calling from asm. * perthread.h (vfork_save::tls): New element. * signal.cc (nanosleep): Replace previous use of sigframe.call_signal_handler_now with straight call to call_signal_handler_now. (abort): Ditto. * syscalls.cc (readv): Ditto. * termios.cc (tcsetattr): Ditto. * wait.cc (wait4): Ditto. * sigproc.cc (sig_dispatch_pending): Ditto. (sig_send): Ditto. * sigproc.h: Declare call_signal_handler_now. * thread.cc (pthread::thread_init_wrapper): Initialize cygwin tls. Remove obsolete and unworking signal stuff. * thread.h (verifyable_object::sigs): Eliminate. (verifyable_object::sigmask): Eliminate. (verifyable_object::sigtodo): Eliminate. (verifyable_object::exit): Make attribute noreturn. (verifyable_object::thread_init_wrapper): Ditto. (pthread_null::exit): Ditto. * winbase.h (__stackbase): Always define. * winsup.h (low_priority_sleep): Declare as a "C" function. * include/cygwin/version.h: Bump API version to reflect sigwait export. * include/sys/queue.h: Protect SLIST_ENTRY from previous declaration. * signal.cc (sigwait): Implement. * select.cc (fhandler_base::ready_for_read): Add debugging output. * devices.h: Define more device pointers via their storage. * devices.in: Don't parse things like /dev/inet/tcp, as they really have no meaning. * devices.cc: Regenerate. * gendevices: Set proper protection for output file. * cygtls.h: New file. * gendef: New file. * gentls_offsets: New file. * tlsoffsets.h: New file. Autogenerated. * config/i386/longjmp.c: Remove. File subsumed by gendef output. * config/i386/makefrag: Remove obsolete file. * fhandler.cc: Remove spurious access_worker declaration. * spawn.cc (spawnve): Make debugging output more accurate. * cygwin-gperf: Remove. * devices.cc: Remove. Christopher Faylor 2003-11-28 20:55:59 +0000
  • ffe0063843 * speclib: Use correct EOF marker. Ensure that directory is actually deleted when running under Windows. Christopher Faylor 2003-11-28 20:51:11 +0000
  • 268aec4006 * speclib: Use correct EOF marker. Ensure that directory is actually deleted when running under Windows. Christopher Faylor 2003-11-28 20:10:07 +0000
  • 8cf11e2918 * lib/Makefile.in: Use make function to locate .mri file to allow building in directory other than source directory. Christopher Faylor 2003-11-27 23:34:18 +0000
  • 93eba3cb60 * fhandler_disk_file.cc (fhandler_disk_file::readdir): Reorganize to avoid inappropriate .lnk extensions with munged filenames under managed mode. Christopher Faylor 2003-11-27 23:27:23 +0000
  • cc2a11e0d0 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-11-27 20:54:12 +0000
  • 83bf7d2f89 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-11-27 20:15:47 +0000
  • 6bbb700c34 2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru> Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-11-27 19:47:19 +0000
  • 6dec26cd0c 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2003-11-27 19:18:38 +0000
  • 714b947a1b 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net> Danny Smith 2003-11-27 08:23:43 +0000
  • d799adc46f * lib/vfw32.def: Remove, replacing with ... * lib/msvfw32.def: New file. * lib/avicap32.def: New file. * lib/avifil32.def: New file. * lib/vfw32.mri: New file. * Makefile.in: (MRI_FILES, MIMPLIBS): New vars for import libs with multiple dll's. (LIBS): Add MIMPLIBS. (DISTFILES): Add MRI_FILES. (libvfw32.a): Build using mri script. Danny Smith 2003-11-27 02:14:37 +0000
  • 1d88f8cea2 * cygserver.cc (main): Move call to ipcinit() up before installing any threads. * sysv_sem.cc: Update to FreeBSD version 1.67. (seminit): Initialize semaphore sequence numbers to 0. Corinna Vinschen 2003-11-26 22:29:35 +0000
  • a2acbfb14e * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in the parallel cygwin dir. (cygserver.exe): Depend on and link against $CYGWIN_LIB. Corinna Vinschen 2003-11-26 20:05:09 +0000
  • 0a707c79e9 2003-11-26 Corinna Vinschen <corinna@vinschen.de> Jeff Johnston 2003-11-26 19:15:17 +0000
  • f25babdf07 * mkgroup.c (main): Print "root" group with local admins group sid and gid 0. Corinna Vinschen 2003-11-26 15:47:44 +0000
  • cb55867514 * sec_helper.cc (set_process_privilege): Rename restore_priv to priv_luid. Corinna Vinschen 2003-11-26 14:29:22 +0000
  • 12069cf31b * dir.cc (mkdir): Use local security_descriptor. Call set_security_attribute appropriately. * external.cc (cygwin_internal): Ditto. * fhandler.cc (fhandler_base::open): Ditto. * fhandler_socket.cc (fhandler_socket::bind): Ditto. * path.cc (symlink_worker): Ditto. * sec_acl.cc (setacl): Ditto. Call read_sd appropriately. (getace): Ditto. * sec_helper.cc (security_descriptor::malloc): New method. (security_descriptor::realloc): New method. (security_descriptor::free): New method. * security.cc (read_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. Allocate the security_descriptor buffer according to size returned by a call to GetFileSecurity. Return buffer size on success. (write_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (get_nt_attribute): Use local security_descriptor. (get_nt_object_attribute): Ditto in case of type == SE_REGISTRY_KEY. Allocate security_descriptor buffer according to size returned by a call to RegGetKeySecurity. (alloc_sd): Make static. Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. (set_security_attribute): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (set_nt_attribute): Use local security_descriptor. (check_file_access): Ditto. * security.h: Add class security_descriptor. (read_sd): Change declaration to get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (write_sd): Ditto. (set_security_attribute): Ditto. (alloc_sd): Remove declaration. * thread.cc (semaphore::semaphore): Use local security_descriptor. Call set_security_attribute appropriately. Corinna Vinschen 2003-11-26 13:23:27 +0000
  • 3db690789f * sec_acl.h (getace): Use FILE_*_BITS as permission mask. * security.cc (get_attribute_from_acl): Ditto. * security.h (FILE_READ_BITS): Define to match also GENERIC bits. (FILE_WRITE_BITS): Ditto. (FILE_EXEC_BITS): Ditto. Corinna Vinschen 2003-11-26 10:52:21 +0000
  • af284c9c3b * Makefile.in (CXXFLAGS): Remove duplicate options handled in Makefile.common. Christopher Faylor 2003-11-26 03:52:12 +0000
  • b5aa10cda8 more white space Christopher Faylor 2003-11-25 22:59:37 +0000
  • 8861377a2d more white space Christopher Faylor 2003-11-25 22:58:32 +0000
  • 970ca29242 more white space Christopher Faylor 2003-11-25 22:57:22 +0000
  • 3654a9dd2f more white space Christopher Faylor 2003-11-25 22:56:58 +0000
  • e2b9eb11e5 * thread.cc: Minor whitespace cleanup. Remove some obsolete code. Christopher Faylor 2003-11-25 22:55:31 +0000
  • 84f08ba160 * winsup.api/known_bugs.tcl: Remove lseek10 since mknod now works. Christopher Faylor 2003-11-25 19:24:46 +0000
  • e00700cd80 * dtable.cc (build_fh_name): Set error in dummy fhandler when one is noted during path_conv. * fhandler.h (fhandler_base::set_error): New method. Christopher Faylor 2003-11-25 02:03:17 +0000
  • 6db165c2a5 2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru> Jeff Johnston 2003-11-24 18:39:04 +0000