summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change use of BOOL, TRUE, FALSE to bool, true, false, as appropriate,Christopher Faylor2003-12-0741-384/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * syscalls.cc (locked_append): New.Corinna Vinschen2003-12-072-29/+34
| | | | | (updwtmp): Remove mutex code and call locked_append. (pututline): Ditto.
* * exceptions.cc (_threadinfo::remove): Avoid a linked list walk.Christopher Faylor2003-12-072-9/+11
|
* * cygtls.h (_threadinfo::find_tls): New function.Christopher Faylor2003-12-073-2/+11
| | | | | * exceptions.cc (_threadinfo::find_tls): Rename from find_tls. Use critical section to protect access to linked list.
* * exceptions.cc (_threadinfo::remove): Avoid returning without unlockingChristopher Faylor2003-12-072-7/+14
| | | | critical section in the (hopefully impossible) case of an unrecognized thread.
* * cygtls.h: Add more "don't parse this" guards.Christopher Faylor2003-12-067-12/+56
| | | | | | | | | | | | | | | | | | | (_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.
* * common.h (DT_HIOS): Correct value.Alan Modra2003-12-062-1/+6
|
* 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-053-64/+5
| | | | | * libc/include/sys/stat.h: No longer include stat-dj.h. * libc/include/sys/stat-dj.h: Removed.
* 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-052-0/+6
| | | | * libc/include/wchar.h: Include <sys/reent.h>.
* Revert accidental checkin.Christopher Faylor2003-12-054-22/+1
|
* * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors whenChristopher Faylor2003-12-0511-8/+45
| | | | | | | | | | | | | 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.
* * libc/stdlib/mbrtowc.c: Change include order to prevent compiler errors whenChristopher Faylor2003-12-052-1/+6
| | | | defining _mbrtowc.
* * cygthread.cc (cygthread::stub2): Remove myself from the list of threadsChristopher Faylor2003-12-052-5/+11
| | | | | | 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.
* * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in aChristopher Faylor2003-12-052-1/+6
| | | | UNC path.
* * exceptions.cc (setup_handler): Remove ill-advised debugging output.Christopher Faylor2003-12-052-4/+4
|
* 2003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2003-12-053-51/+130
| | | | | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions of mb routines for %lc and %ls support. * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C, %ls, and %S support. Remove CYGNUS_NEC markers and code within.
* 2003-12-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-052-0/+10
| | | | | * libc/include/wchar.h: Add prototypes for _mbrtowc_r, _wcrtomb_r, and _wcsrtombs_r.
* bfd/H.J. Lu2003-12-042-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * elfxx-ia64.c (elfNN_ia64_relax_section): Use the need_relax_finalize field in link_info instead of relax_finalizing to check if the relax finalize pass is being done. include/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Change relax_finalizing to need_relax_finalize. ld/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Set link_info.need_relax_finalize to TRUE. * ldlang.c (lang_process): Use link_info.need_relax_finalize instead of link_info.relax_finalizing. * ldmain.c (main): Likewise.
* * include/cygwin/types.h (struct __fcntl64): Fix datatype of l_start.Corinna Vinschen2003-12-042-1/+5
|
* Add support for the M32R2 processor.Nick Clifton2003-12-032-14/+37
|
* Substitute 0x7fffffff and 0xffffffff by INT32_MAX and UINT32_MAXCorinna Vinschen2003-12-0311-16/+21
| | | | throughout, except in assembler code.
* * fhandler_disk_file.cc (fhandler_disk_file::lock): Use UINT32_MAXCorinna Vinschen2003-12-032-3/+12
| | | | | instead of 0xffffffff. Accomodate Win 9x bug in evaluating length of area to lock when given length is 0.
* * fhandler_disk_file.cc (fhandler_disk_file::lock): InterchangeCorinna Vinschen2003-12-032-2/+7
| | | | values of off_low and off_high.
* * fcntl.cc (fcntl_worker): Remove static storage class.Corinna Vinschen2003-12-034-15/+24
| | | | | | * flock.cc (flock): Use struct __flock64. Call fcntl_worker. Use Cygwin errno functions instead of accessing errno directly. * winsup.h: Declare fcntl_worker.
* * fcntl.cc (_fcntl): Whitespace cleanup.Corinna Vinschen2003-12-032-3/+7
|
* * cygthread.cc (cygthread::stub): Properly establish _threadinfo environment.Christopher Faylor2003-12-039-64/+80
| | | | | | | | | | | | | | | | | | | | | | | (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.
* * Makefile.in: Change the way that -f options are appended to CFLAGS, slightly.Christopher Faylor2003-12-032-2/+7
|
* * fcntl.cc (_fcntl): Silence a compiler warning.Christopher Faylor2003-12-022-3/+7
|
* Rename bfd_link_hash_entry field "next" -> "und_next".Alan Modra2003-12-022-1/+7
|
* Add alternative defintion of C_WEAKEXT for AIX 5.2Nick Clifton2003-12-022-1/+10
|
* * bfdlink.h (struct bfd_link_info): Remove mpc860c0 field.Alan Modra2003-12-022-45/+44
|
* * pinfo.cc (pinfo::init): Use shared_name to construct the mapname.Christopher Faylor2003-12-022-2/+6
|
* white spaceChristopher Faylor2003-12-021-14/+14
|
* Change tab to space in Changelog.Thomas Pfaff2003-12-011-1/+1
|
* * thread.cc (pthread_rwlock::add_reader): Remove mx parameter forThomas Pfaff2003-12-013-35/+31
| | | | | | | | | | | 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.
* * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. TheseCorinna Vinschen2003-12-014-1/+21
| | | | | | | 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.
* * libc/include/sys/fcntl.h: Don't define struct flock when onCorinna Vinschen2003-12-012-0/+7
| | | | Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
* * Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl.Corinna Vinschen2003-12-019-35/+130
| | | | | | | | | | | | | | | | | (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.
* * cygheap.cc (cygheap_init): Set cygheap->shared_prefix.Corinna Vinschen2003-12-014-5/+14
| | | | | * cygheap.h (struct init_cygheap): Add shared_prefix. * shared.cc (shared_name): Use cygheap->shared_prefix.
* * shared.cc (shared_name): Take into account the SE_CREATE_GLOBAL_NAMECorinna Vinschen2003-12-012-21/+26
| | | | | | | | 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.
* * include/tzfile.h: Remove duplicate definition of TM_SUNDAY.Corinna Vinschen2003-12-013-2/+7
| | | | | * localtime.cc: Point TZDIR to the /usr/share/zoneinfo directory used by the tzcode package.
* * include/winnt.h (GetCurrentFiber): Remove duplicate prototype.Danny Smith2003-12-012-5/+9
| | | | | | | (GetFiberData); Likewise. (GetCurrentFiber): Change volatile to __volatile__. (GetFiberData); Likewise.
* * flock.cc: Renamed from flock.c.Corinna Vinschen2003-11-302-0/+4
|
* * pinfo.h: Remove global_sigs declaration.Christopher Faylor2003-11-301-0/+6
| | | | | * siginfo.h: Move global_sigs declaration here. * Makefile.in: Remove duplicate compiler flag.
* * exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack locationChristopher Faylor2003-11-305-5/+10
| | | | rather than the actual stack pointer.
* * Makefile.in: (DLL_OFILES): Add flock.o.Corinna Vinschen2003-11-296-9/+137
| | | | | | | | | | | | * 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.
* * sigproc.cc (no_signals_available): Fix so that non-zero exit state is a trueChristopher Faylor2003-11-293-7/+11
| | | | | condition rather than errnoneously only checking other states when exist_state was zero.
* * pinfo.h (_pinfo::getthread2signal): Remove obsolete function.Christopher Faylor2003-11-296-22/+22
| | | | | | | | | * 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.
* * pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout.Christopher Faylor2003-11-288-44/+36
| | | | | | | | | * 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.
* * cygwin.din: Re-add inexplicably missing semaphore/msg functions.Christopher Faylor2003-11-282-0/+15
|