aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-12-05* exceptions.cc (setup_handler): Remove ill-advised debugging output.Christopher Faylor2-4/+4
2003-12-052003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston3-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-052003-12-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+10
* libc/include/wchar.h: Add prototypes for _mbrtowc_r, _wcrtomb_r, and _wcsrtombs_r.
2003-12-04bfd/H.J. Lu2-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.
2003-12-04 * include/cygwin/types.h (struct __fcntl64): Fix datatype of l_start.Corinna Vinschen2-1/+5
2003-12-03Add support for the M32R2 processor.Nick Clifton2-14/+37
2003-12-03 Substitute 0x7fffffff and 0xffffffff by INT32_MAX and UINT32_MAXCorinna Vinschen11-16/+21
throughout, except in assembler code.
2003-12-03 * fhandler_disk_file.cc (fhandler_disk_file::lock): Use UINT32_MAXCorinna Vinschen2-3/+12
instead of 0xffffffff. Accomodate Win 9x bug in evaluating length of area to lock when given length is 0.
2003-12-03 * fhandler_disk_file.cc (fhandler_disk_file::lock): InterchangeCorinna Vinschen2-2/+7
values of off_low and off_high.
2003-12-03 * fcntl.cc (fcntl_worker): Remove static storage class.Corinna Vinschen4-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.
2003-12-03 * fcntl.cc (_fcntl): Whitespace cleanup.Corinna Vinschen2-3/+7
2003-12-03* cygthread.cc (cygthread::stub): Properly establish _threadinfo environment.Christopher Faylor9-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.
2003-12-03* Makefile.in: Change the way that -f options are appended to CFLAGS, slightly.Christopher Faylor2-2/+7
2003-12-02* fcntl.cc (_fcntl): Silence a compiler warning.Christopher Faylor2-3/+7
2003-12-02Rename bfd_link_hash_entry field "next" -> "und_next".Alan Modra2-1/+7
2003-12-02Add alternative defintion of C_WEAKEXT for AIX 5.2Nick Clifton2-1/+10
2003-12-02 * bfdlink.h (struct bfd_link_info): Remove mpc860c0 field.Alan Modra2-45/+44
2003-12-02* pinfo.cc (pinfo::init): Use shared_name to construct the mapname.Christopher Faylor2-2/+6
2003-12-02white spaceChristopher Faylor1-14/+14
2003-12-01Change tab to space in Changelog.Thomas Pfaff1-1/+1
2003-12-01* thread.cc (pthread_rwlock::add_reader): Remove mx parameter forThomas Pfaff3-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.
2003-12-01 * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. TheseCorinna Vinschen4-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.
2003-12-01 * libc/include/sys/fcntl.h: Don't define struct flock when onCorinna Vinschen2-0/+7
Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
2003-12-01 * Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl.Corinna Vinschen9-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.
2003-12-01 * cygheap.cc (cygheap_init): Set cygheap->shared_prefix.Corinna Vinschen4-5/+14
* cygheap.h (struct init_cygheap): Add shared_prefix. * shared.cc (shared_name): Use cygheap->shared_prefix.
2003-12-01 * shared.cc (shared_name): Take into account the SE_CREATE_GLOBAL_NAMECorinna Vinschen2-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.
2003-12-01 * include/tzfile.h: Remove duplicate definition of TM_SUNDAY.Corinna Vinschen3-2/+7
* localtime.cc: Point TZDIR to the /usr/share/zoneinfo directory used by the tzcode package.
2003-12-01 * include/winnt.h (GetCurrentFiber): Remove duplicate prototype.Danny Smith2-5/+9
(GetFiberData); Likewise. (GetCurrentFiber): Change volatile to __volatile__. (GetFiberData); Likewise.
2003-11-30 * flock.cc: Renamed from flock.c.Corinna Vinschen2-0/+4
2003-11-30* pinfo.h: Remove global_sigs declaration.Christopher Faylor1-0/+6
* siginfo.h: Move global_sigs declaration here. * Makefile.in: Remove duplicate compiler flag.
2003-11-30* exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack locationChristopher Faylor5-5/+10
rather than the actual stack pointer.
2003-11-29 * Makefile.in: (DLL_OFILES): Add flock.o.Corinna Vinschen6-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.
2003-11-29* sigproc.cc (no_signals_available): Fix so that non-zero exit state is a trueChristopher Faylor3-7/+11
condition rather than errnoneously only checking other states when exist_state was zero.
2003-11-29* pinfo.h (_pinfo::getthread2signal): Remove obsolete function.Christopher Faylor6-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.
2003-11-28* pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout.Christopher Faylor8-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.
2003-11-28* cygwin.din: Re-add inexplicably missing semaphore/msg functions.Christopher Faylor2-0/+15
2003-11-28* gendevices: Issue error when shilka is missing.Christopher Faylor2-1/+9
2003-11-28* libc/include/sys/signal.h: Use system specific signal file when building onChristopher Faylor2-47/+10
cygwin.
2003-11-28* include/cygwin/signal.h: New file.Christopher Faylor3-0/+235
(also check in tlsoffsets.h, missed by previous checkin)
2003-11-28Eliminate use of sigframe and sigthread throughout.Christopher Faylor50-3464/+3309
* 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.
2003-11-28* speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor1-2/+2
when running under Windows.
2003-11-28* speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor1-0/+5
when running under Windows.
2003-11-27* lib/Makefile.in: Use make function to locate .mri file to allow building inChristopher Faylor2-2/+7
directory other than source directory.
2003-11-27* fhandler_disk_file.cc (fhandler_disk_file::readdir): Reorganize to avoidChristopher Faylor2-8/+14
inappropriate .lnk extensions with munged filenames under managed mode.
2003-11-272003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-1/+34
* libc/include/stdlib.h (_atoi_r): New prototype. * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
2003-11-272003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston4-3/+41
* libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes. * libc/stdlib/atol.c (_atol_r): New reentrant function. * libc/stdlib/atoll.c (_atoll_r): Ditto.
2003-11-272003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston8-8/+311
Jeff Johnston <jjohnstn@redhat.com> * libc/include/stdlib.h (lldiv_t): New type. (atoll, llabs, lldiv): New prototypes. * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv. * libc/stdlib/stdlib.tex: Ditto. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atoll.c: New file. * libc/stdlib/llabs.c: Ditto. * libc/stdlib/lldiv.c: Ditto.
2003-11-272003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+32
* COPYING.NEWLIB: Add license info for long long routines added to stdlib.
2003-11-272003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>Danny Smith2-1/+8
* include/signal.h (SIG_SGE, SIG_ACK): Add defines.
2003-11-27 * lib/vfw32.def: Remove, replacing with ...Danny Smith6-58/+91
* 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.