summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * passwd.c (usage): Change description for -d option according toCorinna Vinschen2009-03-233-5/+29
| | | | | | previous change. (main): Fix typo. * utils.sgml: Add missing description for passwd -d option.
* 2009-03-23 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-03-232-1/+24
| | | | * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
* * passwd.c (caller_is_admin): New function to test if calling userCorinna Vinschen2009-03-232-19/+69
| | | | | | | | | is an administrator by inspecting user token. (main): Drop fetching caller info from logonserver. Only fetch server from environment when trying to change password for own account. Drop admin check entirely in case of doing account maintainance. Otherwise replace check for admin by result of caller_is_admin call.
* * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR andCorinna Vinschen2009-03-232-3/+12
| | | | | PUNICODE_STRING arguments. (__small_vswprintf): Ditto.
* * include/asm/byteorder.h (__constant_ntohs): Remove declaration.Corinna Vinschen2009-03-232-2/+5
| | | | (__constant_ntohl): Ditto.
* * libc/locale/locale.c (loadlocale): Fix typo in language andCorinna Vinschen2009-03-232-4/+9
| | | | territory evaluation.
* * cygwin.din: Export wordexp, wordfree.Corinna Vinschen2009-03-234-3/+12
| | | | | * posix.sgml: Move them to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
* * include/sys/un.h: #include <string.h> for strlen.Corinna Vinschen2009-03-232-1/+6
|
* * passwd.c (main): Always get logonserver from environment andCorinna Vinschen2009-03-222-3/+11
| | | | use when fetching user info for caller.
* * ldd.cc: Fix compiler warning.Corinna Vinschen2009-03-223-21/+29
| | | | | | * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout. (main): Call setlocale. Fix a bug in fetching the logon server from the environment.
* include/elf:Ian Lance Taylor2009-03-202-0/+5
| | | | | | | | | | * common.h (SHT_GNU_INCREMENTAL_INPUTS): Define. elfcpp: * elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define. gold: * incremental.cc: New file. * Makefile.am (CCFILES): Add incremental.cc. * Makefile.in: Rebuild.
* 2009-03-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-03-203-3/+40
| | | | | | | * libc/include/sys/errno.h: Protect various non-standard errnos with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__. * libc/include/sys/config.h[__CYGWIN__]: Define __LINUX_ERRNO_EXTENSIONS__.
* * cygserver-config: Remove misleading text describing theCorinna Vinschen2009-03-202-7/+5
| | | | "CYGWIN=server" setting for the client.
* * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of anCorinna Vinschen2009-03-193-16/+70
| | | | | | | | invalid character sequence. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to missing declaration of __locale_charset. * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
* * dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.Corinna Vinschen2009-03-192-2/+6
|
* * cygwin.din: Export log2, log2f as functions.Corinna Vinschen2009-03-194-1/+12
| | | | | * posix.sgml: Add them to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
* * configure: Rebuild.Tom Tromey2009-03-185-3/+411
| | | | | | | * configure.ac (host_libs): Add libiconv. * Makefile.in: Rebuild. * Makefile.def (host_modules): Add libiconv. (configure-gdb, all-gdb): Depend on libiconv.
* 2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-03-186-25/+176
| | | | | | | | * libm/common/s_log2.c: New file. * libm/common/sf_log2.c: Ditto. * libm/common/Makefile.am: Add s_log2.c and sf_log2.c. * libm/common/Makefile.in: Regenerated. * libc/include/math.h: Add log2 and log2f function prototypes.
* * common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)Mark Kettenis2009-03-182-0/+18
| | | | | (NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS) (NT_OPENBSD_WCOOKIE): New defines.
* *** empty log message ***Christopher Faylor2009-03-181-0/+4
|
* Re-add inexplicably missing ldh.cc.Christopher Faylor2009-03-181-0/+17
|
* * sec_auth.cc (lsaauth): Remove local definitions of structCorinna Vinschen2009-03-182-12/+29
| | | | | | | _TOKEN_LINKED_TOKEN and TokenLinkedToken in favor of definitions from winnt.h. (lsaprivkeyauth): As in lsaauth, fetch linked token if available and return that in favor of default token.
* * winnt.h: Add Vista token security extensions.Corinna Vinschen2009-03-182-1/+73
| | | | | | | | | | | | | | | | (SID_HASH_SIZE): Define. (TOKEN_MANDATORY_POLICY_OFF, TOKEN_MANDATORY_POLICY_NO_WRITE_UP, TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN, TOKEN_MANDATORY_POLICY_VALID_MASK): Define. (SID_HASH_ENTRY): Define. (struct _SID_AND_ATTRIBUTES_HASH): Define. (struct _TOKEN_LINKED_TOKEN): Define. (struct _TOKEN_MANDATORY_LABEL): Define. (struct _TOKEN_MANDATORY_POLICY): Define. (struct _TOKEN_ELEVATION): Define. (struct _TOKEN_ACCESS_INFORMATION): Define. (enum _TOKEN_INFORMATION_CLASS): Conditionally define new Vista token information enumeration values.
* * cygwin-ug-net.in.sgml: Update date.Corinna Vinschen2009-03-185-4/+292
| | | | | | | | * cygwinenv.sgml: Fix codepage:utf8 text in terms of setting environment variables. * new-features.sgml: New file describing new Cygwin 1.7 features. Layout is preliminiary only. * overview.sgml: Insert content of new-features.sgml.
* include/Alan Modra2009-03-182-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13 documentation. bfd/ * elf32-m68hc1x.c: Include alloca-conf.h. * xsym.c: Likewise. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. * som.c: Likewise. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * sysdep.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * as.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * openrisc-opc.c: Regenerate. ld/ * ld.h: Remove alloca handling.
* * overview2.sgml: Remove reference to CYGWIN=binmode.Corinna Vinschen2009-03-183-44/+102
| | | | | | | * textbinary.sgml: Ditto. Rephrase certain paragraphs to match Cygwin 1.7 behaviour. Add popen(3) and pipe(2) behaviour. Make quite clear that binmode is preferred. Add *mode.o files to description for developers.
* * ldd.cc (load_dll): Start helper program rather than ldd.exe.Christopher Faylor2009-03-183-75/+113
| | | | | | | | | | | | | (set_entry_point_break): Rename from get_entry_point. (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing specific dll name if we're looking at a dll. (report): Always dump dlls on process exit. Don't allow thread creation. Accommodate get_entry_point rename. (start_process): Start process with DEBUG_ONLY_THIS_PROCESS. (longopts): Eliminate "dll" option. (main): Ditto. * ldd.cc: Use wide character Win32 paths throughout. (load_dll): Fix size expression (add fn) in realloc.
* merge from gccDJ Delorie2009-03-182-2/+9
|
* * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destinationCorinna Vinschen2009-03-172-8/+17
| | | | string correctly.
* 2009-03-16 Mark Mitchell <mark@codesourcery.com>Jeff Johnston2009-03-164-17/+31
| | | | | | | | | | | * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode. 2009-03-16 Richard Earnshaw <rearnsha@arm.com> * libc/machine/arm/strlen.c (strlen): Correctly detect end-of-string. * libc/machine/arm/strcpy.c (strcpy): Likewise. * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
* 2009-03-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-03-162-822/+856
| | | | * m32r/m32r-stub.c: Replace with one from newer version of gdb.
* * configure.ac: Treat gdb as supported on x86_64-darwin.Joel Brobecker2009-03-163-4/+9
| | | | * configure: Regenerate.
* Merge from GCC:Joseph Myers2009-03-163-52/+103
| | | | | | | | | | | | | | | | | | | 2009-03-16 Joseph Myers <joseph@codesourcery.com> * configure.ac (--with-host-libstdcxx): New option. * configure: Regenerate. 2009-01-29 Robert Millan <rmh@aybabtu.com> * configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu). * configure: Regenerate. 2009-01-12 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/38515 * configure.ac (cloog-polylib): Removed. (with_ppl, with_cloog): Test for "no". * configure: Regenerated.
* Move changelog entry to the right file.Andrew Stubbs2009-03-161-4/+0
| | | | Sorry folks.
* 2009-03-16 Andrew Stubbs <ams@codesourcery.com>Andrew Stubbs2009-03-161-0/+4
| | | | * dwarf2.c (read_section): Always use rawsize, if available.
* include/elf/Jan Kratochvil2009-03-162-0/+5
| | | | * common.h (AT_RANDOM): Define.
* * errno.cc (_sys_errlist): Add ESTRPIPE.Corinna Vinschen2009-03-152-1/+6
|
* * cygwin.din: Export wcsdup.Corinna Vinschen2009-03-154-1/+10
| | | | | * posix.sgml: Add wcsdup to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
* * libc/include/sys/errno.h (ESTRPIPE): Define.Corinna Vinschen2009-03-153-0/+14
| | | | * libc/string/strerror.c (strerror): Decode it.
* * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.Corinna Vinschen2009-03-156-6/+91
| | | | | | | * libc/string/Makefile.am: Add wcsdup.c. * libc/string/Makefile.in: Regenerate. * libc/string/strings.tex: Add wcsdup documentation reference. * libc/string/wcsdup.c: New file.
* * include/inttypes.h: Remove "l" size specifier from all 16 and 32 bitCorinna Vinschen2009-03-152-44/+49
| | | | definitions.
* * ldd.cc (longopts): Add --dll option.Christopher Faylor2009-03-142-13/+104
| | | | | | | | | | | | | | (get_module_filename): Generalized wrapper function which avoid path length restrictions. (load_dll): Handle special-case of inspecting a DLL. (start_process): Accept an output parameter "isdll". Detect when file to start is a DLL and start a wrapper instead. (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing everything before the DLL itself first appears. (This is not strictly correct and should be fixed eventually) (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let captive ldd process terminate normally. Pass dll info to print_dlls_and_kill_inferior. (main): Handle special-case "--dll" option by loading the DLL and exiting.
* * path.cc (warn_msdos): Don't warn about MS-DOS filenames encountered duringChristopher Faylor2009-03-142-1/+6
| | | | initialization.
* * path.cc (from_fstab): Use wcstombs/mbstowcs instead ofCorinna Vinschen2009-03-142-5/+8
| | | | WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
* * wide_path.h (class wide_path): New class to convert Windows pathCorinna Vinschen2009-03-144-64/+178
| | | | | | | | | | | | | | | | | | | | to WCHAR win32 path, including long path conversion if necessary. * cygcheck.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (display_error): Use snprintf rather than sprintf. (display_error_fmt): Ditto. (dump_sysinfo): Use FindFirstFileW/FindNextFileW. * cygpath.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (get_device_name): Raise buffer size to take long pathnames. (get_short_paths): Convert to using GetShortPathNameW. (get_short_name): Ditto. (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW. (get_long_name): Convert to using GetLongPathNameW. (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX. (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t Win32 path name and drop long pathname prefix if possible. (main): Call setlocale to accommodate wide char/multibyte conversions.
* * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out ofCorinna Vinschen2009-03-142-2/+7
| | | | !_REENT_ONLY section.
* * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarationsCorinna Vinschen2009-03-144-3/+18
| | | | | | | to stdlib.h. * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using. * libc/stdio/mktemp.c: Explain the security risk when using mktemp.
* include/coff/Richard Sandiford2009-03-142-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xcoff.h (XCOFF_EXPALL, XCOFF_EXPFULL): New flags. (xcoff_loader_info): Add auto_export_flags. bfd/ * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the bfd_boolean export_defineds parameter with an unsigned int auto_export_flags parameter. * bfd-in2.h: Regenerate. * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, split out from xcoff_build_ldsyms. (xcoff_covered_by_expall_p): New function. (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms but with extra code to handle -bexpfull and -bexpall. (xcoff_mark_auto_exports): New function. (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether a function should be automatically exported. (bfd_xcoff_size_dynamic_sections): Replace the export_defineds parameter with an auto_export_flags parameter. Update ldinfo accordingly. Use xcoff_mark_auto_exports to mark all automatically- exported symbols. ld/ * emultempl/aix.em (auto_export_flags): New variable. (explicit_auto_export_flags): Likewise. (OPTION_EXPALL, OPTION_EXPFULL): New enum values. (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise. (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull, -bnoexpall and -bnoexpfull. (gld${EMULATION_NAME}_handle_option): Handle them. (gld${EMULATION_NAME}_before_allocation): Update the call to bfd_size_dynamic_sections. ld/testsuite/ * ld-powerpc/aix-export-1-all.dd, ld-powerpc/aix-export-1-full.dd, ld-powerpc/aix-export-1a.s, ld-powerpc/aix-export-1b.s: New tests. * ld-powerpc/aix52.exp: Run them.
* include/coff/Richard Sandiford2009-03-143-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * internal.h (C_AIX_WEAKEXT): New macro. (C_WEAKEXT): Use the GNU definition in the generic part of the file, and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of the file. (CSECT_SYM_P): New macro. * xcoff.h (L_WEAK): Define. (EXTERN_SYM_P): New macro. bfd/ * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to check whether a symbol has csect information. (coff_print_aux): Likewise. * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect information for C_AIX_WEAKEXT too. (_bfd_xcoff_swap_aux_out): Likewise. (xcoff_reloc_type_br): Handle defweak symbols too. * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect information for C_AIX_WEAKEXT too. (_bfd_xcoff64_swap_aux_out): Likewise. (xcoff64_reloc_type_br): Handle defweak symbols too. * coffgen.c (coff_print_symbol): Handle auxillary function information for C_AIX_WEAKEXT too. * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK instead of BSF_GLOBAL if the L_WEAK flag is set. (xcoff_dynamic_definition_p): New function. (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym defines h. Don't change h if ldsym isn't the definition. Otherwise, always take the symbol class from the ldsym. Use weak bfd symbol types for weak ldsyms. (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. Fix the check for whether a definition is from a shared object. Allow redefinitions of weak symbols. (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. (xcoff_keep_symbol_p): Likewise. (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, but mark them as L_WEAK. (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. gas/ * config/tc-ppc.c (ppc_frob_symbol): Add csect information for C_AIX_WEAKEXT too. ld/testsuite/ * ld-powerpc/aix-glink-2a.s, ld-powerpc/aix-glink-2a.ex, ld-powerpc/aix-glink-2b.s, ld-powerpc/aix-glink-2c.s, ld-powerpc/aix-glink-2c.ex, ld-powerpc/aix-glink-2d.s, ld-powerpc/aix-glink-2-32.dd, ld-powerpc/aix-glink-2-64.dd, ld-powerpc/aix-weak-1a.s, ld-powerpc/aix-weak-1b.s, ld-powerpc/aix-weak-1-rel.hd, ld-powerpc/aix-weak-1-rel.nd, ld-powerpc/aix-weak-1-dso.hd, ld-powerpc/aix-weak-1-dso.nd, ld-powerpc/aix-weak-1-dso.dnd, ld-powerpc/aix-weak-1.ex, ld-powerpc/aix-weak-2a.s, ld-powerpc/aix-weak-2a.ex, ld-powerpc/aix-weak-2a.nd, ld-powerpc/aix-weak-2b.s, ld-powerpc/aix-weak-2b.nd, ld-powerpc/aix-weak-2c.s, ld-powerpc/aix-weak-2c.ex, ld-powerpc/aix-weak-2c.nd, ld-powerpc/aix-weak-2c.od, ld-powerpc/aix-weak-3a.s, ld-powerpc/aix-weak-3a.ex, ld-powerpc/aix-weak-3b.s, ld-powerpc/aix-weak-3b.ex, ld-powerpc/aix-weak-3-32.d, ld-powerpc/aix-weak-3-32.dd, ld-powerpc/aix-weak-3-64.d, ld-powerpc/aix-weak-3-64.dd: New tests. * ld-powerpc/aix52.exp: Run them. Replace tmp/aix-* with tmp/aix64-* in 64-bit ld options.
* include/coff/Richard Sandiford2009-03-142-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * xcoff.h (XCOFF_ALLOCATED): New flag. bfd/ * xcofflink.c (xcoff_mark): When walking the relocations, only mark the target symbol or the target section, not both. (xcoff_final_definition_p): New function. (xcoff_keep_symbol_p): Use it to check whether an external XCOFF symbol is a valid definition of the associated output symbol. Use XCOFF_ALLOCATED to stop the same hash table entry having two output symbols. (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when keeping a symbol. (xcoff_link_input_bfd): Use xcoff_final_definition_p. ld/testsuite/ * ld-powerpc/aix-no-dup-syms-1a.s, ld-powerpc/aix-no-dup-syms-1b.s, ld-powerpc/aix-no-dup-syms-1.ex, ld-powerpc/aix-no-dup-syms-1.im, ld-powerpc/aix-no-dup-syms-1-dso.dnd, ld-powerpc/aix-no-dup-syms-1-dso.drd, ld-powerpc/aix-no-dup-syms-1-dso.nd, ld-powerpc/aix-no-dup-syms-1-dso.rd, ld-powerpc/aix-no-dup-syms-1-rel.nd, ld-powerpc/aix-no-dup-syms-1-rel.rd: New tests. * ld-powerpc/aix52.exp: Run them.