summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2005-02-07 Antony King <antony.king@st.com>Jeff Johnston2005-02-0850-87/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is called before _flockfile to prevent lock object use before initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT() take a struct _reent * instead of a FILE *. * libc/stdio/fclose.c (_fclose_r): Ditto. * libc/stdio/feof.c (feof): Ditto. * libc/stdio/ferror.c (ferror): Ditto. * libc/stdio/fflush.c (fflush): Ditto. * libc/stdio/fgetc.c (fgetc): Ditto. * libc/stdio/fgets.c (fgets): Ditto. * libc/stdio/fileno.c (fileno): Ditto. * libc/stdio/fputc.c (fputc): Ditto. * libc/stdio/fputs.c (fputs): Ditto. * libc/stdio/fread.c (fread): Ditto. * libc/stdio/freopen.c (_freopen_r): Ditto. * libc/stdio/fseek.c (_fseek_r): Ditto. * libc/stdio/ftell.c (_ftell_r): Ditto. * libc/stdio/fwrite.c (fwrite): Ditto. * libc/stdio/getc.c (getc): Ditto. * libc/stdio/getdelim.c (__getdelim): Ditto. * libc/stdio/putc.c (putc): Ditto. * libc/stdio/setvbuf.c (setvbuf): Ditto. * libc/stdio/ungetc.c (_ungetc_r): Ditto. * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto. * libc/stdio64/freopen64.c (_freopen64_r): Ditto. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto. * libc/stdio64/ftello64.c (_ftello64_r): Ditto. * libc/stdio/local.h (CHECK_INIT): Argument is now a struct _reent * instead of a FILE * and so replace incorrect use of _REENT with argument. * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto. * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and CHECK_INIT() take a struct _reent * instead of a FILE *. * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto. * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto. * libc/stdio/perror.c (perror): Ditto. * libc/stdio/printf.c (printf, _printf_r): Ditto. * libc/stdio/putchar.c (putchar): Ditto. * libc/stdio/puts.c (puts): Ditto. * libc/stdio/refill.c (__srefill): Ditto. * libc/stdio/scanf.c (scanf, _scanf_r): Ditto. * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto. * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto. * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto. * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto. * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto. * libc/stdio/wbuf.c (__swbuf): Ditto. * libc/stdio/wsetup.c (__swsetup): Ditto. * libc/stdlib/mallocr.c (malloc_stats): Ditto. * libc/stdlib/mstats.c (_mstats_r): Ditto. * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto. * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto. * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls to _flockfile and _funlockfile; rely on locking in _ftell_r. * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r). * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary initialision of _data field in FILE structure. * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
* 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-083-0/+34
| | | | | | | | * libc/stdio/findfp.c (__sinit): Protect with new lock. (__sinit_lock): New lock. (__sinit_lock_acquire, __sinit_lock_release): New functions. * libc/stdio/local.h: Add reference to new __sinit locking functions.
* 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-072-9/+14
| | | | | * libc/include/math.h (isfinite, isnormal, isunordered): Change input variable names to avoid mixups with nesting macros.
* 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2005-02-072-0/+15
| | | | | | | * include/winioctl.h (IOCTL_VOLUME_BASE, IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, IOCTL_VOLUME_IS_CLUSTERED): Copy defines from include/ddk/ntdddvol.h. Bug reported to Debian by Anand Kumria <wildfire at progsoc dot org>
* 2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2005-02-073-2/+14
| | | | | | | | * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES. * include/wchar.h (struct stat): Likwwise. Bug reported to Debian by Anand Kumria <wildfire@progsoc.org> * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.
* * net.cc (cygwin_gethostbyname): Be more picky about what's a numeric addressChristopher Faylor2005-02-072-9/+18
| | | | string, and use tls in that case too.
* * exceptions.cc: Make windows_system_directory non-static.Christopher Faylor2005-02-073-6/+12
| | | | | * pinfo.cc (pinfo::exit): Change innocuous cd'ed location to one that is more likely to exist.
* * path.cc (path_conv::check): Leave symlink expansion loop in caseCorinna Vinschen2005-02-066-40/+184
| | | | | | | | | | | | | a not-ENOENT error happens. * cygheap.h (cygheap_fdmanip::fhandler_pipe *): New cast operator. * pinfo.cc (_pinfo::commune_recv): Add PICOM_PIPE_FHANDLER handling. (_pinfo::commune_send): Ditto. (_pinfo::pipe_fhandler): New method. * pinfo.h (enum picom): Add PICOM_PIPE_FHANDLER. (_pinfo::pipe_fhandler): Declare. * pipe.cc (fhandler_pipe::open): Rewrite. Allow to open foreign pipe handles.
* * cygthread.h (cygthread::terminate_thread): Reflect return value.Christopher Faylor2005-02-067-25/+60
| | | | | | | | | | | | | | * cygthread.cc (cygthread::detach): Be more careful about ensuring that sigwait is properly waited for to avoid later missynchronization. (cygthread::terminate_thread): Return true if thread was actually terminated and all handles were closed. * fhandler_base.cc (fhandler_base::raw_read): Use signal_read_state rather than raw calls to win32 api. (fhandler_base::read): Ditto. * fhandler.h (fhandler_pipe::fixup_after_exec): Use method to create read_state signalling. (fhandler_pipe::create): Ditto. * Makefile.in: Make some more files -fomit-frame-pointer.
* include/Alan Modra2005-02-032-0/+5
| | | | | | | | * bfdlink.h (struct bfd_link_hash_entry): Add u.undef.weak. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. * elflink.c (elf_smash_syms): Restore symbols that were undefweak before the as-needed lib was loaded. Abort on unexpected refs.
* * fhandler.h (fhandler_base::ftruncate): Define new virtual method.Corinna Vinschen2005-02-025-34/+77
| | | | | | | | (fhandler_disk_file::ftruncate): Ditto. * fhandler.cc (fhandler_base::ftruncate): New method. * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Ditto. * syscalls.cc (ftruncate64): Move functionality into fhandlers. Call fhandler method from here.
* Import from FSF mainlineNick Clifton2005-02-021-0/+19
|
* * pipe.cc (fhandler_pipe::dup): Fix conditionals in case of error.Corinna Vinschen2005-02-022-4/+9
|
* * times.cc (utimes): Mark st_ctime for update according to SUSv3.Corinna Vinschen2005-02-022-3/+11
|
* * cris/Makefile.in (ALL_INSTALL_FILES): New macro.Hans-Peter Nilsson2005-02-012-2/+33
| | | | | | | (ALL_INSTALL_FILES_NEWLIB_COPY): New macro. (all): Use ALL_INSTALL_FILES instead of its contents. Add ALL_INSTALL_FILES_NEWLIB_COPY. ($(objroot)/newlib/%, $(objroot)/newlib/libnosys.a): New rules
* * fhandler_proc.cc (format_proc_partitions): Remove PartitionType check sinceChristopher Faylor2005-02-012-3/+7
| | | | it could skip over partitions that are actually interesting.
* * cygthread.cc (cygthread::terminate_thread): Wait briefly for notificationChristopher Faylor2005-02-019-38/+83
| | | | | | | | | | | | | | event in the event that the thread was actually in the process of exiting. * pipe.cc (fhandler_pipe::dup): read_state is not supposed to be inheritable. Fix that. * path.cc (path_conv::check): Set symlen = 0 to avoid a compiler warning. * devices.h (devices::parsedisk): Declare new function. * devices.in (devices::parsedisk): Define new function. * dtable.cc (dtable::init_std_file_from_handle): Use device numbers rather than name. * fhandler_proc.cc (format_proc_partitions): Use parsedisk to generate disk names from numeric codes. (This was broken on two of my systems previously and is still broken now)
* * pipe.cc (fhandler_pipe::open): Allow re-opening of /proc/<pid>/fdCorinna Vinschen2005-02-012-0/+38
| | | | pipes of the current process.
* * fhandler.cc (fhandler_base::get_proc_fd_name): Don't generateCorinna Vinschen2005-02-019-34/+103
| | | | | | | | | | | | | | | | | | | | | | | | | "device:" entry. * fhandler.h (fhandler_socket::open): New method. (fhandler_pipe::open): New method. * fhandler_proc.cc (fhandler_proc::exists): Return -2 in case of /proc/self. * fhandler_process.cc (fhandler_process::exists): Return -2 in case of symlinks, -3 for pipes and -4 for sockets. (fhandler_process::fstat): Handle pipes and sockets. (fhandler_process::open): Handle opening /proc/<pid>/fd. (fhandler_process::fill_filebuf): Generate empty names for non exisiting file descriptors. * fhandler_socket.cc (fhandler_socket::get_proc_fd_name): Always generate "socket:[number]" strings as on Linux. (fhandler_socket::open): New method. (fhandler_socket::fstat): Always return socket type. * path.cc (symlink_info::set): Remove unused second parameter. (path_conv::check): Handle pipes and sockets in /proc. Set correct device type for AF_LOCAL sockets. * pinfo.cc (_pinfo::commune_recv): Generate empty names for non exisiting file descriptors. (_pinfo::fd): Ditto. * pipe.cc (fhandler_pipe::open): New method.
* * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponentDanny Smith2005-02-012-0/+14
| | | | string is not valid.
* include/Alan Modra2005-02-012-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * bfdlink.h (bfd_link_repair_undef_list): Declare. bfd/ * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup.. * linker.c (bfd_link_repair_undef_list): ..to new function, but don't remove anything but new and undefweak. * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any existing _DYNAMIC. (_bfd_elf_create_dynamic_sections): Formatting. (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list. (_bfd_elf_merge_symbol): Don't handle as-needed syms here. (struct elf_smash_data): New. (elf_smash_syms): New function. (elf_link_add_object_symbols): Call elf_smash_syms. Don't add unneeded dynamic objects to loaded list. (elf_link_output_extsym): Don't handle as-needed here. Strip bfd_link_hash_new symbols. * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't delref when dynindx is already -1. * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new symbols. * elfxx-mips.c (mips_elf_output_extsym): Likewise. ld/ * ld.texinfo: Clarify --as-needed operation.
* * path.h (path_conv::set_name): Declare new function.Christopher Faylor2005-01-315-0/+27
| | | | | | * path.cc (path_conv::set_name): Define new function. * fhandler.h (fhandler_dev_null::open): Declare new function. * fhandler.cc (fhandler_dev_null::open): Define new function.
* * smallprint.c (rnarg): Use long rather than unsigned long so that we getChristopher Faylor2005-01-312-5/+8
| | | | proper sign extension.
* 2005-01-31 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-01-312-1/+7
| | | | * gettext.m4: Only set ENABLE_NLS when gettext is present.
* * cygwinenv.sgml: Add words for (no)traverse option.Corinna Vinschen2005-01-312-0/+14
|
* * environ.cc (set_traverse): New function.Corinna Vinschen2005-01-312-6/+24
| | | | | (parse_thing): Add "traverse" option. Sort options alphabetically. (environ_init): On NT, switch on traverse checking by default.
* * smallprint.c (__rn): Regparmize.Christopher Faylor2005-01-312-0/+8
|
* * smallprint.c (rnarg): New macro.Christopher Faylor2005-01-312-14/+28
| | | | | | | (rnargLL): Ditto. (__rn): Rename from 'rn', add a mask argument, and use the mask argument to control how many significant digits to care about. (__small_vsprintf): Use __rn, rnarg, rnargLL, as appropriate.
* * pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.Christopher Faylor2005-01-312-1/+5
|
* * fhandler_process.cc (format_process_maps): Get destbuf argument byCorinna Vinschen2005-01-312-7/+13
| | | | | reference. Allow resizing of destbuf as necessary. Fix string handling.
* * cygheap.h (class cygheap_fdenum): New class to enumerate usedCorinna Vinschen2005-01-3112-58/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fhandlers. * dtable.h (class dtable): Add cygheap_fdenum as friend class. * fhandler.h (fhandler_base::get_proc_fd_name): New virtual method to return a name for /proc/<pid>/fd. (fhandler_socket::get_proc_fd_name): Ditto. (fhandler_pipe::get_proc_fd_name): Ditto. (fhandler_virtual::opendir): Make virtual method. (fhandler_process::opendir): New method. * fhandler.cc (fhandler_base::get_proc_fd_name): New method. * fhandler_process.cc: Include ctype.h. (PROCESS_FD): Define. (process_listing): Add "fd". (fhandler_process::exists): Fix comment. Return 1 in case of "fd" directory. Handle files below "fd". (fhandler_process::fstat): Drop "self" handling. Set correct link count for directories. (fhandler_process::opendir): New method to handle "fd" directory. (fhandler_process::readdir): Add "fd" handling. (fhandler_process::open): Drop "self" handling. (fhandler_process::fill_filebuf): Ditto. Add "fd" handling. Fix "maps" output string. * fhandler_registry.cc (fhandler_registry::fstat): Set correct link count for directories. * fhandler_socket.cc (fhandler_socket::get_proc_fd_name): New method. * path.cc (symlink_info::set): Fix thinko. * pinfo.cc (_pinfo::commune_recv): Rename pathbuf to path throughout. Drop local path variable in PICOM_FIFO case. Fix debug output. Close handles as early as possible. Add PICOM_FDS and PICOM_FD handling. (_pinfo::commune_send): Add PICOM_FDS and PICOM_FD handling. (_pinfo::fd): New method. (_pinfo::fds): New method. * pinfo.h (enum picom): Add PICOM_FDS and PICOM_FD. (_pinfo::fd): Declare. (_pinfo::fds): Declare. * pipe.cc (fhandler_pipe::get_proc_fd_name): New method.
* * ntsec.sgml: Add Pierre's Windows 2003 text.Joshua Daniel Franklin2005-01-294-12/+30
|
* * smallprint.c (rn): Change uval to unsigned long long to fix 64 bitCorinna Vinschen2005-01-293-4/+19
| | | | | | handling. * fhandler_process.cc (format_process_maps): Print major, minor and inode numbers correctly.
* * autoload.cc (GetModuleFileNameExA): Add.Corinna Vinschen2005-01-298-23/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GetModuleInformation): Add. (QueryWorkingSet): Add. * fhandler.h (fhandler_virtual::get_filebuf): New method. * fhandler_proc.cc (PROC_SELF): Define. (proc_fhandlers): Change type of self to FH_PROC. (fhandler_proc::exists): Return -3 if self. (fhandler_proc::fstat): Handle self as symlink. (fhandler_proc::fill_filebuf): Handle self. * fhandler_process.cc: Include psapi.h. (PROCESS_EXENAME): Remove. (PROCESS_MAPS): Define. (PROCESS_ROOT): Define. (PROCESS_EXE): Define. (PROCESS_CWD): Define. (process_listing): Remove "exename", add "maps, "root", "exe" and "cwd" elements. (fhandler_process::exists): Return -2 for symlinks. (fhandler_process::fstat): Handle symlinks. (fill_filebuf): Evaluate pid if pid is 0. Use exename handling for exe. Handle maps, root and cwd. (format_process_maps): New function evaluating "maps". * path.cc (symlink_info::set): New method to fill symlink_info with data matching virtual symlinks. (path_conv::check): Handle virtual symlinks. * pinfo.cc (_pinfo::commune_recv): Add PICOM_CWD and PICOM_ROOT handling. (_pinfo::commune_send): Ditto. (_pinfo::root): New function. (_pinfo::cwd): New function. * pinfo.h (enum picom): Add PICOM_CWD and PICOM_ROOT. (_pinfo::root): Declare. (_pinfo::cwd): Declare.
* * cygthread.cc (new): Add a little more debugging.Christopher Faylor2005-01-293-1/+7
| | | | * thread.cc (pthread_null::exit): Add a _my_tls.remove() for safety.
* * configure.in (noconfigdirs) <crisv32-*-*>: Match like cris-*-*.Hans-Peter Nilsson2005-01-293-103/+112
| | | | | | <crisv32-*-*, cris-*-*>: Only disable target-newlib and target-libgloss when not *-*-elf and *-*-aout. * configure: Regenerate.
* * cygtls.cc (cygtls::call2): Move socket cleanup.Christopher Faylor2005-01-292-4/+10
| | | | (cygtls::remove): Move socket cleanup here. Don't use _my_tls to reference it.
* * how-using.texinfo: Change text about using shortcuts.Corinna Vinschen2005-01-282-11/+20
|
* .Christopher Faylor2005-01-281-3/+0
|
* * callback.h (struct host_callback_struct): New members pipe,Hans-Peter Nilsson2005-01-282-0/+38
| | | | | | pipe_empty, pipe_nonempty, ispipe, pipe_buffer and target_sizeof_int. (CB_SYS_pipe): New macro.
* * callback.h: Include "bfd.h".Hans-Peter Nilsson2005-01-282-0/+13
| | | | | (struct host_callback_struct): New member target_endian. (cb_store_target_endian): Declare.
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-2718-0/+4253
| | | | | | | | | | | | | | * configure.host: Add support for cris-*-* and crisv32-*-*. * libc/include/machine/ieeefp.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am, libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c, libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c, libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h, libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h, libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4, libc/machine/cris/configure, libc/machine/cris/Makefile.in: New files.
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-2716-50/+2665
| | | | | | | | | | * configure.in: Support cris-*-* and crisv32-*-*. * libnosys/configure.in: Ditto. * configure, libnosys/configure: Regenerate. * cris: New directory. * cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h, cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c, cris/Makefile.in, cris/setup.S, cris/configure: New files.
* 2005-01-27 Oliver Stoeneberg <oliverst@online.de>Danny Smith2005-01-272-2/+6
| | | | * include/winbase.h (PWIN32_FIND_DATA): Add typedef.
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-272-0/+188
| | | | * testsuite/newlib.string/memmove1.c: New test.
* Update previous ChangeLog entry with missing info.Jeff Johnston2005-01-271-0/+1
|
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-272-0/+5
| | | | * testsuite/include/check.h: Include stdlib.h.
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-273-0/+26
| | | | | | * Makefile.am (stmp-targ-include): Support include header files from machine directories. * Makefile.in: Regenerate.
* 2005-01-27 Andrew Cagney <cagney@gnu.org>Andrew Cagney2005-01-272-2/+6
| | | | * gettext.m4: Don't use NONE as a default for CATOBJEXT.
* 2005-01-26 Oliver Stoeneberg <oliverst@online.de>Danny Smith2005-01-272-0/+13
| | | | | * include/malloc.h: Add missing return code defines for _heapwalk()