summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEXCorinna Vinschen2008-01-132-59/+126
| | | | | | first. Load kernel32.dll earlier. Make osname a buffer. Simplify Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up non-Vista version info. Exit early if not on NT.
* Make strstr and strcasestr O(n), not O(n^2); add memmem.Eric Blake2008-01-128-16/+664
| | | | | | | | | | | | | | | * libc/string/str-two-way.h: New file. * libc/string/memmem.c (memmem): New file. * libc/include/string.h (memmem): Declare for all platforms. * libc/string/strstr.c (strstr): Provide O(n) implementation when not optimizing for space. * libc/string/strcasestr.c (strcasestr): Likewise. * libc/string/Makefile.am (ELIX_SOURCES): Rename to... (ELIX_2_SOURCES): ...this. (ELIX_4_SOURCES): New category, for memmem. (lib_a_SOURCES, libstring_la_SOURCES): Build new file. (CHEWOUT_FILES): Build documentation for memmem. * libc/string/strings.tex: Include new docs.
* * m32c/exit.S (__exit): preserve both argument registers.DJ Delorie2008-01-112-2/+6
|
* 2008-01-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-083-60/+66
| | | | | | * libc/machine/m68k/memcpy.S: Remove % from register references as this is already handled by m68kasm.h. * libc/machine/m68k/memset.S: Ditto.
* * futex.m4: New file.Jakub Jelinek2008-01-082-0/+68
|
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2008-01-073-11/+18
|
* 2008-01-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-075-46/+60
| | | | | | | | | * libc/machine/m68k/m68kasm.h: New file. * libc/machine/m68k/setjmp.S: Remove common definitions and place in m68kasm.h. Include "m68kasm.h". * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use SYM() macro when referencing function name. * libc/machine/m68k/memset.S: Ditto.
* * fhandler.h: Update copyright.Corinna Vinschen2008-01-073-2/+8
| | | | * include/limits.h: Ditto.
* * fhandler.h (fhandler_base::is_tty): Make bool.Christopher Faylor2008-01-062-10/+23
| | | | | | | | | | | | (fhandler_serial::is_tty): Ditto. (fhandler_termios::is_tty): Ditto. (fhandler_base::is_slow): Return bool value. (fhandler_socket::is_slow): Ditto. (fhandler_serial::is_slow): Ditto. (fhandler_console::is_slow): Ditto. (fhandler_tty_common::is_slow): Ditto. (fhandler_tty_master::is_slow): Ditto. (fhandler_dev_null::is_slow): Ditto.
* * include/limits.h (TTY_NAME_MAX): Increase size to same as linux to allow forChristopher Faylor2008-01-062-1/+6
| | | | (at least) null terminating byte for "/dev/console".
* 2008-01-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0312-12/+53
| | | | | | | | | | | | | | | * arm/redboot-syscalls.c: Consistently supply _isatty if syscalls dir is used in newlib. * bfin/syscalls.c: Ditto. * cris/gensyscalls: Ditto. * fr30/syscalls.c: Ditto. * frv/isatty.c: Ditto. * iq2000/isatty.c: Ditto. * libnosys/isatty.c: Ditto. * m32r/isatty.c: Ditto. * mn10200/isatty.c: Ditto. * mn10300/isatty.c: Ditto. * xstormy16/isatty.c: New file with _isatty function.
* 2008-01-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0325-93/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
* 2008-01-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0319-76/+22
| | | | | | | | | | | | | | | | | | | | | | * libc/syscalls/sysclose.c: Always call reentrant version of the underlying syscall since one is guaranteed to exist in libc/reent. * libc/syscalls/sysexecve.c: Ditto. * libc/syscalls/sysfcntl.c: Ditto. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysfstat.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysgettod.c: Ditto. * libc/syscalls/syskill.c: Ditto. * libc/syscalls/syslink.c: Ditto. * libc/syscalls/syslseek.c: Ditto. * libc/syscalls/sysopen.c: Ditto. * libc/syscalls/sysread.c: Ditto. * libc/syscalls/syssbrk.c: Ditto. * libc/syscalls/sysstat.c: Ditto. * libc/syscalls/systimes.c: Ditto. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/syswait.c: Ditto. * libc/syscalls/syswrite.c: Ditto.
* Updated copyright notices for most files.Daniel Jacobowitz2008-01-0112-11/+15
|
* * tty.cc: Update copyright.Christopher Faylor2008-01-013-3/+9
| | | | * pipe.cc: Ditto.
* * newsym: First stab at understanding data as well as functions.Christopher Faylor2008-01-015-2808/+2799
| | | | | | | * pipe.cc (fhandler_pipe::init): Move more intelligence here. (fhandler_pipe::create): Simplify based on above change. * tty.cc (tty_list::allocate): Remove non-NT code.
* * cygwin.din (_f_llrint, _f_llrintf, _f_llrintl, _f_lrint, _f_lrintf,Dave Korn2007-12-303-7/+31
| | | | | | | | _f_lrintl, _f_rint, _f_rintf, _f_rintl): Export fast *rint* functions. (lrint, lrintf, rint, rintf): Redirect exports to alias _f_ versions. (llrint, llrintf, llrintl, lrintl, rintl): Add exports aliasing _f_* versions likewise. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * bloda.cc (enum bad_app): Add BYTEMOBILE.Dave Korn2007-12-292-1/+15
| | | | | (dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll. (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
* * faq-using.xml (faq.using.bloda): New entry.Dave Korn2007-12-293-0/+101
| | | | | (faq.using.firewall, faq.using.anti-virus): Link to faq.using.bloda. * faq-setup.xml (faq.setup.hang): Likewise link to faq.using.bloda.
* 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-12-282-2/+6
| | | | * include/_mingw.h: Increment version to 3.14.
* 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2007-12-283-3/+8
| | | | | * include/w32api.h: Increment version to 3.11. * Makefile.in: Ditto.
* * fhandler.h (class fhandler_dev_random): Add dummy_offset member.Corinna Vinschen2007-12-223-2/+33
| | | | | * fhandler_random.cc (fhandler_dev_random::lseek): Fake seeking capability as on Linux.
* * Makefile.in (cygcheck.exe): Don't link to ntdll.Brian Dessent2007-12-213-12/+42
| | | | | | | | * bloda.cc (pNtQuerySystemInformation): Add. (pRtlAnsiStringToUnicodeString): Add. (get_process_list): Use function pointers for NT functions. (dump_dodgy_apps): Skip dodgy app check on non-NT platforms. Use GetProcAddress for NT-specific functions.
* * libc/memmem.cc (memmem): Fix bug when searching for empty string.Corinna Vinschen2007-12-202-2/+6
|
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-19187-118407/+175911
| | | | | | | | | | | | | | | | | * NEWS: Update with 1.16.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.16.0. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_1.16.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-1920-34/+804
| | | | | | | | | | | | | | | | | | | | | | | * libc/string/strcasestr.c: Remove id macro. * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority field reference to be __sched_priority. * libc/sys/linux/linuxthreads/joinrace.c: Ditto. * libc/sys/linux/linuxthreads/manager.c: Ditto. * libc/sys/linux/stdlib/collate.c: Remove id macro. * libc/sys/linux/stdlib/collcmp.c: Ditto. * libc/sys/linux/stdlib/engine.c: Ditto. * libc/sys/linux/stdlib/fnmatch.c: Ditto. * libc/sys/linux/stdlib/glob.c: Ditto. * libc/sys/linux/stdlib/reallocf.c: Ditto. * libc/sys/linux/stdlib/regcomp.c: Ditto. * libc/sys/linux/stdlib/regerror.c: Ditto. * libc/sys/linux/stdlib/regexec.c: Ditto. * libc/sys/linux/stdlib/regfree.c: Ditto. * libc/sys/linux/sys/cdefs.h: Replace with latest version. * libc/sys/linux/include/argp.h: Ditto. * libc/sys/linux/sys/libc-lock.h: New file. * libc/sys/linux/sys/stdint.h: Ditto. * libc/sys/linux/include/sched.h: New file.
* 2007-12-19 Dave Korn <dave.korn@artimi.com>Jeff Johnston2007-12-1915-26/+591
| | | | | | | | | | | | | | | | | Jeff Johnston <jjohnstn@redhhat.com> * libc/include/_ansi.h: Add _LONG_LONG definition. * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add prototypes. * libc/machine/i386/machine/fastmath.h: Add support for new i386 fast math versions of rint, lrint, and llrint family functions. * libm/machine/i386/Makefile.am: Add new files. * libm/machine/i386/Makefile.in: Regenerated. * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c, libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c, libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c, libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c, libm/machine/i386/f_rintl.c: New files with fast math implementations.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+5
| | | | * COPYING.LIBGLOSS: Update default copyright.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+5
| | | | * COPYING.NEWLIB: Update default copyright.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+9
| | | | | * libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
* 2007-11-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-193-182/+198
| | | | | | | | | * libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
* * cygwin.din: Export wcpcpy, wcpncpy.Corinna Vinschen2007-12-193-1/+9
| | | | * include/cygwin/version.h: Bump API minor number.
* * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.Corinna Vinschen2007-12-197-6/+148
| | | | | | | | | | * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and wcpncpy.c. (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def. * libc/string/Makefile.in: Regenerate. * libc/string/wcpcpy.c: New file. * libc/string/wcpncpy.c: New file. * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call toCorinna Vinschen2007-12-192-3/+8
| | | | _wcsrtombs_r.
* /tmp/foo.diffRichard Sandiford2007-12-185-20/+30
|
* /tmp/foo.diffRichard Sandiford2007-12-181-0/+6
|
* * dtable.cc (POSIX_NAMED_PIPE): New define.Christopher Faylor2007-12-166-30/+247
| | | | | | | | | | | | | | | | | | | | | | | | (POSIX_NAMED_PIPE_LEN): Ditto. (dtable::add_archetype): Use crealloc_abort. (dtable::init_std_file_from_handle): Specifically detect pipe stdin/stdout. Pass name to build_fh_dev so that proper name is recorded. Use binmode of fh if it is set before using get_default_mode. Set proper read/write access when calling init(). (handle_to_fn): Handle pipes. * fhandler.cc (fhandler_base::wait_overlapped): Add some debugging. * fhandler.h (fhandler_base::set_name): Default to just setting the path_conv name. (fhandler_pipe::init): Declare. * pipe.cc (struct pipesync): New struct. (getov_result): New function. Blocks and retrieves the result of an overlay I/O operation. (pipe_handler): New function. (pipesync::pipesync): New function. Initializer for pipesync struct. (handler_pipe::init): Define. Detects attempts to set up a "native" pipe fhandler and creates a thread which accepts input from or output to the non-cygwin pipe, creating a cygwin pipe wrapper around the non-cygwin pipe. (fhandler_pipe::create): Add pipe-specific flags to call to init(). * exceptions.cc (ctrl_c_handler): Lock process while we determine what to do.
* * pathnames.xml: Fix a typo.Christopher Faylor2007-12-162-1/+5
|
* * include/cygwin/socket.h: Include sys/uio.h instead of cygwin/uio.h.Corinna Vinschen2007-12-143-2/+6
| | | | * include/cygwin/uio.h: Remove.
* * dtable.cc (dtable::set_file_pointers_for_exec): Reenable. FixCorinna Vinschen2007-12-143-4/+11
| | | | | | comment. * spawn.cc (spawn_guts): Call cygheap->fdtab.set_file_pointers_for_exec only for non-Cygwin processes.
* Merge from gcc:DJ Delorie2007-12-143-2/+7
| | | | | | | 2007-12-10 Andreas Tobler <a.tobler@schweiz.org> * configure.ac: Enable libjava for x86_64-*-darwin9. * configure: Regenerate.
* * poll.cc (poll): Return count of fds with events instead of totalCorinna Vinschen2007-12-132-39/+52
| | | | event count.
* * string.h: Guard cygwin internal string function definitions withCorinna Vinschen2007-12-132-0/+10
| | | | __INSIDE_CYGWIN__.
* * dcrt0.cc: Include string.h.Corinna Vinschen2007-12-1212-80/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (initial_env): Use small_printf's %P specifier. * dll_init.cc (dll_list::alloc): Use PATH_MAX instead of CYG_MAX_PATH for path name buffer size. * dll_init.h (struct dll): Ditto. * environ.cc: Include string.h. (win_env::add_cache): Use temporary local buffer for path conversion. (posify): Ditto. * exceptions.cc (try_to_debug): Use CreateProcessW to allow long path names. * miscfuncs.cc: Drop unused implementations of strcasematch and strncasematch. (ch_case_eq): Drop. (strcasestr): Drop. (cygwin_wcscasecmp): New function. (cygwin_wcsncasecmp): New function. (cygwin_strcasecmp): New function. (cygwin_strncasecmp): New function. (cygwin_wcslwr): New function. (cygwin_wcsupr): New function. (cygwin_strlwr): New function. (cygwin_strupr): New function. * ntdll.h (RtlDowncaseUnicodeString): Declare. (RtlUpcaseUnicodeString): Declare. (RtlInt64ToHexUnicodeString): Fix typo in comment. * string.h: Disable not NLS aware implementations of strcasematch and strncasematch. (cygwin_strcasecmp): Declare. (strcasecmp): Define as cygwin_strcasecmp. (cygwin_strncasecmp): Declare. (strncasecmp): Define as cygwin_strncasecmp. (strcasematch):Define using cygwin_strcasecmp. (strncasematch):Define using cygwin_strncasecmp. (cygwin_strlwr): Declare. (strlwr): Define as cygwin_strlwr. (cygwin_strupr): Declare. (strupr): Define as cygwin_strupr. * wchar.h: New file. * wincap.cc (wincapc::init): Use "NT" as fix OS string. * winsup.h (strcasematch): Drop declaration. (strncasematch): Ditto. (strcasestr): Ditto.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix R/O bitCorinna Vinschen2007-12-112-4/+8
| | | | handling on filesystems without ACL support.
* 2007-12-11 Dave Korn <dave.korn@artimi.com>Dave Korn2007-12-112-5/+12
| | | | | * include/wincrypt.h (PCRYPT_DECODE_PARA): Add missing typedef. (CERT_POLICY_MAPPINGS_INFO): Move before CERT_POLICY_MAPPING.
* * localtime.cc (tzset): Guard by a muto for thread safety.Corinna Vinschen2007-12-112-3/+13
|
* * cygheap.cc (_csbrk): Don't request zero bytes from VirtualAlloc,Dave Korn2007-12-112-1/+6
| | | | as windows treats that as an invalid parameter and returns an error.
* * localtime.cc (tzset): Call tzsetwall only if it hasn't beenCorinna Vinschen2007-12-112-1/+7
| | | | called before.
* * dwarf2.h (DW_AT_hi_user): Correct value.Daniel Jacobowitz2007-12-112-1/+5
|