46471257e92009-11-17 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston
2009-11-17 22:35:46 +0000
dd3a778c282009-11-17 Paul Brook <paul@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com>
Paul Brook
2009-11-17 16:31:56 +0000
b14f53a8ecReintegrate socket duplication via WSADuplicateSocket/WSASocket. * autoload.cc (WSADuplicateSocketW): Define. (WSASocketW): Define. * dtable.cc (dtable::release): Call dec_need_fixup_before if necessary. (dtable::fixup_before_fork): New function. (dtable::fixup_before_exec): New function. * dtable.h (class dtable): Add member cnt_need_fixup_before. Add declarations for above new functions. (dtable::dec_need_fixup_before): New inline method. (dtable::inc_need_fixup_before): New inline method. (dtable::need_fixup_before): New inline method. * fhandler.h (fhandler_base::fixup_before_fork_exec): New virtual method. (fhandler_base::need_fixup_before): New virtual method. (class fhandler_socket): Add member prot_info_ptr. (fhandler_socket::init_fixup_before): Declare. (fhandler_socket::need_fixup_before): New inline method. (fhandler_socket::fixup_before_fork_exec): Declare. (fhandler_socket::fixup_after_exec): Declare. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize prot_info_ptr to NULL. (fhandler_socket::~fhandler_socket): Free prot_info_ptr conditionally. (fhandler_socket::init_fixup_before): New method. (fhandler_socket::fixup_before_fork_exec): Ditto. (fhandler_socket::fixup_after_fork): Use WSASocketW to duplicate socket if necessary. (fhandler_socket::fixup_after_exec): New method. (fhandler_socket::dup): Use fixup_before_fork_exec/fixup_after_fork to duplicate socket if necessary. * fork.cc (frok::parent): Start child suspended if some fhandler needs fixup before fork. If so, call dtable::fixup_before_fork after CreateProcess and resume child. * net.cc (fdsock): Try to find out if socket needs fixup before and initialize socket accordingly. Add HUGE comment to explain what happens and why. * spawn.cc (spawn_guts): Start child suspended if some fhandler needs fixup before exec. If so, call dtable::fixup_before_exec after CreateProcess.
Corinna Vinschen
2009-11-17 10:43:01 +0000
88242190ec* Makefile.def: Restore host and target settings for gmp. * Makefile.in: Rebuild.
Alexandre Oliva
2009-11-16 22:57:46 +0000
d01a44977fFix setenv and unsetenv corner cases.
Eric Blake
2009-11-16 20:05:49 +0000
5074489a49* configure.ac: Add libelf to host_libs. Enable in-tree configury of ppl and cloog. Fix in-tree configury of libelf, skip tests. Fix portability of test of C++ as bootstrap language. Add ppl/src/ppl-config.o to the bootstrap compare exclusion list. * configure: Rebuild. * Makefile.def: Drop host and target settings from gmp, mpfr, ppl, and cloog. Fix in-tree ppl configuration. Introduce libelf in-tree building. * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New. (POSTSTAGE1_HOST_EXPORTS): Use it. (STAGE[+id+]_CXXFLAGS): New. (BASE_FLAGS_TO_PASS): Pass it down. (configure-stage[+id+]-[+prefix+][+module+]): Use it. Add extra_exports. (all-stage[+id+]-[+prefix+][+module+]): Likewise. (configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add extra_exports. * Makefile.in: Rebuild. * configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem paths for *-w64-mingw* and x86_64-*mingw*. * configure: Regenerated. * configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets. * configure: Regenerated. * configure.ac (CLooG test): Use = with test. * configure: Regenerate. * configure.ac: Do not set LIBS for ppl/cloog checks. Disable cloog if the ppl version check failed. Move flags saving before setting in libelf check. * configure: Regenerate. * configure.ac: Adjust the ppl and cloog configure to work as documented. Disable cloog if ppl was disabled. Omit the version checks if they were disabled. * configure: Re-generate.
Alexandre Oliva
2009-11-16 18:42:37 +0000
969afaf753* Makefile.in (cygserver.exe): Link with -static to avoid linking against cygstdc++-6.dll due to references to __cxa_pure_virtual.
Corinna Vinschen
2009-11-16 08:50:07 +0000
88dc5cc3652009-14-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2009-11-14 19:58:41 +0000
5e80d7d5462009-14-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2009-11-14 19:47:23 +0000
8b121daba42009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2009-11-14 00:54:58 +0000
3d330d81152009-13-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2009-11-14 00:50:50 +0000
35d6a288b22009-13-09 Robert Moerland <rjmoerland@users.sourceforge.net>
Chris Sutcliffe
2009-11-14 00:45:35 +0000
2142a1930c2009-13-09 Jacky Lai <crazyjacky@users.sourceforge.net>
Chris Sutcliffe
2009-11-13 23:58:58 +0000
9cd6116e562009-13-09 Jan Nijtmans <nijtmans@users.sourceforge.net>
Chris Sutcliffe
2009-11-13 23:29:26 +0000
344af4f7082009-11-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> * include/winnt.h (PROCESS_SUSPEND_RESUME): Define.
Chris Sutcliffe
2009-11-13 21:36:34 +0000
ab36239578* net.cc (fdsock): Fill _rmem and _wmem with valid values returned from getsockopt if setsockopt with desired values failed.
Corinna Vinschen
2009-11-13 12:35:53 +0000
4ade241445* new-features.sgml (ov-new1.7-os): Mention Windows 7 and 2008 R2. (ov-new1.7-device): Add API get_avphys_pages, get_nprocs, get_nprocs_conf, and get_phys_pages.
Corinna Vinschen
2009-11-12 14:41:12 +0000
339682e6de* sysconf.cc (get_nprocs): New function. (get_nprocs_conf): Ditto. (get_avphys_pages): Ditto. (get_phys_pages): Ditto. * cygwin.din: Export them. * include/sys/sysinfo.h: New header, decalre above new functions. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml: Mention them as GNU extensions.
Corinna Vinschen
2009-11-12 14:40:48 +0000
c08f09ab78* fhandler.h (class fhandler_mailslot): Declare new private method get_object_attr. * fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Implement. (fhandler_mailslot::open): Replace calls to path_conv::get_object_attr with calls to fhandler_mailslot::get_object_attr.
Corinna Vinschen
2009-11-11 18:16:57 +0000
afb7f5666d* getfacl.c (print_version): Fix copyright. (main): Don't reuse local variables confusingly. Don't print any file information if acl() fails. Improve error message. Always print a trailing empty line. Set return code to 2 if accessing some file fails.
Corinna Vinschen
2009-11-11 10:12:35 +0000
3aec0f00b1* fhandler_disk_file.cc (is_volume_mountpoint): Align check with symlink_info::check_reparse_point(). * path.cc (symlink_info::check_reparse_point): Rearrange slightly. Add code path for unrecognized repare point types. Add comment.
Corinna Vinschen
2009-11-10 08:54:24 +0000
6e22c002ff* largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS.
Joel Brobecker
2009-11-09 23:19:11 +0000
16a72f7e4b* path.cc (symlink_info::check_reparse_point): Always check SubstituteName for volume string to recognize volume mount points. Reuse subst when calling sys_wcstombs. * syscalls.cc (rename): Set errno to EBUSY when trying to rename volume mount points. Explain why.
Corinna Vinschen
2009-11-09 19:46:36 +0000
ed66791aba* fhandler_console.cc (fhandler_console::read): Restrict generating META key sequences to singlebyte input chars.
Corinna Vinschen
2009-11-09 15:38:36 +0000
aa9681ec35* fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop all "other" permissions from st_mode, if the reading the file's security descriptor failed. Explain why.
Corinna Vinschen
2009-11-08 10:22:28 +0000
08e5e79b33* largefile.m4: New file.
Joel Brobecker
2009-11-07 02:01:29 +0000
b36d8c46e5* globals.cc (ro_u_scr): New R/O unicode string. (ro_u_sys): Ditto. * syscalls.cc (nt_path_has_suffix): Replace with ... (nt_path_has_executable_suffix): New function checking for explicit executable suffixes. (rename): Call nt_path_has_executable_suffix instead of nt_path_has_suffix. Check oldpath for nt_path_has_executable_suffix as well to set old_explicit_suffix.
Corinna Vinschen
2009-11-06 20:51:03 +0000
38090b588cChecking this in for: Jonas Maebe <jonas.maebe@elis.ugent.be>
Joel Brobecker
2009-11-06 14:38:19 +0000
1636ce3b32* transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Check cygwin_internal for returning 0 rather than for != 0. (transport_layer_pipes::accept): Add debug output. (transport_layer_pipes::connect): Ditto.
Corinna Vinschen
2009-11-06 13:11:52 +0000
74ad9cc012* shared.cc (inst_root_inited): New static bool variable. (init_installation_root): Set inst_root_inited to true. (memory_init): Print installation root debug output only if inst_root_inited is true.
Corinna Vinschen
2009-11-06 13:06:36 +0000
73db6db783* libc/include/ctype.h (__ctype_lookup): Fix precedence.
Eric Blake
2009-11-06 03:27:19 +0000
ac4ad8bffc* syscalls.cc (nt_path_has_suffix): New function. (rename): Don't append .exe suffix if binary target name has any suffix at all.
Corinna Vinschen
2009-11-05 14:44:12 +0000
e807aacea9* spawn.cc (dll_suffixes): Disable. Explain why. (perhaps_suffix): Use stat_suffixes instead of dll_suffixes.
Corinna Vinschen
2009-11-05 09:59:18 +0000
13e8e14ab5* path.cc (read_mounts): Skip unnecessary test if path has been fetched from loaded cygwin1.dll.
Corinna Vinschen
2009-11-04 17:09:32 +0000
b5f48aa961* cygcheck.cc (cygwin_dll_path): New global variable. (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path. * strace.cc: Full ditto. * path.cc (read_mounts): First use the path stored in cygwin_dll_path, if available. Then fall back to fetching own path. Add comment. Drop printing warnings since they look funny in strace output.
Corinna Vinschen
2009-11-04 17:00:45 +0000
44a019897f* path.cc (read_mounts): First get installation path from own path. Check if cygwin1.dll exists in same directory. Only if not, try to get installation path from setup registry key. Add ample warnings.
Corinna Vinschen
2009-11-04 15:47:29 +0000
df95867087* dlfcn.cc (get_full_path_of_dll): Drop enforcing a .dll suffix. (dlopen): If last path component has no dot, append one to override automatic .dll suffix in LoadLibrary.
Corinna Vinschen
2009-11-02 14:39:08 +0000
09b07be5202009-11-02 Paul Brook <paul@codesourcery.com>
Paul Brook
2009-11-02 13:44:04 +0000
599b80fc86Final sync of pseudo-reloc.c with mingw64 and cygwin
Charles Wilson
2009-11-02 12:16:21 +0000
a657970571* miscfuncs.h (transform_chars): Declare. Define inline variation here. * mount.cc (mount_info::from_fstab): Remove extern declaration of transform_chars. * path.cc (tfx_chars): Move to strfuncs.cc. (transform_chars): Ditto. * strfunc.cc (tfx_chars): Moved here from path.cc. (transform_chars): Ditto. (sys_cp_wcstombs): Make UNICODE private use area conversion roundtrip save for all characters. (sys_cp_mbstowcs): Ditto, by removing special case for UTF-8 sequences representing U+f0XX UNICODE chars. Fix typo in comment.
Corinna Vinschen
2009-11-02 11:42:04 +0000
34861325a5* cygcheck.cc: Include cygprops.h. (del_orphaned_reg): New option variable. (unique_object_name_opt): Ditto. (handle_reg_installation): New function. (print_reg_installations): Ditto. (del_orphaned_reg_installations): Ditto. (memmem): Ditto. (handle_unique_object_name): Ditto. (dump_sysinfo): Call print_reg_installations from here. (usage): Add usage for new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (longopts): Add new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (main): Handle new options. * utils.sgml (cygcheck): Change documentaion accordingly.
Corinna Vinschen
2009-10-31 13:26:37 +0000
b079a89e25* transport_pipes.h (PIPE_NAME_PREFIX): New define. (PIPE_NAME_SUFFIX): Ditto. (class transport_layer_pipes): Convert _pipe_name from char pointer to wchar_t array. * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Accommodate the fact that _pipe_name is a wchar_t array, rather than a char pointer. (transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name with variable pipe name based in installation key fetched from Cygwin DLL. (transport_layer_pipes::accept): Call CreateNamedPipeW explicitely. (transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW explicitely.
Corinna Vinschen
2009-10-31 13:24:43 +0000
526b0fbca3* cygprops.h: New file. * dtable.cc (handle_to_fn): Add check for correct installation_key string in object name for pipes and ttys. * external.cc (cygwin_internal): Add CW_GET_INSTKEY to allow fetching the installation_key from cygserver. * fhandler_fifo.cc (fhandler_fifo::fifo_name): Add installation_key to fifo name. * globals.cc: Include cygprops.h. (_RDATA): Move slightly and add comment. (cygwin_props): Define. * mount.cc (mount_info::init): Accommodate the fact that installation_root is now a global variable in DLL common shared memory, rather than a member of cygwin_shared. * pipe.cc (fhandler_pipe::create_selectable): Add installation_key to pipe name. * shared.cc (installation_root): Define here for storage in DLL common shared memory. (installation_key): Ditto. (installation_key_buf): Ditto. (init_installation_root): Convert from shared_info method to ordinary function. Add initializing installation_key. Invalidate installation_key depending of value of disable_key property. Add comment to explain. (get_shared_parent_dir): Add installation_key to directory name. (get_session_parent_dir): Ditto. (shared_info::initialize): Move call to init_installation_root from here... (memory_init): ...to here. Add debug output to print installation root and installation key. Add comment to explain why. * shared_info.h (SHARED_INFO_CB): Recalculate. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Remove definition of installation_root and declaration of init_installation_root. (init_installation_root): Declare. (installation_root): Declare. (installation_key): Declare. * uinfo.cc (pwdgrp::load): Accommodate the fact that installation_root is now a global variable in DLL common shared memory. * include/cygwin/version.h: Bump API minor number. (CYGWIN_INFO_INSTALLATIONS_NAME): Add. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_INSTKEY.
Corinna Vinschen
2009-10-31 13:24:06 +0000
7c16c02dbb* sec_helper.cc (security_descriptor::realloc): Call free first if current security desriptor has been allocated by GetSecurityInfo.
Corinna Vinschen
2009-10-31 09:31:47 +0000
b42441d32b* sec_helper.cc (security_descriptor::free): If sd_size is 0, call LocalFree instead of ::free.
Corinna Vinschen
2009-10-30 19:58:53 +0000
460af5f9c0* smallprint.cc (hex_str): New const string. (__rn): Drop str and use hex_str instead. (__small_vsprintf): If 'l' modifier has been found, print subsequent multibyte or wide char string using the s, S, or W options in extended hex value layout.
Corinna Vinschen
2009-10-30 09:02:30 +0000
dc3d6d9093* libc/stdio/fflush.c (_fflush_r): Store old errno to check for low-level seek error condition. Restore old errno in case of success. Don't use new position after seek as error condition, rather check for return value of -1 and errno. Handle EINVAL just like ESPIPE. Only set fp->_offset if errno is 0.
Corinna Vinschen
2009-10-30 08:26:41 +0000
c16cd85665Honor DESTDIR for winsup/mingw and winsup/w32api
Charles Wilson
2009-10-29 21:53:47 +0000
757ee9af8b* pathnames.sgml: Add limitation of case sensitivity with CreateProcess.
Corinna Vinschen
2009-10-28 10:11:22 +0000
641ba32982* new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" default and the default locale "C.UTF-8". * setup2.sgml (setup-locale-ov): Ditto.
Corinna Vinschen
2009-10-28 10:09:54 +0000
a861373585* MAINTAINERS (ARM): Add myself as an ARM maintainer.
Nick Clifton
2009-10-27 10:31:06 +0000
73ddc92062Correct pseudo-reloc size bug wrt error messages
Charles Wilson
2009-10-26 14:50:09 +0000
654d34dda5Sync pseudo-reloc.c with mingw64
Charles Wilson
2009-10-26 13:47:13 +0000
bfead37df4* faq-setup.xml: Fix clean_setup.pl reference.
Christopher Faylor
2009-10-26 11:57:33 +0000
b8263d5874* faq-setup.xml: Change clean_setup.pl reference.
Christopher Faylor
2009-10-26 11:25:16 +0000
fd6942ab42newlib: * configure.host: Add support for RX architecture. * libc/include/machine/ieeefp.h: Likewise. * libc/include/machine/setjmp.h: Likewise. * libc/include/machine/configure.in: Likewise. * libc/include/machine/configure: Regenerate. * libc/machine/rx: New directory. * libc/machine/rx/*: New files to support RX architecture.
Nick Clifton
2009-10-26 10:05:23 +0000
f7e0cae24b* arm/linux-syscalls0.S (SYSCALL0, SYSCALL3, SYSCALL6, SYSCALL4): Delete Thumb definitions - the ARM versions work correctly in Thumb mode.
Nick Clifton
2009-10-26 10:00:41 +0000
15c59df67fSync pseudo-reloc.c with mingw64
Charles Wilson
2009-10-25 23:37:48 +0000
9b2b7c4a6bFix isalpha(0x100000001LL) and friends on 64-bit machines.
Eric Blake
2009-10-24 13:24:29 +0000
e83fef9d35* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
Corinna Vinschen
2009-10-24 08:40:15 +0000
1647bf67c1* fhandler.cc (fhandler_base::open): Always create file with default security descriptor and fix descriptor afterwards. Change comment to explain why. * security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag. * wincap.cc: Remove has_dacl_protect throughout. * wincap.h: Ditto.
Corinna Vinschen
2009-10-24 08:26:01 +0000
cbea3f7d93* fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status code STATUS_NOT_SUPPORTED. Add matching comment.
Corinna Vinschen
2009-10-20 10:12:05 +0000
8d648dc555* syscalls.cc (internal_setlocale): Only convert $PATH if there is a $PATH.
Corinna Vinschen
2009-10-19 19:47:15 +0000
9d52f5c21cmerge from gcc
DJ Delorie
2009-10-19 18:14:24 +0000
b3f5fb3718* spawn.cc (av::fixup): Treat non-readable, but executable files as Cygwin executables.
Corinna Vinschen
2009-10-19 08:33:00 +0000
a6f3658d44* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if not in a setuid condition.
Corinna Vinschen
2009-10-18 09:07:13 +0000
445d5e8159* z80.h: Store alignment requirement in section header, to allow ld to preserve alignment. Some code was copied from ti.h.
Arnold Metselaar
2009-10-17 18:23:12 +0000
1612945c43merge from gcc
DJ Delorie
2009-10-15 17:03:34 +0000
175e39bb7f* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert using my_wcstombs. (get_user_folder): Remove. (do_sysfolders): Use get_special_folder instead of get_user_folder. Fetch system paths as WCHAR and convert using my_wcstombs.
Corinna Vinschen
2009-10-15 11:40:02 +0000
0191627a26* include/sys/cygwin.h: Add new cygwin_getinfo_type CW_SET_EXTERNAL_TOKEN. Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED. * cygheap.h (cyguser): New flags ext_token_is_restricted, curr_token_is_restricted and setuid_to_restricted. * external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN. * sec_auth.cc (set_imp_token): New function. (cygwin_set_impersonation_token): Call set_imp_token (). * security.h (set_imp_token): New prototype. * spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token was enabled by setuid(). Do not create new window station in this case. * syscalls.cc (seteuid32): Add handling of restricted external tokens. Set HANDLE_FLAG_INHERIT for primary token. (setuid32): Set setuid_to_restricted flag. * uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was enabled by setuid (). Initialize user.*_restricted flags.
Corinna Vinschen
2009-10-13 10:23:31 +0000