efc428827b* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t. * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype. * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long rather than off_t.
Corinna Vinschen
2010-07-06 15:23:27 +0000
f599b05497gas/ * config/tc-mips.c (nops_for_insn_or_target): Replace MIPS16_INSN_BRANCH with MIPS16_INSN_UNCOND_BRANCH and MIPS16_INSN_COND_BRANCH.
Maciej W. Rozycki
2010-07-06 00:02:44 +0000
c492992f13Align seekdir and telldir API to POSIX definition. * Makefile.in (NEW_FUNCTIONS): Remove seekdir and telldir mappings. * dir.cc (telldir): Move functionality from telldir64 here. Use long, rather than _off_t. (telldir64): Just call telldir. Only keep for backward compatibility. (seekdir): Move functionality from seekdir64 here. Use long, rather than _off_t. (seekdir64): Just call seekdir. Only keep for backward compatibility. * fhandler.h: Throughout, change prototypes of seekdir and telldir methods to use long, rather than _off64_t. * fhandler_disk_file.cc: Change aforementioned methods accordingly. * fhandler_netdrive.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_virtual.cc: Ditto. * include/sys/dirent.h (struct __DIR): Change __d_position from _off_t to long to reflect API change. (telldir): Change prototype to use long, rather than off_t. (seekdir): Ditto.
Corinna Vinschen
2010-07-05 16:59:56 +0000
c8fe6dc446* ldd.cc: Clean up formatting throughout. (head): Move earlier. (saw_file): Ditto. (print_dlls): Reset head here. Record seen dll names so they will not potentially be printed later. (process_file): Remove clearing of head here.
Christopher Faylor
2010-07-05 16:24:24 +0000
96f1582977* dump_setup.cc (dump_file): Read requested content from setup.rc file created by newer setup.exe.
Corinna Vinschen
2010-07-05 12:28:48 +0000
6259826eb4* path.cc (path_conv::check): Move fs-specific settings to a point where we know that we have filled out the filesystem information. * path.h (path_conv::path_conv): Use consistent initialization for constructors. * include/sys/cygwin.h: Define CW_STRERROR. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 228. * include/external.h: Implement CW_STRERROR.
Christopher Faylor
2010-07-04 17:12:27 +0000
daa7111808include/opcode/ * ppc.h (PPC_OPCODE_32, PPC_OPCODE_BOOKE64, PPC_OPCODE_CLASSIC): Delete. Renumber other PPC_OPCODE defines. gas/ * config/tc-ppc.c (ppc_set_cpu): Remove old opcode flags. (ppc_setup_opcodes): Likewise. Simplify opcode selection. opcodes/ * ppc-dis.c (ppc_opts, powerpc_init_dialect): Remove old opcode flags. * ppc-opc.c (PPC32, POWER32, COM32, CLASSIC): Delete. (PPC64, MFDEC2): Update. (NON32, NO371): Define. (powerpc_opcode): Update to not use old opcode flags, and avoid -m601 duplicates.
Alan Modra
2010-07-03 06:51:53 +0000
dc43a4fd11* ppc.h (PPC_OPCODE_COMMON): Expand comment.
Alan Modra
2010-07-03 03:32:50 +0000
7ba0a42f55* net.cc (cygwin_getsockopt): Make sure SO_PEERCRED is only handled in level SOL_SOCKET. Workaround a return value regression in Vista and later. Add comment to explain.
Corinna Vinschen
2010-07-02 14:36:43 +0000
ae96209cbbsync config/ChangeLog with gcc
Paolo Bonzini
2010-07-02 12:15:53 +0000
163cbc1280* gc++filt.m4: New file.
Rainer Orth
2010-07-02 11:58:19 +0000
e7daa3ed75* exceptions.cc (dump_exception): Use %W instead of %s for printing progname. * fork.cc (frok::parent): Fix typos in debug output. * spawn.cc (spawn_guts): Copy wide Win32 filename into _pinfo::progname, rather than native NT name.
Corinna Vinschen
2010-06-29 10:28:40 +0000
a6076c2cdc* xstormy16/eva_app.ld (.gcc_except_table): Include sections with the .gcc_except_table. prefix. * xstormy16/eva_stub.ld: Likewise. * xstormy16/sim_high.ld: Likewise. * xstormy16/sim_low.ld: Likewise.
Nick Clifton
2010-06-29 09:39:30 +0000
37cd59cbefremove maxq-coff port
Alan Modra
2010-06-29 04:17:27 +0000
2a904ebacb* Makefile.in: Use "xmlto pdf" instead of docbook2pdf. Force the dblatex backend, as the default passivetex does not work. * README: Replace docbook-utils dependency with dblatex. Update required docbook-xml version. * faq-programming.xml: Ditto.
Yaakov Selkowitz
2010-06-27 21:32:19 +0000
8930e4d2c3* setup-net.sgml: Add a paragraph describing now to avoid unintentional upgrades.
Christopher Faylor
2010-06-26 16:08:46 +0000
b5ed89158einclude/elf/ * ppc64.h (R_PPC64_LO_DS_OPT): Define. bfd/ * elf64-ppc.c (toc_skip_enum): Define. (ppc64_elf_edit_toc): Use two low bits of skip array as markers. Optimize largetoc sequences. (adjust_toc_syms): Update for skip array change. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. ld/ * emultempl/ppc64elf.em (prelim_size_sections): New function. (ppc_before_allocation): Use it. Size sections before toc edit too.
Alan Modra
2010-06-25 05:20:56 +0000
711d4704ccAdd "acc" register. Revise register order and names.
Kevin Buettner
2010-06-24 20:38:05 +0000
30bbc55ee2* flock.cc (allow_others_to_sync): Use small stack buffer rather than big temp buffer. Fix typo in comment. (lf_setlock): Revert to using tmp_pathbuf. (lf_getlock): Ditto.
Corinna Vinschen
2010-06-22 14:53:05 +0000
c7b24005e6* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE instead of a constant value. * security.cc (alloc_sd): Ditto.
Corinna Vinschen
2010-06-22 09:54:36 +0000
90e4ed05502010-06-21 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola
2010-06-21 21:21:25 +0000
f074bd3aef* tmpbuf.h: New file. * flock.cc: Include tmpbuf.h for new tmpbuf functionality. (allow_others_to_sync): Use tmpbuf rather than tmp_pathbuf. Explain why. (lf_setlock): For consistency, use tmpbuf rather than tmp_pathbuf. (lf_getlock): Ditto.
Christopher Faylor
2010-06-21 19:55:12 +0000
7b8cf7c89a* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers are in use.
Christopher Faylor
2010-06-21 05:30:42 +0000
e43e1d048f2010-06-18 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola
2010-06-18 16:53:23 +0000
ce3b3869642010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
Jeff Johnston
2010-06-18 16:26:25 +0000
4365c1598b* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat handle only after checking for NFS.
Corinna Vinschen
2010-06-17 10:25:15 +0000
342814df29* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Use handle returned by get_stat_handle. (fhandler_base::fstat_helper): Reinstatiate code to re-open the file when checking for executability if called via fstat. Explain why.
Corinna Vinschen
2010-06-15 15:10:42 +0000
5a0d1edba4* dtable.cc (dtable::dup_worker): Reset path_conv handle in duplicated fhandler. * fhandler.cc (fhandler_base::fstatvfs): Keep handle in created path_conv. * fhandler.h (fhandler_base::get_stat_access): New method. (fhandler_base::get_stat_handle): New method. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Use handle returned by get_stat_handle. Only request inode from system if it isn't already set in the fhandler, and only for filesystems supporting them. (fhandler_base::fstat_fs): Use handle returned by get_stat_handle. Change the way open_fs is called. Explain why. (fhandler_base::fstat_helper): Use handle returned by get_stat_handle. Never use 0 inode number. Simplify executable recognition by re-using get_stat_handle if file could be opened with sufficient rights. (fhandler_disk_file::fstatvfs): Use handle returned by get_stat_handle. (fhandler_disk_file::facl): Use handle returned by get_stat_handle in GETACL and GETACLCNT cases. (fhandler_disk_file::link): Use handle returned by get_stat_handle instead of opening file here again. Add comment. (readdir_get_ino): Keep handle in created path_conv and drop opening file. * ntdll.h (wait_pending): New helper function. * path.cc (symlink_info::check): Drop unused 'opt' parameter from declaration. Add path_conv_handle argument. (path_conv::check): Make sure conv_handle is closed. Keep PC_KEEP_HANDLE flag in pflags_or. Accommodate call to sym.check to new args. (path_conv::~path_conv): Close conv_handle. (symlink_info::check_shortcut): Don't re-open file here, just use incoming handle. Drop goto's and label out. (symlink_info::check_sysfile): Don't re-open file here, just use incoming handle. Keep track of file position to accommodate the fact that file has been opened asynchronously in calling function. (symlink_info::check_nfs_symlink): Don't re-open file here, just use incoming handle. (symlink_info::check): Drop unused 'opt' parameter. Add path_conv_handle argument. Always try to open file with GENERIC_READ rights first to allow reading file content w/o having to re-open the file. Drop back to READ_CONTROL | FILE_READ_ATTRIBUTES otherwise. Call symlink test functions (except for check_reparse_point) only if file could be opened with GENERIC_READ. Keep file handle open if PC_KEEP_HANDLE is set in pflags. * path.h (enum pathconv_arg): Add PC_KEEP_HANDLE flag. (class path_conv_handle): New class. (class path_conv): Add conv_handle member. (path_conv::operator =): Duplicate conv_handle. (path_conv::handle): New method. (path_conv::access): New method. (path_conv::reset_conv_handle): New method. (path_conv::close_conv_handle): New method.
Corinna Vinschen
2010-06-15 12:05:15 +0000
5e3dd23eee* fhandler_disk_file.cc (path_conv::get_ino_by_handle): Convert from static function to path_conv method. Accommodate throughout. (path_conv::ndisk_links): Unused, comment out. * path.h (path_conv::get_ino_by_handle): Declare. (path_conv::ndisk_links): Comment out declaration.
Corinna Vinschen
2010-06-15 08:51:55 +0000
d955b6cfd8* path.cc (path_conv::check): Return with ENOTDIR if component is a device.
Corinna Vinschen
2010-06-14 21:16:41 +0000
b775136014gas/ * config/tc-ppc.c (md_assemble): Emit APUinfo section for PPC_OPCODE_E500. gas/testsuite/ * gas/ppc/e500.s: Add eieio, mbar and lwsync * gas/ppc/e500.d: Likewise. include/opcode/ * ppc.h (PPC_OPCODE_E500): Define. opcodes/ * ppc-dis.c (ppc_opts): Remove PPC_OPCODE_E500MC from e500 and e500x2. Add PPC_OPCODE_E500 to e500 and e500x2 * ppc-opc.c (powerpc_opcodes): Deprecate all opcodes on EFS which touch floating point regs and are enabled by COM, PPC or PPCCOM. Treat sync as msync on e500. Treat eieio as mbar 1 on e500. Treat lwsync as msync on e500.
Alan Modra
2010-06-14 14:48:04 +0000
492efa069b* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be binary compatible with normal layout. (_REENT_INIT): Adjust to match struct layout.
Kazu Hirata
2010-06-09 15:15:35 +0000
03c991fed4* path.cc (symlink_info::check_shortcut): Use ro_u_empty rather than local UNICODE_STRING object. (symlink_info::check_sysfile): Ditto. Return immediately if NtOpenFile failed to avoid closing random handle. Improve debug output in case NtReadFile failed.
Corinna Vinschen
2010-06-09 12:32:14 +0000
b5efabb2842010-06-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-06-08 21:47:57 +0000
58d6976a6e2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-06-08 18:44:14 +0000
b7d3e6d7d2* path.cc (symlink_info::check): Set h to NULL after closing handle in udf check. Remove overagressive bracketing. Don't set h to NULL without closing the handle. Fix using wrong handle in checking file system when using parent directory handle.
Corinna Vinschen
2010-06-08 15:25:09 +0000
68ff495c60* standards.texi: Import current version from gnustandards project. * gnu-oids.texi: New file.
Nick Clifton
2010-06-08 12:15:36 +0000
08622ff5aaetc/ChangeLog
Nick Clifton
2010-06-08 10:30:54 +0000
814e854e2c* include/sys/stdio.h: Remove _GNU_SOURCE guard around getline and getdelim prototypes since they are SUSv4 now.
Corinna Vinschen
2010-06-07 09:16:11 +0000
ced5f59df92010-06-04 Mark Mitchell <mark@codesourcery.com>
Jeff Johnston
2010-06-04 15:30:40 +0000
e4f9551b40Import AC_CHECK_DECL for C++ fixes from git Autoconf.
Ralf Wildenhues
2010-06-03 06:33:10 +0000
fad9568b0a* ntdll.h (STATUS_BAD_NETWORK_PATH): Define. (STATUS_BAD_NETWORK_NAME): Define. * path.cc (symlink_info::check): Convert STATUS_BAD_NETWORK_PATH and STATUS_BAD_NETWORK_NAME into an immediate ENOENT.
Corinna Vinschen
2010-06-02 14:52:34 +0000
eeea1b87682010-06-01 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola
2010-06-01 19:32:27 +0000
659d18d29bmerge from gcc
DJ Delorie
2010-05-26 18:16:13 +0000
88addc6476* fhandler_registry.cc (multi_wcstombs): New function. (fhandler_registry::fstat): Call multi_wcstombs for strings of type REG_MULTI_SZ. (fhandler_registry::fill_filebuf): Ditto.
Corinna Vinschen
2010-05-26 16:58:44 +0000
fca8f35f11* hires.h (hires_base::reset): New function. (hires_us): Specify that hires_base is a public import. (hires_ms): Ditto. * times.cc (gtod): Move earlier in file. (settimeofday): Reset gtod so that base will be subsequently recalculated.
Christopher Faylor
2010-05-26 14:48:17 +0000
1ee8d76ca0* path.cc (symlink_info::check): Don't try to handle remote reparse points as symlinks. Explain why.
Corinna Vinschen
2010-05-26 14:24:47 +0000
16f52c1461* include/inttypes.h: Change PTR definitions to int to align with the stdint.h type definitions of intptr_t/uintptr_t.
Corinna Vinschen
2010-05-26 13:37:48 +0000
403ab0c013* fhandler.h (class fhandler_pty_master): Add master_thread member. * fhandler_tty.cc (fhandler_pty_master::close): Properly detach from master thread. (fhandler_pty_master::setup): Store cygthread pointer of pty master control thread in master_thread. Don't zap thread handle.
Corinna Vinschen
2010-05-26 13:10:55 +0000
60321a0733gas/ * config/tc-mips.c (is_opcode_valid): Remove expansionp. (macro_build): Change invocation of is_opcode_valid. (mips_ip): Likewise.
Catherine Moore
2010-05-26 12:59:56 +0000
a36728eae0* nlsfuncs.cc (__set_lc_time_from_win): Use LOCALE_SMONTHNAME1 instead of LOCALE_SABBREVMONTHNAME1 in Japanese and Korean locales to get abbreviated month names. Explain why.
Corinna Vinschen
2010-05-26 11:36:17 +0000
0b3906a813Merge from gcc:
Dave Korn
2010-05-26 05:16:31 +0000
71de1400112010-05-21 Daniel Jacobowitz <dan@codesourcery.com> Joseph Myers <joseph@codesourcery.com> Andrew Stubbs <ams@codesourcery.com>
Nick Clifton
2010-05-25 14:12:41 +0000
5f7eee9ec92010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
Chris Sutcliffe
2010-05-19 02:59:46 +0000
8f01c77516* libc/string/strsignal.c (strsignal): Avoid duplicate case statement where SIGPWR == SIGLOST.
Christopher Faylor
2010-05-18 14:52:38 +0000
d3258e063c* environ.cc (regopt): Change the first argument to wide char string. (environ_init): Accommodate change to the first argument of regopt. * exception.cc (open_stackdumpfile): Accommodate change to the type of progname in _pinfo. * external.cc (fillout_pinfo): Ditto. * fhandler_process.cc (format_process_winexename): Ditto. (format_process_stat): Ditto. * fork.cc (fork::parent): Ditto. * pinfo.cc (pinfo_basic::pinfo_basic): Call GetModuleFileNameW instead of GetModuleFileName. (pinfo::thisproc): Accommodate change to the type of progname in _pinfo. (pinfo_init): Ditto. * pinfo.h (_pinfo): Change the type of progname to a wide char array. * registry.h (reg_key::get_int): Change the first argument from constant point to pointer to constant. (reg_key::get_string): Ditto. Change the last argument likewise. * registry.cc (reg_key::get_int): Accommodate change to the declaration. (reg_key::get_string): Ditto. * strace.cc (strace::hello): Accommodate change to the type of progname in _pinfo. (strace::vsprntf): Ditto.
Christopher Faylor
2010-05-18 14:30:51 +0000
c8bd391c32Implement generic SHF_EXCLUDE.
H.J. Lu
2010-05-18 03:31:06 +0000
ca52bf17052010-05-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-05-11 20:41:37 +0000
60bdafbbda2010-05-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-05-11 20:40:14 +0000
eb2c2b6e6e2010-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2010-05-11 20:27:20 +0000
27f564e9a3* Makefile.in (DLL_OFILES): Add pseudo-reloc.o. * dcrt0.cc (child_info_fork::handle_fork): Call _pei386_runtime_relocator here. (dll_crt0_1): Ditto for non-fork case. * dll_init.cc (dll::init): Complain more in comment. Clean up slightly. (dll_dllcrt0_1): Call _pei386_runtime_relocator when we know we have a filled-in per_process structure. * globals.cc (__cygwin_user_data): Accommodate new fields for _pei386_runtime_relocator. * pseudo-reloc.cc: New file adapted from old lib/pseudo-reloc.c. Include winsup.h directly. Collapse #ifdef __CYGWIN__ into one block. Perform minor whitespace code reformatting. (__report_error): Use small_printf to output error. (_pei386_runtime_relocator): Conditionalize for cygwin to take per_process pointer parameter. * winsup.h (_pei386_runtime_relocator): Declare. * include/cygwin/version.h (CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED): New macro. (CYGWIN_VERSION_USER_API_VERSION_COMBINED): Use above macro. (CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL): New macro. (CYGWIN_VERSION_API_MINOR): Bump to 227. * include/sys/cygwin.h: Remove obsolete comment. (per_process::unused2): Shorten. (per_process::pseudo_reloc_start): New field. (per_process::pseudo_reloc_end): Ditto. (per_process::image_base): Ditto. * lib/_cygwin_crt0_common.cc: Declare pseudo runtime externs needed for per_process structure. (_cygwin_crt0_common): Fill in pseudo_reloc runtime constants. * lib/pseudo-reloc-dummy.c: New file. Dummy function to satisify ld. * lib/pseudo-reloc.c: Delete.
Christopher Faylor
2010-05-07 21:25:19 +0000
186bcf2a17* fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing process group ownership of tty in case we're being debugged.
Corinna Vinschen
2010-05-07 15:03:27 +0000
93b103586f* libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra, stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary file names to allow for parallel installs. (CLEANFILES): Add new temporary file names. * libc/Makefile.in: Regenerate.
DJ Delorie
2010-05-06 23:25:16 +0000
35c0485d2d* path.cc (path_conv::check): Drop setting sym.pflags before calling mount_info::conv_to_win32_path since the flag value is overwritten by mount_info::conv_to_win32_path anyway. Set flags for DOS paths before calling symlink_info::check so they can be used in that function already.
Corinna Vinschen
2010-05-06 10:04:50 +0000
7edacc4997* libc/locale/lctype.c: Include <string.h> and "setlocale.h". (_C_ctype_locale): Add braces to initializer. (__ctype_load_locale): Fix compiler warnings in non-Cygwin case. * libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX case only if __HAVE_LOCALE_INFO__ is defined.
Corinna Vinschen
2010-05-03 09:25:32 +0000
ffa42cf6a0* libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check. Rename pwc to pmb and convert to array to avoid buffer overflow. Rename c to wc. Check wc for WEOF instead of for EOF. Return first byte of pmb if __wctomb conversion returned exactly one byte, EOF otherwise.
Corinna Vinschen
2010-05-02 11:55:01 +0000