summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * init.cc: Cleanup slightly and remove obsolete code.Christopher Faylor2002-09-165-30/+21
|
* 2002-09-11 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-09-165-66/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init.cc (dll_entry): On thread detach, if the thread hasn't exit()ed, do so. * pthread.cc (pthread_getsequence_np): Remove the __pthread_getsequence_np wrapper. This requires errno.h. * thread.cc (pthread::self): Instantiate a new pthread object when called and none exists. return a NULL object if instantiation fails. (pthread::precreate): Factor out common code. (pthread::postcreate): Ditto. (pthread::create): Ditto. (pthread::exit): Remove the TLS value when we exit to prevent double exits. (MTinterface::Init): Bugfix - don't mark the TLS index as created if one was not allocated. Apply Extract Method to move pthread specific initialisation into pthread. (pthread::initMainThread): Extracted method from MTinterface::Init. (pthread::setTlsSelfPointer): Extracted method from various pthread calls, to make reading those functions easier. (pthread::setThreadIdtoCurrent): Ditto. (pthread::cancel_self): Bring into the .cc file, it's only used within the class. (pthread::getThreadId): Ditto. (pthread::thread_init_wrapper): Apply Extract Method to the TLS setting logic. (pthread::isGoodObject): Extracted method from various pthread wrapper calls, for clarity of reading. (pthread::getsequence_np): Converted from __pthread_getsquence_np. (__pthread_create): Apply Extract Method to the object validation. (__pthread_cancel): Ditto. (__pthread_join): Ditto. (__pthread_detach): Ditto. (__pthread_suspend): Ditto. (__pthread_continue): Ditto. (__pthread_getschedparam): Ditto. (__pthread_getsequence_np): Remove. (__pthread_setschedparam): Apply Extract Method to the object validation. (pthreadNull::getNullpthread): New method, return the pthreadNull object. (pthreadNull::pthreadNull): Private constructor to prevent accidental use. (pthreadNull::~pthreadNull): Prevent compile warnings. (pthreadNull::create): Override pthread behaviour. (pthreadNull::exit): Ditto. (pthreadNull::cancel): Ditto. (pthreadNull::testcancel): Ditto. (pthreadNull::setcancelstate): Ditto. (pthreadNull::setcanceltype): Ditto. (pthreadNull::push_cleanup_handler): Ditto. (pthreadNull::pop_cleanup_handler): Ditto. (pthreadNull::getsequence_np): Ditto. (pthreadNull::_instance): Ditto. * thread.h (pthread): Declare pre- and post-create. Move GetThreadId to private scope and rename to getThreadId. Move setThreadIdtoCurrent to private scope. Make create virtual. Make ~pthread virtual. Declare initMainThread. Declare isGoodObject. Make exit virtual. Make cancel virtual. Make testcancel virtual. Make setcancelstate virtual. Make setcanceltype virtual. Make push_cleanup_handler virtual. Make pop_cleanup_handler virtual. Declare getsequence_np. Declare setTlsSelfPointer. (pthreadNull): New null object class for pthread. (__pthread_getsequence_np): Remove.
* * lib/shell32.def (SHGetFolderPath[AW]): Add comment.Danny Smith2002-09-163-1/+12
| | | | * lib/shfolder.def: New file.
* 2002-09-16 Ranjit Matthew <rmathew@hotmail.com>Danny Smith2002-09-162-1/+5
| | | | * include/stdio.h: Correct comment about directory separator.
* Add final newlines to utilsJoshua Daniel Franklin2002-09-1514-13/+41
|
* 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>Joshua Daniel Franklin2002-09-152-2/+10
| | | | | | * cygpath.cc (options) New global variable. (main) Make short options global for easier change. (print_version) Add a missing newline.
* fix typoChristopher Faylor2002-09-131-1/+1
|
* fix typoChristopher Faylor2002-09-131-1/+1
|
* * syscalls.cc (seteuid32): Treat ILLEGAL_UID invalid.Corinna Vinschen2002-09-132-6/+19
| | | | (setegid32): Treat ILLEGAL_GID invalid.
* Import chnages from master config repository.Nick Clifton2002-09-123-10/+26
|
* Handle DW_OP_GNU_push_tls_address.Nick Clifton2002-09-122-16/+24
| | | | Synch up with the gcc's dwarf2.h
* * include/sys/time.h (timeval): Add struct definition andDanny Smith2002-09-122-0/+21
| | | | associated macros (copied from w32api/include/winsock.h).
* * include/winsock.h (timeval): Guard struct and associatedDanny Smith2002-09-123-12/+24
| | | | | macros with _TIMEVAL_DEFINED. * include/winsock2.h (timeval): Likewise.
* 2002-09-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-11129-2216/+7879
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4 (enable-newlib-mb): Change check to default newlib_mb variable to empty string rather than "no". * configure.host: Remove hard-coding of -DMB_CAPABLE for x86-linux and Cygwin. Add code to check for newlib_mb being unset in which case set to "yes" for x86-linux and Cygwin. Change check for newlib_mb being "yes" to allow for an empty string. * configure.in (_MB_LEN_MAX): New AC_DEFINE. * newlib.hin (_MB_LEN_MAX): New define to configure. * aclocal.m4: Regenerated. * configure: Ditto. * libc/include/limits.h: New file. * libc/sys/linux/include/limits.h: Ditto. * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure libc/machine/aclocal.m4 libc/machine/configure libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure libc/machine/arm/aclocal.m4 libc/machine/arm/configure libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure libc/machine/frv/aclocal.m4 libc/machine/frv/configure libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure libc/machine/i386/aclocal.m4 libc/machine/i386/configure libc/machine/i960/aclocal.m4 libc/machine/i960/configure libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4 libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure libc/machine/mips/aclocal.m4 libc/machine/mips/configure libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure libc/machine/sh/aclocal.m4 libc/machine/sh/configure libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure libc/machine/v850/aclocal.m4 libc/machine/v850/configure libc/machine/w65/aclocal.m4 libc/machine/w65/configure libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure libc/machine/xstormy16/aclocal.m4 libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure libc/sys/aclocal.m4 libc/sys/configure libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure libc/sys/arc/aclocal.m4 libc/sys/arc/configure libc/sys/arm/aclocal.m4 libc/sys/arm/configure libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure libc/sys/go32/aclocal.m4 libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4 libc/sys/idt/configure libc/sys/linux/aclocal.m4 libc/sys/linux/configure libc/sys/linux/machine/aclocal.m4 libc/sys/linux/machine/configure libc/sys/linux/machine/i386/aclocal.m4 libc/sys/linux/machine/i386/configure libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure libc/sys/netware/aclocal.m4 libc/sys/netware/configure libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure libc/sys/sh/aclocal.m4 libc/sys/sh/configure libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure libc/sys/w65/aclocal.m4 libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure libm/aclocal.m4 libm/configure: Regenerated.
* * grp.cc (initgroups): Call groups::clear_supp to free theCorinna Vinschen2002-09-114-3/+21
| | | | | | | supplementary group sids that may have been set by setgroups. * security.cc (cygsidlist::free_sids): Also zero the class members. * security.h (groups::clear_supp): New. Rename cygsidlist_unknown to cygsidlist_empty.
* * ntsec.html: Add chapter for switching user context w/o password.Corinna Vinschen2002-09-112-2/+26
|
* * lib/shell32.def: Add missing stubs.Danny Smith2002-09-112-30/+85
|
* * test commitFrank Ch. Eigler2002-09-100-0/+0
|
* 2002-09-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-102-1/+32
| | | | * COPYING.NEWLIB: More updates.
* 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-102-2/+11
| | | | | * libc/sys/linux/machine/i386/crt0.c (_start): Remove code that clears the .bss section.
* 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-0917-348/+666
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/_types.h (_mbstate_t): Changed to use unsigned char internally. * libc/sys/linux/sys/_types.h: Ditto. * libc/include/sys/reent.h * libc/stdlib/mblen.c (mblen): Use function-specific state value from default reentrancy structure. * libc/stdlib/mblen_r.c (_mblen_r): If return code from _mbtowc_r is less than 0, reset state __count value and return -1. * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer is NULL, use the function-specific pointer provided in the default reentrancy structure. * libc/stdlib/mbrtowc.c: Add reentrant form of function. If input state pointer is NULL, use function-specific area provided in reentrancy structure. * libc/stdlib/mbsrtowcs.c: Ditto. * libc/stdlib/wcrtomb.c: Ditto. * libc/stdlib/wcsrtombs.c: Ditto. * libc/stdlib/mbstowcs.c: Reformat. * libc/stdlib/wcstombs.c: Ditto. * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs, reset the state's __count value and return -1. * libc/stdlib/mbtowc.c: Ditto. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality. If number of bytes is used up before completing a valid multibyte character, return -2 and save the state. * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count and change some __count references to __state for clarity.
* 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-092-2/+20
| | | | * COPYING.NEWLIB: Update.
* * fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/outputChristopher Faylor2002-09-083-4/+8
| | | | | handles since they are not properly manipulated later. * tty.cc (tty::make_pipes): Ditto.
* * include/windef.h (WINVER): Add documentation.Earnie Boyd2002-09-072-0/+17
| | | | | (_WIN32_WINNT): Ditto. Special thanks to Paul Schmidt <paul@tricattechnologies.com>
* 2002-09-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-062-4/+5
| | | | | * libc/include/sys/config.h (MB_LEN_MAX): Removed as this is defined by <limits.h>.
* whitespaceChristopher Faylor2002-09-061-4/+4
|
* * winsup.h (_WIN32_WINNT): Protect.Christopher Faylor2002-09-062-0/+6
|
* * winsup.h (_WIN32_WINNT): Define.Christopher Faylor2002-09-062-0/+6
|
* * lib/Makefile.in (TEST_OPTIONS): Define WINVER to 0x0666.Danny Smith2002-09-062-1/+6
|
* 2002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston2002-09-052-0/+7
| | | | | * libc/include/wchar.h (WCHAR_MAX): Only define if not already defined.
* * include/_mingw.h: Increment version to 2.3.Earnie Boyd2002-09-053-3/+8
| | | | Makefile.in: Ditto.
* * mingwex/fegetenv.c: Change to \n line endings.Earnie Boyd2002-09-054-22/+28
| | | | | * mingwex/vsnprintf.c: Ditto. * mingwex/vsnwprintf.c: Ditto.
* 2002-09-04 Kevin Chase <kevincha99@hotmail.com>Danny Smith2002-09-043-0/+17
| | | | | | | * include/winbase.h (AllocateUserPhysicalPages, MapUserPhysicalPages, MapUserPhysicalPagesScatter, FreeUserPhysicalPages): Add prototypes. * lib/kernel32.def: Add function stubs for above.
* 2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston2002-09-043-6/+3
| | | | | | | | * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__. * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as __WCHAR_MAX__ or 0x7fffffffu. * libc/string/wcscmp.c: Delete wrong and unnecessary type cast. * libc/string/wcsncmp.c: Ditto.
* 2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston2002-09-043-0/+25
| | | | | | | | * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__. * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as __WCHAR_MAX__ or 0x7fffffffu. * libc/string/wcscmp.c: Delete wrong and unnecessary type cast. * libc/string/wcsncmp.c: Ditto.
* some editsChristopher Faylor2002-09-041-32/+43
|
* first draftChristopher Faylor2002-09-041-0/+55
|
* fix typoChristopher Faylor2002-09-041-1/+1
|
* * Makefile.in (DLL_OFILES): Drop shortcut.o.Corinna Vinschen2002-09-046-200/+95
| | | | | | | | * path.cc: Move all shortcut functions from shortcut.c to here. (check_shortcut): Implement without using COM interface. * path.h: Move definition of SHORTCUT_HDR_SIZE to here. * shortcut.c: Remove. * shortcut.h: Ditto.
* Have objdump's --help switch document PPC -M options.Nick Clifton2002-09-042-0/+5
|
* * fhandler.h (fhandler_socket::read): Remove method.Corinna Vinschen2002-09-044-113/+324
| | | | | | | | | | | | | | | | | (fhandler_socket::write): Ditto. (fhandler_socket::readv): New method. (fhandler_socket::writev): Ditto. (fhandler_socket::recvmsg): Add new optional argument. (fhandler_socket::sendmsg): Ditto. * fhandler.cc (fhandler_socket::read): Remove method. (fhandler_socket::write): Ditto. (fhandler_socket::readv): New method. (fhandler_socket::writev): Ditto. (fhandler_socket::recvmsg): Use win32's scatter/gather IO where possible. (fhandler_socket::sendmsg): Ditto. * net.cc (cygwin_recvmsg): Check the msghdr's iovec fields. (cygwin_sendmsg): Ditto. Add omitted sigframe.
* 2002-09-03 Ren� M�ller Fonseca <fonseca@users.sourceforge.net>Danny Smith2002-09-032-6/+19
| | | | | * include/winuser.h (IDTRYAGAIN,IDCONTINUE): Add defines. Add WINVER guards for dialog box command id defines.
* 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-035-0/+11
| | | | | | | * libc/string/wcschr.c: Add include of <stddef.h>. * libc/string/wcspbrk.c: Ditto. * libc/string/wcsrchr.c: Ditto. * libc/string/wcsstr.c: Ditto.
* 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-09-0310-14/+117
| | | | | | | | | | | | | | | | | | * libc/include/sys/_types.h (_flock_t): Added. * libc/include/sys/lock.h (__lock_try_acquire): New interface. (__lock_try_acquire_recursive): Ditto. * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new _lock field. * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock field. * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto. * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto. * libc/sys/linux/include/time.h (struct timespec): Moved from <sys/types.h> and added check for __need_timespec flag so type can be defined by itself. * libc/sys/linux/sys/_types.h (_flock_t): New type. * libc/sys/linux/sys/types.h (struct timespec): Moved to <time.h>.
* * include/wincon.h (GetConsoleWindow): Add _WIN32_WINNT >= 0x0500 guard.Earnie Boyd2002-09-032-0/+6
|
* * cygwin.din: Revert exporting new wchar functions.Corinna Vinschen2002-09-033-55/+6
| | | | * include/cygwin/version.h: Change comment for API minor 62.
* * dcrt0.cc (dll_crt0_1): Remove getpagesize() call.Christopher Faylor2002-09-023-2/+6
| | | | * shared.cc (memory_init): Move it here.
* * mingwex/math/hypotl.c: Replace with version based on cephesDanny Smith2002-09-022-43/+63
| | | | library.
* * fhandler_proc.cc: Add <sys/param.h> include.Christopher Faylor2002-08-313-16/+24
| | | | | | | | | | (format_proc_uptime): Use KernelTime and UserTime only as they include the other counters. (format_proc_stat): KernelTime includes IdleTime, so subtract IdleTime from KernelTime. Make number of 'jiffies' per second same as HZ define. * fhandler_process.cc: Add <sys/param.h> include. (format_process_stat): Make number of 'jiffies' per second same as HZ define. Use KernelTime and UserTime only to calculate start_time.
* * fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Set "don't needChristopher Faylor2002-08-312-2/+5
| | | | | | ready for read" flag. (fhandler_tty_slave::read): Don't do anything special with vtime when vmin == 0.