summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * pipe.cc (getov_result): Add parameters to facilitate better EOF checking.Christopher Faylor2008-12-212-5/+15
| | | | (pipe_handler): Pass extra arguments to getov_result.
* * fhandler.cc (fhandler_base::wait_overlapped): Reorganize to eliminate gotosChristopher Faylor2008-12-202-37/+43
| | | | | and to hopefully eliminate one race when a signal is detected or there is a WFMO error.
* * pinfo.h (pinfo::thisproc): Declare. Rename from set_myself.Christopher Faylor2008-12-204-16/+25
| | | | | | | | * pinfo.cc (pinfo::thisproc): Define. Rename from set_myself. Set procinfo to NULL to avoid confusing subsequent init. (pinfo_init): Accommodate set_myself -> pinfo::thisproc rename. * dcrt0.cc (child_info_fork::handle_fork): Ditto. (child_info_spawn::handle_spawn): Ditto.
* * pwdgrp.h (pwdgrp::refresh): Fix indentation.Corinna Vinschen2008-12-203-6/+11
| | | | | * uinfo.cc (pwdgrp::load): Open file synchronized to avoid truncated read. Drop local variable off.
* 2008-12-16 Danny Smith <dannysmith@users.sourceforge.net>Chris Sutcliffe2008-12-202-25/+44
| | | | | | | | | | | | | | | | | * msvcrt.def.in (___lc_codepage_func, ___lc_collate_cp_func, ___lc_handle_func, ___mb_cur_max_func, ___setlc_active_func, ___unguarded_readlc_active_add_func, __crtCompareStringW, __crtGetStringTypeW, __crtLCMapStringW, __pctype_func, __pwctype_func, __iob_func, __uncaught_exception, __wcserror, __CxxDetectRethrow, __CxxExceptionFilter, __CxxQueryExceptionSize, __CxxRegisterExceptionObject, __CxxUnregisterExceptionObject, __CxxCallUnwindDtor, __DestructExceptionObject, _aligned_free, _aligned_malloc, _aligned_offset_malloc, _aligned_offset_realloc, _aligned_realloc, _cgetws, _cputws, _cwprintf, _cwscanf, _getwch, _getwche, _putwch, _resetstkoflw, _scprintf, _scwprintf, _set_SSE2_enable, _snscanf, _snwscanf, _strtoi64, _strtoui64, _ungetwch, _vscprintf, _vscwprintf, _wcserror, _wcstoi64, _wcstoui64, _wctype, _wtof, _get_heap_handle): Always export.
* * cris.h (R_CRIS_32_IE): New relocation.Hans-Peter Nilsson2008-12-202-0/+9
|
* * pinfo.cc (pinfo_basic): New class.Christopher Faylor2008-12-194-13/+41
| | | | | | | | | | | (pinfo_basic::pinfo_basic): Define constructor for new class. (myself): Initialize from myself_initial. (set_myself): Set pid and progname from already myself_initial. * strace.cc (strace::strace): Split apart strace::hello. Send notification to strace as early as possible. (strace::hello): Just send clause which describes the current process. This can now be preceded by early initialization strace output. * include/sys/strace.h (strace::strace): Declare new constructor.
* * fhandler_registry.cc (perf_data_files): New table.Corinna Vinschen2008-12-192-13/+77
| | | | | | | | | | | | | | | | (PERF_DATA_FILE_COUNT): New constant. (fhandler_registry::exists): Add check for HKEY_PERFORMANCE_DATA value names. (fhandler_registry::fstat): For HKEY_PERFORMANCE_DATA, return default values only. (fhandler_registry::readdir): For HKEY_PERFORMANCE_DATA, list names from perf_data_files only. (fhandler_registry::fill_filebuf): Use larger buffer to speed up access to HKEY_PERFORMANCE_DATA values. Remove check for possible subkey. Add RegCloseKey (). (open_key): Replace goto by break, remove label. Do not try to open subkey of HKEY_PERFORMANCE_DATA. Add missing RegCloseKey () after open subkey error.
* * path.cc (path_conv::check): Handle incoming DOS paths non-POSIXy,Corinna Vinschen2008-12-192-1/+14
| | | | always case-insensitive, always ignoring ACLs.
* Backport link test fix from upstream Libtool:Ralf Wildenhues2008-12-181-39/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libltdl.m4 (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS): Add cache variables to tests that require the linker to work. For shlibpath_overrides_runpath, this also changes the semantics to let the result from the C compiler take precedence. compiler take precedence. binutils/ * configure: Regenerate. opcodes/ * configure: Regenerate. bfd/ * configure: Regenerate. gas/ * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * configure: Regenerate.
* * fhandler_disk_file.cc: Set 4th parameter of NtQueryDirectoryFile toCorinna Vinschen2008-12-182-9/+22
| | | | | | | | NULL throughout. (fhandler_disk_file::facl): Fix a condition so that fstat_by_handle is actually used. (fhandler_disk_file::readdir): Don't print debug message on a simple STATUS_NO_MORE_FILES status code.
* * path.cc (symlin_info::check): Set 4th parameter ofCorinna Vinschen2008-12-182-23/+35
| | | | | | | | NtQueryDirectoryFile to NULL instead of 0 since it's a pointer. Simplify label and break from loop handling in symlink evaluation conditional expression. Drop a now useless break statement. Fix behaviour when searching for `foo' and then finding a `foo.lnk' which is no shortcut.
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2008-12-183-6/+12
|
* 2008-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-12-173-0/+158
| | | | | * COPYING.NEWLIB: Updated. * COPYING.LIBGLOSS: Ditto.
* 2008-12-17 Jon Beniston <jon@beniston.com>Jeff Johnston2008-12-172-0/+7
| | | | * configure.host: Set syscall_dir for lm32 target.
* 2008-12-17 Jon Beniston <jon@beniston.com>Jeff Johnston2008-12-1714-2560/+6332
| | | | | | | | | | | | | | | | | * README: Add description of lm32 directory. * configure.in: Add lm32 target. * configure: Regenerated. * libnosys/configure.in: Add lm32 target. * libnosys/configure: Regenerated. * lm32: New directory. * lm32/aclocal.m4: New file. * lm32/Makefile.in: New file. * lm32/configure.in: New file. * lm32/configure: New file. * lm32/crt0.S: New file. * lm32/isatty.c: New file. * lm32/scall.S: New file. * lm32/sim.ld: New file.
* 2008-12-16 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2008-12-163-4/+23
| | | | | | | | | | | | | | | | | | | Sync with GCC: 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> * configure.ac (ppllibs): Add by default the lib flags. * configure: Regenerate. 2008-12-04 Jack Howarth <howarth@bromo.med.uc.edu> * configure.ac: Add double brackets on darwin[912]. * configure: Regenerate. 2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu> * configure.ac: Expand to darwin10 and later. * configure: Regenerate.
* * utils.sgml: Fix typo in passwd screen text.Corinna Vinschen2008-12-162-1/+5
|
* * fhandler_registry.cc (DEFAULT_VALUE_NAME): Remove constant.Corinna Vinschen2008-12-162-69/+83
| | | | | | | | | | | | (encode_regname): Encode empty (default) name to "@". Encode "@" to "%40". Change error return to -1. (decode_regname): Decode "@" to empty name. Decode "%40" to "@". (fhandler_registry::exists): Skip check for keys if name is empty. Remove check for DEFAULT_VALUE_NAME, now handled by decode_regname (). (fhandler_registry::readdir): Remove check for empty name, now handled by encode_regname (). (fhandler_registry::open): Remove check for DEFAULT_VALUE_NAME. (fhandler_registry::open_key): Fail with ENOENT if key name is empty.
* * syscalls.cc (gen_full_path_at): Use isabspath instead of isdirsepCorinna Vinschen2008-12-152-1/+6
| | | | to recognize absolute path.
* 2008-12-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-12-152-2/+5
| | | | | * libc/stdio/stdio.tex: Remove putwc and getwc references as they are included as part of fputwc and fgetwc, respectively.
* * sec_auth.cc (open_local_policy): Set lsa handle toCorinna Vinschen2008-12-152-1/+11
| | | | INVALID_HANDLE_VALUE when LsaOpenPolicy fails. Explain why.
* * setlsapwd.cc (setlsapwd): Simplify code. Only try to call cygserverCorinna Vinschen2008-12-152-7/+15
| | | | | if opening local policy fails. Don't treat removing non-existant private data as error.
* * setpwd.cc (client_request_setpwd::serve): Don't treat removingCorinna Vinschen2008-12-152-1/+8
| | | | non-existant private data as error.
* * setlsapwd.cc (setlsapwd): Explicitely erase password buffer contentCorinna Vinschen2008-12-152-1/+9
| | | | after usage.
* * setpwd.cc (client_request_setpwd::serve): Explicitely erase passwordCorinna Vinschen2008-12-152-0/+7
| | | | buffer content after usage.
* * passwd.c (main): Put how to delete the registry password on its ownCorinna Vinschen2008-12-152-1/+7
| | | | line in passwd -R output.
* * fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.Corinna Vinschen2008-12-152-2/+8
| | | | (fhandler_registry::open): Ditto.
* * cygwin.din: Export fgetwc, fgetws, fputwc, fputws, fwide, getwc,Corinna Vinschen2008-12-154-8/+31
| | | | | | | getwchar, putwc, putwchar, ungetwc. * posix.sgml: Move above functions (add missing) into "implemented SUSv3" section. * include/cygwin/version.h: Bump api minor number.
* * fhandler.h (class fhandler_registry): Declare dup method.Corinna Vinschen2008-12-153-8/+34
| | | | | | * fhandler_registry.cc (fhandler_registry::exists): Fix missing parenthesis. (fhandler_registry::dup): New method.
* * gcc.sgml: Use 'bash$' as Cygwin prompt throughout.Corinna Vinschen2008-12-154-11/+18
| | | | | * gdb.sgml: Ditto. * pathnames.sgml: Ditto. Fix the @ expansion example.
* * fhandler_disk_file.cc (readdir_get_ino): Don't complain about MS-DOS pathsChristopher Faylor2008-12-143-2/+7
| | | | since the function could be fed one by an internal call.
* * utils.sgml: Convert some backslashes to slashes.Christopher Faylor2008-12-132-5/+9
|
* * pathnames.sgml: Convert some backslashes to slashes.Christopher Faylor2008-12-132-10/+14
|
* * cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code.Christopher Faylor2008-12-136-153/+158
| | | | | | | | | * fhandler_registry.cc (fhandler_registry::exists): Recode goto as if/else to avoid a gcc4 compiler warning. (fhandler_registry::open): Ditto. Use one goto rather than two. * gentls_offsets: Fix compiler warning in generated output. * tlsoffsets.h: Regenerate. * mount.cc (fillout_mntent): slashify native paths returned via getmntent.
* 2008-12-12 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2008-12-126-10/+212
| | | | | | | | * libc/include/wchar.h: Added wcstok() declaration. * libc/string/wcstok.c: New file, implementing wcstok. * libc/string/Makefile.am: Add wcstok support. * libc/string/wcstrings.tex: Ditto. * libc/string/Makefile.in: Regenerated.
* 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2008-12-124-5/+11
| | | | | | * libc/stdio/fputws.c: Fix documentation. * libc/stdio/getwchar.c: Ditto. * libc/stdio/putwchar.c: Ditto.
* 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2008-12-122-2/+8
| | | | | | * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to 200112L (SUSv3 compliance). Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
* 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2008-12-122-0/+12
| | | | | * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(), _execve(), _exit().
* 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2008-12-122-0/+5
| | | | * configure.host: Let *rtems* default to c99-formats.
* * libc/stdio/freopen.c: Add <string.h> for memset prototype.Corinna Vinschen2008-12-124-0/+9
| | | | | * libc/stdio/fseek.c: Ditto. * libc/stdio/fwide.c: Add <wchar.h> for fwide prototype.
* * pathnames.sgml: New section for /proc/registry. Document registryCorinna Vinschen2008-12-122-9/+45
| | | | name encoding.
* Formatting fix.Jeff Johnston2008-12-111-2/+2
|
* 2008-12-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-12-113-2/+8
| | | | | | * libc/include/sys/time.h(gettimeofday): Change prototype so 2nd parameter is void *, matching SUSV2. * libc/syscalls/sysgettod.c(gettimeofday): Ditto.
* 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>Jeff Johnston2008-12-1112-14/+5524
| | | | | | | | | | | | | | * configure.host: Add lm32 * libc/include/machine/ieeefp.h: Add __lm32__ * libc/include/machine/setjmp.h: Add __lm32__ * libc/machine/configure.in: Add lm32 * libc/machine/configure: Regenerated. * libc/machine/lm32/aclocal.m4: New file. * libc/machine/lm32/configure.in: Ditto. * libc/machine/lm32/configure: Ditto. * libc/machine/lm32/Makefile.am: Ditto. * libc/machine/lm32/Makefile.in: Ditto. * libc/machine/lm32/setjmp.s: Ditto.
* 2008-12-11 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2008-12-1132-82/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/lock.h: Add void cast to avoid "statement has no effect" warnings from gcc. * libc/include/sys/stdio.h: Ditto. * libc/include/sys/time.h: Correct gettimeofday() prototype. * libc/stdlib/__exp10.c: Add #include "std.h" for function prototype. * libc/stdlib/__ten_mu.c: Ditto. * libc/stdlib/std.h: Correct __exp10's ANSI prototype. * libc/stdlib/ldtoa.c: Change eiisinf definition to ANSI form. (Are already others in file without _ansi method, so did not bother.) * libc/stdlib/system.c: Use _ansi forms for function prototypes and definitions. * libc/time/mktime.c: Ditto. * libc/misc/__dprintf.c: Ditto. * libc/include/stdio.h: Add function prototypes for _fgetc_r, _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r, _funopen_r, and _fopencookie_r. * libc/include/reent.h: Add function prototype for _stat64_r, align _execve_r prototype with POSIX definition for execve. * libc/reent/execr.c: Align function prototype with POSIX definition. * libc/stdio/asniprintf.c: Add #include "local.h". * libc/stdio/vasniprintf.c: Ditto. * libc/stdio/fread.c: Remove unused variable newcount. * libc/stdio/local.h: Add function prototype for __sccl. * libc/stdio/open_memstream.c: Remove unused variable flags. * libc/stdio/vfscanf.c: Proper prototyping for ccfn, remove prototype for __sccl since now in local.h. * libc/string/memcpy.c: Add #include <string.h> (for real and for traditional synopsis), remove extraneous stddef.h and limits.h. * libc/syscalls/sysclose.c: Add #include <unistd.h>. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysexecve.c: Add #include <unistd.h>, align function prototype with POSIX definition. * libc/syscalls/sysfstat.c: Add #include <sys/stat.h>. * libc/syscalls/sysgettod.c: Correct sys/times.h to sys/time.h. * libc/syscalls/syskill.c: Add #include <signal.h>. * libc/syscalls/syslink.c: Add #include <unistd.h>, fix prototype. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/sysstat.c: Add #include <sys/stat.h>, fix prototype. * libc/syscalls/syswait.c: Add #include <sys/wait.h>, fix prototype.
* 2008-12-11 Ken Werner <ken.werner@de.ibm.comJeff Johnston2008-12-113-1/+18
| | | | | * spu/crt0.S: Call __monstartup if profiling is enabled. * spu/Makefile.in: Add gcrt1.o gcrt2.o.
* 2008-12-10 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2008-12-1030-1/+1433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement basic wide char stdio functionality, based on FreeBSD. * libc/include/stdio.h (__SORD): Define. (__SWID): Define. * libc/include/wchar.h: Add declarations for new wide char functions. (getwc): Define as macro. (getwchar): Ditto. (putwc): Ditto. (putwchar): Ditto. * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member. (struct __sFILE64): Ditto. * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c, fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c and ungetwc.c. (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def, fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and ungetwc.def. Add header dependency rules for the new files. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r. * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r. * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member. (__sfmoreglue): Ditto. * libc/stdio/fputs.c (_fputs_r): Set stream orientation. * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r. * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r. * libc/stdio/fread.c (_fread_r): Set stream orientation. * libc/stdio/freopen.c (_freopen_r): Reset stream orientation. Reset _mbstate. * libc/stdio/fseek.c (_fseek_r): Reset _mbstate. * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r. * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation. * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r. * libc/stdio/getwchar.c: New file, implementing getwchar and _getwchar_r. * libc/stdio/local.h (ORIENT): New macro. * libc/stdio/puts.c (_puts_r): Set stream orientation. * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r. * libc/stdio/putwchar.c: New file, implementing putwchar and _putwchar_r. * libc/stdio/refill.c (__srefill_r): Set stream orientation. * libc/stdio/stdio.tex: Add documentation for new functions. * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation. * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r. * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation. * libc/stdio/wbuf.c (__swbuf_r): Ditto.
* merge from gccDJ Delorie2008-12-102-0/+18
|
* 2008-12-10 Joseph Myers <joseph@codesourcery.com>Jeff Johnston2008-12-102-17/+117
| | | | | | | | | | | | | | | | | * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to constants with "long" types where appropriate. (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX): Correct to match logic for defining corresponding types. (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define. (SIZE_MAX): Define using __SIZE_MAX__ if available. (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available. (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX. (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define. (UINT8_C, UINT16_C): Define to give signed values if corresponding types would promote to int.