summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * resolv.h: #include <netinet/in.h> for sockaddr_in typedef.Corinna Vinschen2008-12-092-0/+5
|
* Committed as obvious.Danny Smith2008-12-092-1/+5
| | | | | | 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com> * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
* * fhandler_registry.cc (encode_regname): Add Parameter add_val.Corinna Vinschen2008-12-082-36/+163
| | | | | | | | | | | | | | | | | | | | Append "%val" if add_val is set. (decode_regname): Remove trailing "%val". Change returncode accordingly. (__DIR_hash): New class. (d_hash): New macro. (key_exists): New function. (fhandler_registry::exists): Remove encode of registry name before path compare, decode file part of path instead. Skip checks for keys if trailing "%val" detected. (fhandler_registry::fstat): Change check of return value of decode_regname (). (fhandler_registry::readdir): Allocate __DIR_hash. Record key names in hash table. Append "%val" if key with same name exists. Fix error handling of encode_regname (). Set dirent.d_type. (fhandler_registry::closedir): Delete __DIR_hash. (fhandler_registry::open): Don't open key if trailing "%val" detected by decode_regname (). (open_key): Ditto.
* * mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. UpdateAdam Nemet2008-12-062-3/+8
| | | | comment.
* 2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2008-12-063-3/+8
| | | | | * include/w32api.h: Increment version to 3.13. * Makefile.in: Ditto.
* 2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2008-12-063-232/+5
| | | | | * lib/glut.def: remove. * lib/glut32.def: ditto.
* * mips/idt64.ld: Set arch to mips:isa64r2 from mips:isa64. UpdateAdam Nemet2008-12-052-3/+10
| | | | comment.
* * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.Corinna Vinschen2008-12-042-3/+9
| | | | | (_POSIX_V6_LP64_OFF64): Ditto. (_POSIX_V6_LPBIG_OFFBIG): Ditto.
* * ntsec.sgml: Fix typo.Corinna Vinschen2008-12-042-2/+6
|
* * libc/minires.c (open_sock): Set non blocking and close on exec.Corinna Vinschen2008-12-032-48/+103
| | | | | | | (res_ninit): Set id pseudo-randomly. (res_nsend): Do not set close on exec. Initialize server from id. Flush socket. Tighten rules for answer acceptance. (res_nmkquery): Update id using current data.
* include/elf/Nick Clifton2008-12-032-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common.h (STT_IFUNC): Define. elfcpp/ * elfcpp.h (enum STT): Add STT_IFUNC. bfd/ * syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION. Remove redundant flag BFD_FORT_COMM_DEFAULT_VALUE. Renumber flags to remove gaps. (bfd_print_symbol_vandf): Return 'i' for BSF_INDIRECT_FUNCTION. (bfd_decode_symclass): Likewise. * elf.c (swap_out_syms): Translate BSF_INDIRECT_FUNCTION into STT_IFUNC. (elf_find_function): Treat STT_IFUNC in the same way as STT_FUNC. (_bfd_elf_is_function_type): Likewise. * elf32-arm.c (arm_elf_find_function): Likewise. (elf32_arm_adjust_dynamic_symbol): Likewise. (elf32_arm_swap_symbol_in): Likewise. (elf32_arm_additional_program_headers): Likewise. * elf32-i386.c (is_indirect_symbol): New function. (elf_i386_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (is_indirect_symbol): New function. (elf64_x86_64_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf64_x86_64_relocate_section): Likewise. * elfcode.h (elf_slurp_symbol_table): Translate STT_IFUNC into BSF_INDIRECT_FUNCTION. * elflink.c (_bfd_elf_adjust_dynamic_reloc_section): Add support for STT_IFUNC symbols. (get_ifunc_reloc_section_name): New function. (_bfd_elf_make_ifunc_reloc_section): New function. * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs field. * bfd-in2.h: Regenerate. gas/ * config/obj-elf.c (obj_elf_type): Add support for STT_IFUNC type. * doc/as.texinfo: Document new feature. * NEWS: Mention new feature. gas/testsuite/ * gas/elf/type.s: Add test of STT_IFUNC symbol type. * gas/elf/type.e: Update expected disassembly. * gas/elf/elf.exp: Update grep of symbol types. ld/ * NEWS: Mention new feature. * pe-dll.c (process_def_file): Replace use of redundant BFD_FORT_COMM_DEFAULT_VALUE with 0. * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn sections. ld/testsuite/ * ld-mips-elf/reloc-1-n32.d: Updated expected output for reloc descriptions. * ld-mips-elf/reloc-1-n64.d: Likewise. * ld-i386/ifunc.d: New test. * ld-i386/ifunc.s: Source file for the new test. * ld-i386/i386.exp: Run the new test.
* * ntsec.sgml: Revamp parts of the doc for clearness.Corinna Vinschen2008-12-032-61/+86
|
* * ntsec.sgml: Fix a few typos.Corinna Vinschen2008-12-022-2/+6
|
* * cygserver.sgml: Fix cross reference to the ntsec documentation.Corinna Vinschen2008-12-022-1/+5
|
* * cygserver.sgml: Document new feature to store hidden passwordsCorinna Vinschen2008-12-022-0/+13
| | | | for seteuid.
* * ntsec.sgml: Finishing up changes for 1.7.Corinna Vinschen2008-12-022-190/+422
|
* * Makefile.def: configure-target-boehm-gc depends onAndreas Schwab2008-12-023-209/+216
| | | | | all-target-libstdc++-v3. * Makefile.in: Regenerate.
* * fhandler_registry.cc (must_encode): Fix condition changed for testing.Corinna Vinschen2008-12-022-1/+5
|