Commit Graph

  • 7fa5cbbfcd * autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo. * cygheap.h (class cygheap_ugid_cache): Move ugid_cache_t type here and rename. (struct init_cygheap): Add cygheap_ugid_cache member "ugid_cache". * pwdgrp.h (class ugid_cache_t): Remove here. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Accommodate move of ugid_cache to cygheap. * sec_helper.cc (get_sids_info): Ditto. * uinfo.cc (ugid_cache): Remove. (pwdgrp::fetch_account_from_windows): Define id_val globally. Move SidTypeAlias handling into SidTypeUser/SidTypeGroup branch since aliases are handled like groups in SAM. Accommodate move of ugid_cache to cygheap. Consolidate code reading SAM comments into a single branch for both, SidTypeUser and SidTypeAlias. For SidTypeAlias, fix thinko and call NetLocalGroupGetInfo rather than NetGroupGetInfo. Simplify code setting Cygwin primary group for SAM accounts. Add code to handle UNIX uid/gid from SAM comment. Corinna Vinschen 2014-02-11 11:51:29 +0000
  • 026a2445d1 * winsup.h (Interlocked*): Use intrinsic versions of Interlocked functions. * cygwin.sc.in: More closely emulate default pe/i386 linker script. Christopher Faylor 2014-02-11 06:27:57 +0000
  • 85827fa685 * uinfo.cc (cygheap_domain_info::init): Drop accidentally leftover if statement. Corinna Vinschen 2014-02-10 20:28:32 +0000
  • b0244c497b * uinfo.cc (cygheap_domain_info::init): Fix handling of account domain on donmain controllers. Explain why. Corinna Vinschen 2014-02-10 20:16:55 +0000
  • ebb09f85e1 * cygheap.cc (cwcsdup): Change parameter to correct PWCSTR. (cwcsdup1): Ditto. * cygheap_malloc.h: Change declarations accordingly. Corinna Vinschen 2014-02-10 20:15:58 +0000
  • 0ac645c1c3 * uinfo.cc (pwdgrp::fetch_account_from_windows): Add code to allow setting the primary group from the SAM comment field. Corinna Vinschen 2014-02-10 18:28:51 +0000
  • 127cfd4f5a * dcrt0.cc (child_info_spawn::handle_spawn): Call fixup_lockf_after_exec with additional argument to specify if the process has been execed or spawned. * flock.cc (fixup_lockf_after_exec): Take bool parameter to handle exec and spawn differently. In case of spawn, just give up POSIX locks in favor of the still running parent. Add comments to explain. Corinna Vinschen 2014-02-10 10:45:51 +0000
  • 2f850d402e . Christopher Faylor 2014-02-10 04:04:26 +0000
  • 423de1c03d * environ.cc (strbrk): Properly deal with environment variable sans quote. Christopher Faylor 2014-02-10 01:59:37 +0000
  • 16be32590d * environ.cc (strbrk): New function. (parse_options): Use strbrk to parse CYGWIN environment variable. Christopher Faylor 2014-02-09 20:30:24 +0000
  • ab7165e43b * libc/include/pwd.h: Include <sys/cdefs.h>. * libc/include/grp.h: Ditto. Corinna Vinschen 2014-02-09 20:02:17 +0000
  • a18b52d0e5 *** empty log message *** Corinna Vinschen 2014-02-09 19:47:42 +0000
  • 1ca20a1cd2 Introduce reading passwd/group entries from SAM/AD. Introduce /etc/nsswitch.conf file to configure it. * Makefile.in (DLL_OFILES): Add ldap.o. * autoload.cc: Import ldap functions from wldap32.dll. (DsEnumerateDomainTrustsW): Import. (NetGroupGetInfo): Import. * cygheap.h (class cygheap_domain_info): New class to keep global domain info. (class cygheap_pwdgrp): New class to keep passwd/group caches and configuration info from /etc/nssswitch.conf. (struct init_cygheap): Add cygheap_domain_info member "dom" and cygheap_pwdgrp member "pg". * cygtls.h (struct _local_storage): Remove unused member "res". Rearrange slightly, Add members pwbuf and grbuf to implement non-caching passwd/group fetching from SAM/AD. Make pw_pos and pw_pos unsigned. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Add RFC 2307 uid/gid mapping. * fhandler_process.cc: Drop including pwdgrp.h. * fhandler_procsysvipc.cc: Ditto. * fhandler_registry.cc (fhandler_registry::fstat): Set key uid/gid to ILLEGAL_UID/ILLEGAL_GID rather than UNKNOWN_UID/UNKNOWN_GID. * grp.cc (group_buf): Drop. (gr): Drop. (pwdgrp::parse_group): Fill pg_grp. (pwdgrp::read_group): Remove. (pwdgrp::init_grp): New method. (pwdgrp::prep_tls_grbuf): New method. (pwdgrp::find_group): New methods. (internal_getgrsid): Convert to call new pwdgrp methods. (internal_getgrnam): Ditto. (internal_getgrgid): Ditto. (getgrgid_r): Drop 2nd parameter from internal_getgrgid call. (getgrgid32): Ditto. (getgrnam_r): Ditto for internal_getgrnam. (getgrnam32): Ditto. (getgrent32): Convert to call new pwdgrp methods. (internal_getgrent): Remove. (internal_getgroups): Simplify, especially drop calls to internal_getgrent. * ldap.cc: New file implementing cyg_ldap class for LDAP access to AD and RFC 2307 server. * ldap.h: New header, declaring cyg_ldap class. * passwd.cc (passwd_buf): Drop. (pr): Drop. (pwdgrp::parse_passwd): Fill pg_pwd. (pwdgrp::read_passwd): Remove. (pwdgrp::init_pwd): New method. (pwdgrp::prep_tls_pwbuf): New method. (find_user): New methods. (internal_getpwsid): Convert to call new pwdgrp methods. (internal_getpwnam): Ditto. (internal_getpwuid): Ditto. (getpwuid32): Drop 2nd parameter from internal_getpwuid call. (getpwuid_r): Ditto. (getpwnam): Ditto for internal_getpwnam. (getpwnam_r): Ditto. (getpwent): Convert to call new pwdgrp methods. * path.cc (class etc): Remove all methods. * path.h (class etc): Drop. * pinfo.cc (pinfo_basic::pinfo_basic): Set gid to ILLEGAL_GID rather than UNKNOWN_GID. (pinfo_init): Ditto. * pwdgrp.h (internal_getpwnam): Drop 2nd parameter from declaration. (internal_getpwuid): Ditto. (internal_getgrgid): Ditto. (internal_getgrnam): Ditto. (internal_getgrent): Drop declaration. (enum fetch_user_arg_type_t): New type. (struct fetch_user_arg_t): New type. (struct pg_pwd): New type. (struct pg_grp): New type. (class pwdgrp): Rework to provide functions for file and db requests and caching. (class ugid_cache_t): New class to provide RFC 2307 uid map caching. (ugid_cache): Declare. * sec_acl.cc: Drop including pwdgrp.h. * sec_auth.cc: Drop including dsgetdc.h and pwdgrp.h. (get_logon_server): Convert third parameter to ULONG flags argument to allow arbitrary flags values in DsGetDcNameW call and change calls to this function throughout. Use cached account domain name rather than calling GetComputerNameW. (get_unix_group_sidlist): Remove. (get_server_groups): Drop call to get_unix_group_sidlist. (verify_token): Rework token group check without calling internal_getgrent. * sec_helper.cc (cygpsid::pstring): New methods, like string() but return pointer to end of string. (cygsid::getfromstr): Add wide character implementation. (get_sids_info): Add RFC 2307 uid/gid mapping for Samba shares. * security.cc: Drop including pwdgrp.h. * security.h (DEFAULT_UID): Remove. (UNKNOWN_UID): Remove. (UNKNOWN_GID): Remove. (uinfo_init): Move here from winsup.h. (ILLEGAL_UID): Ditto. (ILLEGAL_GID): Ditto. (UNIX_POSIX_OFFSET): Define. Add lengthy comment. (UNIX_POSIX_MASK): Ditto. (MAP_UNIX_TO_CYGWIN_ID): Ditto. (ILLEGAL_UID16): Move here from winsup.h. (ILLEGAL_GID16): Ditto. (uid16touid32): Ditto. (gid16togid32): Ditto. (sid_id_auth): New convenience macro for SID component access. (sid_sub_auth_count): Ditto. (sid_sub_auth): Ditto. (sid_sub_auth_rid): Ditto. (cygpsid::pstring): Declare. (cygsid::getfromstr): Declare wide character variant. (cygsid::operator=): Ditto. (cygsid::operator*=): Ditto. (get_logon_server): Change declaration according to source code. * setlsapwd.cc (setlsapwd): Drop 2nd parameter from internal_getpwnam call. * shared.cc (memory_init): Call cygheap->pg.init in first process. * syscalls.cc: Drop including pwdgrp.h. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Ditto. * uinfo.cc (internal_getlogin): Drop gratuitious internal_getpwuid call. Fix debug output. Overwrite user gid in border case of a missing passwd file while a group file exists. (pwdgrp::add_line): Allocate memory on cygheap. (pwdgrp::load): Remove. (ugid_cache): Define. (cygheap_pwdgrp::init): New method. (cygheap_pwdgrp::nss_init_line): New method. (cygheap_pwdgrp::_nss_init): New method. (cygheap_domain_info::init): New method. (logon_sid): Define. (get_logon_sid): New function. (pwdgrp::add_account_post_fetch): New method. (pwdgrp::add_account_from_file): New methods. (pwdgrp::add_account_from_windows): New methods. (pwdgrp::check_file): New method. (pwdgrp::fetch_account_from_line): New method. (pwdgrp::fetch_account_from_file): New method. (pwdgrp::fetch_account_from_windows): New method. * winsup.h: Move aforementioned macros and declarations to security.h. Corinna Vinschen 2014-02-09 19:44:56 +0000
  • 01fc6f8d21 * sigproc.cc (sig_send): Don't bother with an error message if we are exiting. Christopher Faylor 2014-02-09 18:31:37 +0000
  • d0e5dd3abe 2014-02-07 Jon TURNEY <jon.turney@dronecode.org.uk> Jon TURNEY 2014-02-09 12:23:13 +0000
  • d1ae61fe01 Fix ChangeLog Corinna Vinschen 2014-02-08 22:25:11 +0000
  • 234074f683 * miscfuncs.h (class NT_readline): New class to implement line-wise reading from file using native NT functions. * miscfuncs.cc (NT_readline::init): New method. * mount.cc (mount_info::from_fstab): Utilize NT_readline to read fstab files. Corinna Vinschen 2014-02-08 20:57:27 +0000
  • abbe1f5320 * fhandler_disk_file.cc (fhandler_disk_file::fchown): Fix typo in comment. * mount.cc (mount_info::from_fstab): Use tmp_pathbuf rather than stack for big local buffer. * net.cc (cygwin_gethostname): Call GetComputerNameExA rather than GetComputerNameA if gethostname failed. * shared.cc (user_info::initialize): Fix formatting. * include/sys/file.h: Define flock and accompanying macros if not already defined in sys/_default_fcntl.h. Corinna Vinschen 2014-02-06 20:38:35 +0000
  • 46913a8290 PR target/59788 * ltmain.sh (opt_duplicate_compiler_generated_deps): Enable on *solaris2*. Rainer Orth 2014-02-05 13:17:47 +0000
  • d581a24a36 2014-02-04 Matthias Braun <matze@braunis.de> Jeff Johnston 2014-02-04 20:49:53 +0000
  • f3852ab7db * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 29. Corinna Vinschen 2014-02-04 16:32:04 +0000
  • 75d1027ccd * aarch64/Makefile.in (RDIMON_SCRIPTS): Rule to build in-tree copies of scripts. (all): Build the in-tree copies of the scripts. (clean): Also delete the in-tree copies of the scripts. Richard Earnshaw 2014-02-03 10:30:34 +0000
  • 5d9070ba97 *** empty log message *** Corinna Vinschen 2014-01-31 19:27:26 +0000
  • 63b1a850b3 * fhandler.h (cltype): Add cl_buf_beg, cl_buf_end. * fhandler_console.cc (dev_console::console_attrs::set_cl_x): Honor buffer locations. (dev_console::console_attrs::set_cl_y): Ditto. (fhandler_console::write): On reset, use absolute positioning to go to beginning of buffer. Clear entire buffer. Christopher Faylor 2014-01-31 04:23:22 +0000
  • ed94d4a4aa * msp430/Makefile.in (crt0-minrt.o, crtn-minrt.o): New. Build from crt0.S with -DMINRT. (CRT_OBJS): Expand. (crt_%.o): New rule pattern. Build multiple objects from crt0.S. * msp430/crt0.S: Further break out functionality. Support -DMINRT that omits all init/fini logic. * msp430/crtn.S: Likewise. * msp430/msp430-sim.ld: Wildcard all .crt_* sections, sorted. * msp430/msp430.ld: Likewise. * msp430/msp430xl-sim.ld: Likewise. DJ Delorie 2014-01-30 02:46:34 +0000
  • 25833f57c1 * faq-setup.xml: Minor snapshot instruction rewording. Update discussion about setup*.exe. * faq-using.xml: Update information about setup*.exe. * faq-what.xml: Ditto. Christopher Faylor 2014-01-29 19:01:53 +0000
  • 645ec39159 * aarch64/cpu-init/rdimon-aem-el3.S (flat_map): Use bic-immediate form to clear WXN bit. Corinna Vinschen 2014-01-28 11:16:19 +0000
  • e5819caa0b * new-features.xml (ov-new1.7.28): Add new section. Corinna Vinschen 2014-01-27 21:26:36 +0000
  • 8dbe9a4095 *** empty log message *** Corinna Vinschen 2014-01-27 21:25:39 +0000
  • 249059b70e * gendef (_setjmp (x86)): Save FPU control word location in sequential location. Adjust sigstack save accordingly. (_longjmp (x86)): Ditto for restore. Christopher Faylor 2014-01-27 20:53:02 +0000
  • ed89fbc3ff * gendef (sigdelayed (x86_64)): Save and restore FPU control word. (_sigdelayed (x86)): Ditto. Save and restore XMM registers. Add comment. (_setjmp (x86)): Save FPU control word, following FreeBSD here. (_longjmp (x86)): Restore FPU control word. Corinna Vinschen 2014-01-27 20:08:36 +0000
  • a3973a22ca update copyright Christopher Faylor 2014-01-27 20:04:35 +0000
  • 8df5544789 Fix typo Christopher Faylor 2014-01-27 00:53:43 +0000
  • 0a37e44963 * winf.cc (linebuf::fromargv): Treat '=' as a special character. Christopher Faylor 2014-01-24 20:38:49 +0000
  • 0388ee3d90 2014-01-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com> Jeff Johnston 2014-01-24 19:01:15 +0000
  • 76e4f83fc6 * security.h (open_local_policy): Remove declaration. (lsa_open_policy): Declare. (lsa_close_policy): Declare. * sec_auth.cc (lsa_open_policy): Rename from open_local_policy. Take server name as parameter. Return NULL in case of error, rather than INVALID_HANDLE_VALUE. (lsa_close_policy): Rename from close_local_policy. Make externally available. Get handle by value. (create_token): Convert call to open_local_policy/close_local_policy according to aforementioned changes. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Ditto. Corinna Vinschen 2014-01-23 17:02:30 +0000
  • 6485b9c274 * Makefile.common: Don't drop -gFOO switches when filtering CFLAGS and CXXFLAGS. Corinna Vinschen 2014-01-22 18:00:24 +0000
  • 42ce449890 * path.cc (etc::test_file_change): In case of NtQueryFullAttributesFile returning an error, only return true if file actually exists. Corinna Vinschen 2014-01-22 15:45:29 +0000
  • e9286a873f merge from gcc DJ Delorie 2014-01-21 16:09:25 +0000
  • 01f05a28c8 * include/cygwin/in6.h (struct ipv6_rt_hdr): Define. * include/cygwin/socket.h: Fix formatting. (IP_UNICAST_IF): Define. (IPV6_JOIN_GROUP): Remove Windowism. (IPV6_LEAVE_GROUP): Ditto. (IPV6_UNICAST_IF): Define. (IPV6_TCLASS): Ditto. (IPV6_RECVTCLASS): Ditto. Corinna Vinschen 2014-01-20 17:25:54 +0000
  • ae691ac535 * libc/include/setjmp.h (longjmp): Fix copy/paste error. Corinna Vinschen 2014-01-20 17:23:41 +0000
  • 5e66ab7852 * libc/include/setjmp.h (longjmp): Mark "noreturn" when building with GCC. Corinna Vinschen 2014-01-19 09:38:34 +0000
  • 3228065cea * include/netinet/ip6.h: New file, copied from FreeBSD vebatim. Corinna Vinschen 2014-01-18 11:37:55 +0000
  • 58f6b1f1b2 * dtable.h (dtable::lock): Revert static. (dtable::unlock): Ditto. Christopher Faylor 2014-01-17 17:22:57 +0000
  • 93012a1d0d * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h. (setpassent): Declare. Corinna Vinschen 2014-01-17 14:54:31 +0000
  • 39f090d060 * passwd.cc (setpassent): Align to BSD definition. Corinna Vinschen 2014-01-17 14:53:04 +0000
  • b1782642d2 *** empty log message *** Corinna Vinschen 2014-01-17 11:11:25 +0000
  • 3507271d6b * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safe opening of the pipe with O_CLOEXEC flag. Simplify FD_CLOEXEC handling. Corinna Vinschen 2014-01-17 11:07:37 +0000
  • 92a8ea56e5 * include/sys/file.h (LOCK_SH): Drop definition in favor of new definitions in newlib. (LOCK_EX): Ditto. (LOCK_NB): Ditto. (LOCK_UN): Ditto. (flock): Ditto. (F_OK): Drop. Already correctly defined in unistd.h. (X_OK): Ditto. (W_OK): Ditto. (R_OK): Ditto. Corinna Vinschen 2014-01-17 11:01:46 +0000
  • ad1a102dd6 * libc/include/sys/_default_fcntl.h (LOCK_SH): Define. (LOCK_EX): Likewise. (LOCK_NB): Likewise. (LOCK_UN): Likewise. (flock): Declare. Corinna Vinschen 2014-01-17 10:57:54 +0000
  • 5780e35aa3 * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1. Corinna Vinschen 2014-01-17 10:56:25 +0000
  • 7a7e4d4d95 Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing semantics from POSIX to BSD. * libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on _STDIO_BSD_SEMANTICS. Call __sflush_r rather than _fflush_r. Add comment. * libc/stdio/fflush.c (__sflushw_r): New function, only available if _STDIO_BSD_SEMANTICS is defined. * libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than _fwalk. Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS. Add comments. Add FIXME. * libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is defined. Corinna Vinschen 2014-01-17 10:55:32 +0000
  • ae5b40a65b * dtable.h (dtable::lock): Make static. Christopher Faylor 2014-01-16 18:40:13 +0000
  • 9a0786ea68 2014-01-10 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2014-01-10 23:04:01 +0000
  • 716c3014a6 . Christopher Faylor 2014-01-08 16:55:23 +0000
  • 8aca67421d * exceptions.h (cygwin_exception::open_stackdumpfile): Move old function into class. (cygwin_exception::h): New member. (cygwin_exception::cygwin_exception): Initialize h to NULL. * exceptions.cc (cygwin_exception::open_stackdumpfile): Move into cygwin_exception class. Use 'h' class member. (cygwin_exception::dumpstack): Close stack dump file handle if opened. Christopher Faylor 2014-01-08 16:51:20 +0000
  • 847980a43b 2014-01-07 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2014-01-07 22:41:38 +0000
  • 6d49b42a95 * faq-programming.xml: Update packages needed to build Cygwin. Corinna Vinschen 2014-01-07 14:54:58 +0000
  • 439f4e7a87 2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de> Jeff Johnston 2014-01-06 20:59:38 +0000
  • 0707f1df6c 2014-01-06 Mike Frysinger <vapier@gentoo.org> Jeff Johnston 2014-01-06 19:50:33 +0000
  • 60ea042c37 2013-01-06 Mike Frysinger <vapier@gentoo.org> Jeff Johnston 2014-01-06 19:30:50 +0000
  • 20ac3f6c3b Recreate Christopher Faylor 2014-01-05 00:09:39 +0000
  • 36383c6f6e * fhandler.h: Update copyright. (cltype): New enum. (dev_console::console_attrs): Define struct name. (dev_console::console_attrs::set_cl_x): New function. (dev_console::console_attrs::set_cl_y): New function. (fhandler_console::clear_screen): Redefine input params. * fhandler_console.cc: Update copyright. Throughout, reflect change in arguments to fhandler_console::clear_screeen. (fhandler_console::mouse_aware): Simplify logic slightly. (fhandler_console::scroll_screen): Remove hopefully obsolete win95 code. (dev_console::console_attrs::set_cl_x): New function. (dev_console::console_attrs::set_cl_y): New function. (fhandler_console::clear_screen): Redefine input params. Calculate position based on enum value. (region_split): Change arguments. Simplify. (ReadConsoleOutputWrapper): Remove coord argument since we now always use 0, 0. Send extra arguments to region_split. Christopher Faylor 2014-01-04 23:58:32 +0000
  • 1affdef86f . Christopher Faylor 2013-12-31 22:27:12 +0000
  • 7b52fd6713 * fhandler_console.cc (region_split): New function. (delta): Ditto. (ReadConsoleOutputWrapper): Ditto. (fhandler_console::char_command): Use ReadConsoleOutputWrapper to avoid OOM condition from ReadConsoleOutputW. Add more debugging. Christopher Faylor 2013-12-31 22:19:07 +0000
  • 5ac847c629 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2013-12-23 20:45:10 +0000
  • b153931f18 2013-12-22 JF Bastien <jfb@chromium.org> Jeff Johnston 2013-12-23 19:21:07 +0000
  • 2d15421aa8 merge from gcc DJ Delorie 2013-12-23 18:30:21 +0000
  • 53b14dc2b1 * strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitialized variable. Christopher Faylor 2013-12-22 07:07:48 +0000
  • 57cfbb7bbf * configure.host (newlib_cflags): Use -Os, -ffunction-sections and -fdata-sections for RL78. Nick Clifton 2013-12-20 10:27:49 +0000
  • 281924766d * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point in !_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case. Corinna Vinschen 2013-12-19 18:50:00 +0000
  • 0fcafd1535 Fix ChangeLog entry Corinna Vinschen 2013-12-19 09:50:19 +0000
  • 5536f9210f *** empty log message *** Corinna Vinschen 2013-12-18 20:50:04 +0000
  • 576b7804d6 * vfscanf.c (BUF): Change definition to take multibyte decimal point into account. (__SVFSCANF_R): Handle radix char language-dependent per POSIX. (__SVFWSCANF_R): Ditto. Corinna Vinschen 2013-12-18 19:23:33 +0000
  • 5730605d55 . Christopher Faylor 2013-12-18 17:49:51 +0000
  • ccb3158c4f * dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution. * pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to stabilize. Christopher Faylor 2013-12-18 17:44:20 +0000
  • 27c6e45ea3 * autoload.cc (timeBeginPeriod): Delete. * dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod. Christopher Faylor 2013-12-18 04:39:36 +0000
  • e9da9dfb94 * autoload.cc (timeBeginPeriod): Autoload. * dcrt0.cc (dll_crt0_1): Use timeBeginPeriod to set default resolution to 1 ms. * pinfo.cc (pinfo::thisproc): Set ppid for redirected _pinfo blocks too. (pinfo::init): Avoid using VirtualQuery. Just rely on the assumption that procinfo will be populated. * pinfo.h (_pinfo::ppid): Move into redirected block. Christopher Faylor 2013-12-18 04:28:46 +0000
  • 13621d2ef8 * external.cc (fillout_pinfo): Remove nonsensical loop. * fork.cc (frok::parent): When initializing pinfo for child new PID_NEW flag + actual defined constant rather than raw number. Don't set start_time here. * pinfo.cc (pinfo::thisproc): Use PID_NEW when initializing pinfo. Avoid checking h for NULL multiple times. Don't set start_time here. (pinfo_init): Aways set ppid last. Tweak strace output. (pinfo::init): Handle new PID_NEW flag. Wait for shared memory to contain useful information. Set start_time if PID_NEW. (_onreturn:h): Define as HANDLE rather than HANDLE *. (_onreturn::~onreturn): Accommodate h definition change. (_onreturn::no_close_handle): Rename from no_close_p_handle. Take a pinfo arg and set hProcess to h before zeroing. (winpids::add): Don't open a handle to our own process. Change logic associated with when a handle gets closed. Accommodate no_close_handle changes. (winpids::enum_processes): Simplify process enumeration loop. (winpids::set): Eliminate ill-considered malloc locking. * sigproc.cc (proc_subproc): Always set ppid last. Christopher Faylor 2013-12-18 03:58:11 +0000
  • 1147c2111d * sigproc.cc (sig_send): Set PIPE_NOWAIT for pipes which are not us. Christopher Faylor 2013-12-18 03:01:39 +0000
  • 891b1e7e22 * fhandler.h (fhandler_pty_master::~fhandler_pty_master): Delete. * fhandler_tty.cc (fhandler_pty_master::~fhandler_pty_master): Ditto. Christopher Faylor 2013-12-17 19:05:26 +0000
  • f51db32d8c * syscalls.cc (NT_TRANSACTIONAL_ERROR): Define. (stop_transaction): Take "trans" HANDLE by reference and set it to NULL after closing it. (unlink_nt): If NtOpenFile fails due to a transactional error, stop transaction and retry NtOpenFile. Simplify check for having to call stop_transaction. (rename): If NtOpenFile fails due to a transactional error, stop transaction and retry NtOpenFile in both affected cases. Simplify check for having to call stop_transaction and add comment from unlink_nt. Corinna Vinschen 2013-12-11 12:12:12 +0000
  • c28222be54 * mount.cc (fs_info::update): Fix formatting. Corinna Vinschen 2013-12-11 10:24:52 +0000
  • f2988299eb * fhandler.h (fhandler_dev_clipboard): Add private member cygnativeformat. Declare private method set_clipboard. * fhandler_clipboard.cc (cygnativeformat): Convert static variable to fhandler_dev_clipboard member. (fhandler_dev_clipboard::set_clipboard): Convert from static function to fhandler_dev_clipboard method. Corinna Vinschen 2013-12-10 21:05:23 +0000
  • 10e4d79a19 2013-12-10 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2013-12-10 18:57:30 +0000
  • a6a307d8c2 * libc/sys/rtems/include/limits.h: Update page size to match libc/sys/rtems/machine/param.h. Corinna Vinschen 2013-12-10 09:20:37 +0000
  • a3afe81551 signal hang Christopher Faylor 2013-12-09 20:47:13 +0000
  • ae8456bdf2 * globals.cc (hntdll): Define/declare. * exceptions.cc (inside_kernel): Don't call GetModuleFileName if we know we're in ntdll. * sigproc.cc (wait_sig): Initialize hntdll. Christopher Faylor 2013-12-09 20:32:24 +0000
  • db0d50a67d * include/cygwin/stdlib.h (initstate, random, setstate, srandom): Harden _XOPEN_SOURCE guard against applications defining _XOPEN_SOURCE with empty value. Corinna Vinschen 2013-12-09 10:12:42 +0000
  • 4726a0e769 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 28. Corinna Vinschen 2013-12-08 13:42:16 +0000
  • 9a0027836f *** empty log message *** Corinna Vinschen 2013-12-08 13:38:27 +0000
  • 17bb9160d5 * new-features.xml (ov-new1.7.26): Add new section. Corinna Vinschen 2013-12-07 10:12:55 +0000
  • 7630387c51 * path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long path prefix from symlink target path. Add comment to explain why. Corinna Vinschen 2013-12-07 10:12:25 +0000
  • 870f29b5c3 * syscalls.cc (dup): Use cygheap_fdnew properly. Christopher Faylor 2013-12-06 15:38:21 +0000
  • 09244c002e * cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will have been set by a previous function. * dtable.h (dtable::extend): Accept second size_t argument. * dtable.cc (dtable::extend): Accept second "min" argument which allows checking for OPEN_MAX_MAX boundary conditions. (dtable_init): Accommodate second argument to dtable::extend. (dtable::find_unused_handle): Ditto. * syscalls.cc (setdtablesize): Ditto. (dup): Return any error passed by cygheap_fdnew() directly. (getdtablesize): Just return dtable size directly. Christopher Faylor 2013-12-05 19:43:34 +0000
  • 2f8a6f1947 2013-12-04 Steve Ellcey <sellcey@mips.com> Steve Ellcey 2013-12-04 21:18:02 +0000
  • 9915ebec8a * dtable.cc (dtable::find_unused_handle): When extending, always make sure that there is a NOFILE_INCR chunk following the free fd. Christopher Faylor 2013-12-04 17:55:17 +0000
  • 6b5a341878 merge from gcc DJ Delorie 2013-12-04 16:09:03 +0000
  • d924d6b583 * configure.ac: Back out stupid change. * configure: Regenerate. Christopher Faylor 2013-12-03 20:51:05 +0000
  • 4bf6a52173 * select.cc (select): Add workaround for, as yet undebugged, pathological case. Christopher Faylor 2013-12-03 20:28:55 +0000