summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/locale/locale.c (lc_ctype_charset): Disable defaulting toCorinna Vinschen2010-01-174-2/+14
| | | | | | | | | "UTF-8" on Cygwin. (lc_message_charset): Ditto. (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on Cygwin. * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment. * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
* * setup-net.sgml: Remove obsolete assertion.Christopher Faylor2010-01-162-2/+5
|
* * libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.Corinna Vinschen2010-01-162-68/+149
|
* * cygpath.cc (get_mixed_name): Drop function. Replace with call toCorinna Vinschen2010-01-162-35/+15
| | | | | | convert_slashes throughout. (do_sysfolders): Free allocated buffer. (do_pathconv): Fix freeing last buffer.
* * fhandler_socket.cc (fhandler_socket::accept4): Reset async flagCorinna Vinschen2010-01-162-1/+6
| | | | on accepted socket.
* * faq-using.xml (faq.using.bloda): Clarify wxvault.dll.Corinna Vinschen2010-01-152-1/+6
|
* * fhandler_socket.cc (fhandler_socket::accept4): Set nonblockingCorinna Vinschen2010-01-153-3/+8
| | | | | flag exactly according to flags, as on Linux. * net.cc (cygwin_accept): Maintain BSD semantics here.
* * faq-setup.xml: Add missing setup options. Sort options.Christopher Faylor2010-01-152-12/+24
|
* * cygwin.din (accept4): Export.Corinna Vinschen2010-01-159-12/+102
| | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_socket::accept4): Rename from accept. Take additional flag parameter. * fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags. * net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags in type. Check for invalid flag values. (socketpair): Ditto. (cygwin_accept): Accommodate renaming of fhandler_socket::accept function to accept4. (accept4): New function. * posix.sgml: Mention accept4 as GNU extensions. * include/cygwin/socket.h (SOCK_NONBLOCK): Define. (SOCK_CLOEXEC): Define. (_SOCK_FLAG_MASK): Define when building Cygwin. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/socket.h (accept4): Declare.
* * posix.sgml: Mention dup3 and pipe2 as GNU extensions.Corinna Vinschen2010-01-152-0/+6
|
* * dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment beforeCorinna Vinschen2010-01-143-3/+12
| | | | | | calling the application's main. * syscalls.cc (internal_setlocale): Don't reset locale to "C here. Change comment accordingly.
* * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.Corinna Vinschen2010-01-143-0/+16
| | | | | | (F_DUPFD_CLOEXEC): Define for Cygwin. * libc/include/sys/unistd.h (dup3): Define for Cygwin. (pipe2): Ditto.
* * cygwin.din (dup3): Export.Corinna Vinschen2010-01-1419-63/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pipe2): Export. * dtable.cc (dtable::dup_worker): Take additional flags parameter. Handle O_CLOEXEC flag. (dtable::dup3): Rename from dup2. Take additional flags parameter. Check for valid flags. Drop check for newfd == oldfd. * dtable.h (dtable::dup_worker): Add flags parameter. (dtable::dup3): Rename from dup2. * fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case. * fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter. * fhandler.cc (fhandler_base::open): Use security attribute with inheritance according to setting of O_CLOEXEC flag. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_fifo.cc (sec_user_cloexec): New inline function to create security attribute with inheritance according to setting of O_CLOEXEC flag. (fhandler_fifo::open): Call sec_user_cloexec to fetch security attribute. (fhandler_fifo::wait): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take additional flags parameter. Use security attribute with inheritance according to setting of O_CLOEXEC flag. (fhandler_mailslot::open): Call get_object_attr with flags parameter. * fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec on real handles to accommodate O_CLOEXEC flag. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * fhandler_tape.cc: Create mutex with inheritance according to setting of O_CLOEXEC flag. * pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC. (fhandler_pipe::init): Simplify setting close_on_exec flag. (fhandler_pipe::open): Remove setting close_on_exec flag. (fhandler_pipe::create): Use security attribute with inheritance according to setting of O_CLOEXEC flag. (pipe2): New exported function. * posix_ipc.cc: Throughout, open backing files with O_CLOEXEC flag to follow POSIX semantics. * security.h (sec_none_cloexec): New define. * syscalls.cc (dup): Add missing extern "C" qualifier. Accommodate renaming of dtable::dup2 to dtable::dup3. (dup2): Ditto. Check newfd == oldfd here. (dup3): New function. Check newfd == oldfd here. (open): Set close_on_exec flag according to O_CLOEXEC flag before calling fhandler->open. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* Remove argument name.H.J. Lu2010-01-142-6/+14
| | | | | | | | | | 2010-01-14 H.J. Lu <hongjiu.lu@intel.com> * ia64.h (ia64_find_opcode): Remove argument name. (ia64_find_next_opcode): Likewise. (ia64_dis_opcode): Likewise. (ia64_free_opcode): Likewise. (ia64_find_dependency): Likewise.
* Drop accidentally applied ChangeLog entry.Corinna Vinschen2010-01-141-10/+0
|
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid inCorinna Vinschen2010-01-142-2/+22
| | | | the current charset through.
* * include/fcntl.h (O_TTY_INIT): Define as 0.Corinna Vinschen2010-01-132-1/+9
|
* Add new DW_AT_use_GNAT_descriptive_type CU attribute.Joel Brobecker2010-01-132-0/+6
| | | | * dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.
* * fhandler_tty.cc (fhandler_tty_master::init): Don't erase all defaultCorinna Vinschen2010-01-132-5/+6
| | | | termios settings of slave console.
* * syscalls.cc (rename): Don't exit prematurely with EROFS when tryingCorinna Vinschen2010-01-132-2/+8
| | | | | to rename an AF_LOCAL socket or when trying to replace an AF_LOCAL socket.
* * cygwinenv.sgml (cygwinenv-implemented-options): Try to makeCorinna Vinschen2010-01-122-4/+11
| | | | compatibility new symlinks vs. old Cygwin clearer.
* * globals.cc (ro_u_nwfs): New R/O unicode string.Corinna Vinschen2010-01-127-28/+71
| | | | | | | | | | | | | * mount.cc (fs_info::update): Check for NWFS filesystem. Set has_buggy_basic_info, if so. Add comment to explain why. (fillout_mntent): Add "nwfs" string to fs_names array. * mount.h (enum fs_info_type): Add nwfs. (class fs_info): Add has_buggy_basic_info status flag. Add accessors for has_buggy_basic_info and is_nwfs. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate filesystems with broken FileBasicInformation handling. * path.cc (symlink_info::check): Ditto. * path.h (path_conv::has_buggy_basic_info): Add method.
* * dtable.cc (build_fh_name_worker): Remove. Move all functionalityCorinna Vinschen2010-01-1210-65/+52
| | | | | | | | | | | | | | | | | | back into build_fh_name. (build_fh_name): Drop unused HANDLE parameter. Drop call to pc.fillin. Remove disabled build_fh_name with UNICODE_STRING name parameter. * dtable.h (build_fh_name): Drop HANDLE parameter from declaration. Remove declaration for build_fh_name with UNICODE_STRING name parameter. * path.cc (path_conv::fillin): Remove. (symlink_info::check): Fix comment. * path.h (path_conv::fillin): Remove declaration. * dir.cc: Accommodate change in build_fh_name parameters throughout. * sec_acl.cc: Ditto. * syscalls.cc: Ditto. * ntea.cc (getxattr_worker): Fix debug output. (setxattr_worker): Ditto. * times.cc (utimens_worker): Ditto.
* 2010-01-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2010-01-112-11/+15
| | | | * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
* 2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2010-01-112-0/+9
| | | | | | | * libc/include/math.h (log2, log2f): Disable macro versions for C++, as they are incompatible with OpenMP/C++ headers. 2
* merge from gccDJ Delorie2010-01-112-0/+7
|
* * pathnames.sgml (mount-table): Add info that posix=0 is default forCorinna Vinschen2010-01-112-2/+8
| | | | the cygdrive prefix.
* * fhandler_proc.cc (format_proc_stat): Use new in_buf.Corinna Vinschen2010-01-112-25/+106
| | | | | | (format_proc_cpuinfo): Replace szBuffer with a union in_buf. Use type correct throughout. Add a couple of missing or newer cpu flags. Allow certain AMD flags for intel as well.
* * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.Corinna Vinschen2010-01-112-16/+39
|
* * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion ofCorinna Vinschen2010-01-103-8/+26
| | | | | non-ASCII chars on Cygwin. * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
* * fhandler.h (fhandler_base::fstat_helper): Declare timestamps asCorinna Vinschen2010-01-103-31/+39
| | | | | | | | | PLARGE_INTEGER. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate fstat_helper change of timestamp arguments. (fhandler_base::fstat_by_name): Ditto. (fhandler_base::fstat_helper): Define with timestamps as PLARGE_INTEGER. Accommodate in call to to_timestruc_t.
* Sync Libtool from GCC.Ralf Wildenhues2010-01-096-1083/+1221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /: * libtool.m4: Sync from git Libtool. * ltmain.sh: Likewise. * ltoptions.m4: Likewise. * ltversion.m4: Likewise. * lt~obsolete.m4: Likewise. sim/iq2000/: * configure: Regenerate. sim/d10v/: * configure: Regenerate. sim/m32r/: * configure: Regenerate. sim/frv/: * configure: Regenerate. sim/: * avr/configure: Regenerate. * cris/configure: Regenerate. * microblaze/configure: Regenerate. sim/h8300/: * configure: Regenerate. sim/mn10300/: * configure: Regenerate. sim/erc32/: * configure: Regenerate. sim/arm/: * configure: Regenerate. sim/m68hc11/: * configure: Regenerate. sim/lm32/: * configure: Regenerate. sim/sh64/: * configure: Regenerate. sim/v850/: * configure: Regenerate. sim/cr16/: * configure: Regenerate. sim/moxie/: * configure: Regenerate. sim/m32c/: * configure: Regenerate. sim/mips/: * configure: Regenerate. sim/mcore/: * configure: Regenerate. sim/sh/: * configure: Regenerate. gprof/: * Makefile.in: Regenerate. * configure: Regenerate. opcodes/: * Makefile.in: Regenerate. * configure: Regenerate. gas/: * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. ld/: * configure: Regenerate. gdb/testsuite/: * gdb.cell/configure: Regenerate. binutils/: * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. bfd/: * Makefile.in: Regenerate. * configure: Regenerate. bfd/doc/: * Makefile.in: Regenerate.
* PR bootstrap/42424Kaveh Ghazi2010-01-083-14/+63
| | | | | | | | | * configure.ac: Include libtool m4 files. (_LT_CHECK_OBJDIR): Call it. (extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags, gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir. * configure: Regenerate.
* * sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users accountCorinna Vinschen2010-01-084-4/+18
| | | | | | to all created tokens. * sec_helper.cc (well_known_users_sid): Define as BUILTIN\Users. * security.h (well_known_users_sid): Declare.
* Sync from GCC: Makefile.tpl (BASE_TARGET_EXPORTS) fixRalf Wildenhues2010-01-073-4/+17
| | | | | | | | /: PR bootstrap/41818 * Makefile.tpl (BASE_TARGET_EXPORTS): Only add TARGET_LIB_PATH to $(RPATH_ENVVAR) if bootstrapping. Fix typo in comment. * Makefile.in: Regenerate.
* * cygpath.cc: Throughout, free obsolete path buffers.Corinna Vinschen2010-01-072-12/+52
|
* * overview.sgml: Fix Red Hat brand name.Corinna Vinschen2010-01-072-1/+5
|
* * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.Corinna Vinschen2010-01-072-26/+28
| | | | | | | Revert usage of argz functions when reading input from file and simplify option usage. Allow only one option argument and use the rest as filename argument to allow spaces in filenames. Restrict processing special folder type options to one line.
* * basic-modes.h (MAKEDI): New macro.Doug Evans2010-01-062-0/+7
|
* merge from gccDJ Delorie2010-01-052-2/+7
|
* * overview.sgml: Fix Red Hat URL.Christopher Faylor2010-01-042-2/+6
|
* * dcrt0.cc: Bump copyright.Christopher Faylor2010-01-013-3484/+3488
| | | | Do the changelog shuffle.
* * dcrt0.cc (dll_crt0_1): Move internal locale setting prior to potentialChristopher Faylor2010-01-012-2/+9
| | | | globify to prevent creation of unglobbed filenames in the wrong character set.
* Update copyright notices to add year 2010.Joel Brobecker2010-01-0114-14/+14
|
* * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.Joel Brobecker2009-12-292-0/+8
|
* * fhandler.h (fhandler_socket::wait_for_events): Drop parameter defaultCorinna Vinschen2009-12-283-4/+13
| | | | | | | | value. * fhandler_socket.cc (fhandler_socket::connect): Add false as second parameter to wait_for_events call. (fhandler_socket::accept): Ditto. (fhandler_socket::send_internal): Fix typo in call to wait_for_events.
* Make pty.h match recent glibc.Eric Blake2009-12-263-5/+14
| | | | | | * include/pty.h (openpty, forkpty): Mark last two arguments const, to match glibc 2.8. * libc/bsdlib.cc (openpty, forkpty): Likewise.
* * fhandler_console.cc (handler_console::read): Use the tty's VERASE characterChristopher Faylor2009-12-252-5/+17
| | | | as the backspace keycode.
* * path.cc (symlink_info::check): Set fileattr toCorinna Vinschen2009-12-242-1/+11
| | | | FILE_ATTRIBUTE_DIRECTORY in a certain error condition. Explain why.
* * pathnames.sgml (mount-table): Add missing slash in pathname.Corinna Vinschen2009-12-232-1/+5
|