summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* (inspired by a patch from Egor Duda)Christopher Faylor2002-08-315-45/+22
| | | | | | | | * select.cc (fhandler_tty_slave::ready_for_read): Remove. * fhandler.h (fhandler_tty_slave::ready_for_read): Remove declaration. * fhandler_tty.cc (fhandler_tty_slave::read): Don't do anything special with vtime when vmin == 0. * autoload.cc (GetConsoleWindow): Correct parameter count.
* Christopher Faylor <cgf@redhat.com>Christopher Faylor2002-08-303-3/+14
| | | | | * tty.cc (tty_list::allocate_tty): Use GetConsoleWindow, if available. Call FindWindow in a loop.
* * include/wincon.h: Define GetConsoleWindow(void).Christopher Faylor2002-08-302-0/+5
|
* * miscfuncs.cc (check_iovec_for_read): Don't check buffer when zero lengthChristopher Faylor2002-08-308-130/+288
| | | | | | | | | | | | | | | | | | | | iov_len. (check_iovec_for_write): Ditto. * fhandler.h (fhandler_base::readv): New method. (fhandler_base::writev): Ditto. * fhandler.cc (fhandler_base::readv): New method. (fhandler_base::writev): Ditto. * syscalls.cc (_read): Delegate to readv(2). (_write): Ditto, mutatis mutandi. (readv): Rewrite, based on the old _read code, to use the new fhandler_base::readv method. Improve access mode handling and ensure all calls reach the final strace statement. (writev): Ditto, mutatis mutandi. * include/sys/uio.h (struct iovec): Change field types to match SUSv3. * winsup.h (check_iovec_for_read): New function. (check_iovec_for_write): Ditto. * miscfuncs.cc (check_iovec_for_read): Ditto. (check_iovec_for_write): Ditto.
* Sigh, mbsrtowcs was still missing...Corinna Vinschen2002-08-301-0/+2
|
* * cygwin.din: Add more prototypes for new wchar functions in newlib.Corinna Vinschen2002-08-302-0/+18
|
* * cygwin.din: Add prototypes for new wchar functions in newlib.Corinna Vinschen2002-08-303-1/+45
| | | | * include/cygwin/version.h: Bump API minor number.
* * how-api.texinfo: Remove a line from the CRLF discussion about lseek notChristopher Faylor2002-08-302-6/+7
| | | | working. Answer thread safe question more simply.
* * libc/sys/linux/argp: New directory.Thomas Fitzsimmons2002-08-2922-70/+6280
| | | | | | | | | | | | | | * libc/sys/linux/getopt.c: New file. * libc/sys/linux/getopt1.c: New file. * libc/sys/linux/getoptlong.c: Remove file. * libc/sys/linux/include/argp.h: New file. * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB, based on ELIX level. (SUBDIRS): Add argp_dir. (SUBLIBS): Add ARGP_LIB. (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove getopt_long.$(oext). * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
* 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-08-296-5/+103
| | | | | | | | | * libc/libc.texinfo: Add node reference to wide-character strings. * libc/string/wcstrings.tex: New file. * libc/string/strtok_r.c: Remove outdated advertising clause. * libc/string/Makefile.am (doc): Add wide-character string chapter to documentation. * libc/string/Makefile.in: Regenerated.
* 2002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston2002-08-2926-89/+1700
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/wchar.h: Define NULL. Define WEOF more general way. Declare functions in newlib manner. * libc/stdlib/Makefile.am: Delete wmem*.c * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/wmemchr.c: Delete. * libc/stdlib/wmemcmp.c: Ditto. * libc/stdlib/wmemcpy.c: Ditto. * libc/stdlib/wmemmove.c: Ditto. * libc/stdlib/wmemset.c: Ditto. * libc/string/Makefile.am: Add wmem*.c and wcs*.c. * libc/string/Makefile.in: Regenerated. * libc/string/wcscat.c: New file derived from the NetBSD C Library. * libc/string/wcschr.c: Ditto. * libc/string/wcscmp.c: Ditto. * libc/string/wcscpy.c: Ditto. * libc/string/wcscspn.c: Ditto. * libc/string/wcslcat.c: Ditto. * libc/string/wcslcpy.c: Ditto. * libc/string/wcslen.c: Ditto. * libc/string/wcsncat.c: Ditto. * libc/string/wcsncmp.c: Ditto. * libc/string/wcsncpy.c: Ditto. * libc/string/wcspbrk.c: Ditto. * libc/string/wcsrchr.c: Ditto. * libc/string/wcsspn.c: Ditto. * libc/string/wcsstr.c: Ditto. * libc/string/wmemchr.c: Ditto. * libc/string/wmemcmp.c: Ditto. * libc/string/wmemcpy.c: Ditto. * libc/string/wmemmove.c: Ditto. * libc/string/wmemset.c: Ditto.
* 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-08-292-8/+19
| | | | | | * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so default locale "" is accepted for LC_CTYPE or LC_MESSAGES and is treated as if "C" was specified.
* * poll.cc (poll): Peek sockets ready for read to see if there'sCorinna Vinschen2002-08-292-1/+28
| | | | actually data.
* Add linker relaxation to v850 toolchainNick Clifton2002-08-292-24/+28
|
* * cygthread.cc (hthreads): Remove unneeded global.Christopher Faylor2002-08-293-14/+72
| | | | | | | | | | (cygthread::simplestub): New static member function. (cygthread::runner): Don't set hthreads. (cygthread::freerange): New member function. (cygthread::operator new): Call freerange if all cygwin slots are used up. (cygthread::exit_thread): Don't mess with event if freerange thread. (cygthread::detach): Ditto. * cygthread.h (class cygthread): Declare new member functions and variables.
* removeChristopher Faylor2002-08-291-0/+0
|
* 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-08-293-2/+9
| | | | | | | * Makefile.am (install-data-local): Move install of build newlib.h after installing headers in libc/include so as to overwrite default newlib.h. * Makefile.in: Regenerated.
* 2002-08-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-08-282-0/+7
| | | | | * libc/include/newlib.h: New file for tools that use newlib headers but don't build newlib first (e.g. gcc).
* * include/w32api.h: Increment version to 2.1.Earnie Boyd2002-08-283-2/+7
| | | | * Makefile.in: Ditto.