summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * faq-programming.xml: Convert url to refer to new flat faq.html file.Corinna Vinschen2013-06-055-7/+14
| | | | | | * faq-setup.xml: Ditto. * faq-using.xml: Ditto. * highlights.xml: Ditto.
* * new-features.xml (ov-new1.7.19): Revert mandatory locking support toCorinna Vinschen2013-06-052-2/+7
| | | | "preliminary".
* *** empty log message ***Corinna Vinschen2013-06-051-2/+2
|
* * Makefile.in: Add rule to rebuild Makefile if Makefile.in changes.Corinna Vinschen2013-06-043-4/+18
| | | | | | | Include Makefile.dep last. (Makefile.dep): Run xidepend within source dir. Temporarily drop faq.xml from dependencies. * xidepend: Fix creating base filename to accommodate VPATH.
* * new-features.xml (ov-new1.7.19): Align mandatory locking text toCorinna Vinschen2013-06-042-3/+8
| | | | today's changes.
* * fhandler.cc (fhandler_base::lock): Move to flock.cc.Corinna Vinschen2013-06-046-22/+51
| | | | | | | | | | | | | | (fhandler_base::fixup_after_exec): Reset mandatory_locking. * fhandler.h (class fhandler_base): Add mandatory_locking status flag. Add mandatory_locking accessor methods. Accommodate change throughout. (fhandler_base::mand_lock): Declare. (class fhandler_disk_file): Drop in favor of new status flag. * (fhandler_disk_file::fcntl): Call need_fork_fixup if mandatory_locking flag gets set. * flock.cc (fhandler_base::lock): Define here. (flock): Handle mandatory_locking. (lockf): Ditto. (fhandler_base::mand_lock): Define.
* *** empty log message ***Corinna Vinschen2013-06-031-0/+3
|
* * sigproc.cc (exit_thread): Allow to exit the thread while runningCorinna Vinschen2013-06-032-1/+15
| | | | global dtors. Explain why.
* Fix typoCorinna Vinschen2013-06-021-1/+1
|
* * new-features.xml (ov-new1.7.19): Add mandatory locking.Corinna Vinschen2013-06-022-0/+9
|
* * autoload.cc (CancelSynchronousIo): Define.Corinna Vinschen2013-06-029-16/+289
| | | | | | | | | | | | | | | | | | | | | | | | * fcntl.cc (fcntl64): Drop handling of locking commands. * fhandler.h (class fhandler_disk_file): Add mandatory_locking. (fhandler_disk_file::fcntl): Declare. (fhandler_disk_file::mand_lock): Declare. * fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file): Initialize mandatory_locking. (fhandler_disk_file::fcntl): New method. Handle F_LCK_MANDATORY and locking commands. (fhandler_disk_file::dup): Duplicate mandatory_locking. Fix a bug when duplicating prw_handle failed. (fhandler_disk_file::fixup_after_fork): Reset mandatory_locking. * flock.cc (fhandler_disk_file::lock): Add comment. (struct lock_parms): New struct to pass parameters to blocking_lock_thr thread function. (blocking_lock_thr): New thread function. (fhandler_disk_file::mand_lock): New methof implementing mandatory locking with Windows semantics. * ntdll.h (NtLockFile): Declare. (NtUnlockFile): Declare. * include/fcntl.h: Fix a comment. (F_LCK_MANDATORY): Define. Add lengthy comment to explain.
* * exceptions.cc (exception::handle): Resurrect accidentally lostCorinna Vinschen2013-06-022-1/+7
| | | | patch from 2009-07-22: Set si_addr according to POSIX for SIGSEGV.
* * include/sys/socket.h: Move SHUT_xx definitoins from here...Corinna Vinschen2013-05-313-9/+14
| | | | * include/cygwin/socket.h: ...to here.
* *** empty log message ***Corinna Vinschen2013-05-311-0/+3
|
* * include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.hCorinna Vinschen2013-05-312-2/+7
| | | | to avoid circular dependency resulting in bogus compile time warnings.
* * fhandler_procsys.cc (fhandler_procsys::read): Just callCorinna Vinschen2013-05-283-15/+10
| | | | | fhandler_base::raw_read from here. Drop comment. (fhandler_procsys::write): Drop comment.
* *** empty log message ***Corinna Vinschen2013-05-271-0/+4
|
* * dll_init.cc (dll_list::topsort): Fix early-return condition toCorinna Vinschen2013-05-273-5/+13
| | | | | | | accommodate process with all runtime loaded DLLs already dlclosed at fork time. * gendef (_sigfe_maybe): Fix code handling early return if we don't have a tls, broken on 2013-05-21.
* *** empty log message ***Corinna Vinschen2013-05-251-1/+5
|
* * Makefile.in (DEFS): Unused, remove.Corinna Vinschen2013-05-242-3/+10
| | | | | (COMPILE.cc): Move -mno-use-libstdc-wrappers flag from here... ($(TEST_DLL_NAME)): ...to here since it's a link time flag.
* * pinfo.cc (pinfo::status_exit): Enhance comment.Corinna Vinschen2013-05-242-3/+7
|
* * environ.cc (win_env::add_cache): Set the Windows environment variableCorinna Vinschen2013-05-244-6/+26
| | | | | | using wide chars to make sure native chars don't get scrambled. * environ.h (build_env): Fix formatting in declaration. * pinfo.cc (pinfo::status_exit): Handle STATUS_NO_MEMORY. Explain why.
* * fork.cc (frok::parent): Always set CREATE_UNICODE_ENVIRONMENT flag.Corinna Vinschen2013-05-242-0/+10
| | | | Explain why.
* * fork.cc (frok::parent): Call CreateProcessW with command line setCorinna Vinschen2013-05-233-2/+18
| | | | to the parent command line. Change comment to explain why.
* * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Fix datatype ofCorinna Vinschen2013-05-233-18/+27
| | | | | | | | | stacksize to SIZE_T. Cast to SIZE_T in pointer arithmetic. Slightly enhance output in case of a fatal error. * fork.cc (frok::parent): Always set ch.stackaddr to DeallocationStack value of current thread to help stack reservation in child_info_fork::alloc_stack_hard_way along. Simplify subsequent code storing stack values in ch. Print guardsize in hex, too.
* .Warren Young2013-05-231-3/+0
|
* Created xidepend mechanismWarren Young2013-05-234-1/+49
|
* * cygwinenv.xml (cygwinenv-implemented-options): Explain newCorinna Vinschen2013-05-235-45/+112
| | | | | | | | | | winsymliks:nativestrict option. Strip out description of symlink types and refer to new pathnames-symlinks section. * highlights.xml (ov-hi-files): Rip out most of symlink description and refer to new pathnames-symlinks section instead. * new-features.xml (ov-new1.7.19): Add CYGWIN=winsymlinks:nativestrict. * pathnames.xml (pathnames-symlinks): New section describing symbolic link handling.
* * environ.cc (set_winsymlinks): Handle "winsymlinks:nativestrict"Corinna Vinschen2013-05-235-10/+55
| | | | | | | | | | | | | | option. On pre-Vista warn the user if the "winsymlinks:native*" option is set. * globals.cc (enum winsym_t): Add WSYM_nativestrict. * path.cc (symlink_native): Don't create native symlink if target does not exist. Explain why. Improve comments. (symlink_worker): Change AFS symlink handling to WSYM_nativestrict. Handle WSYM_nativestrict throughout. Change condition for bail out to wsym_type == WSYM_nativestrict. Add comment. Fix formatting. * shared_info.h (CURR_USER_MAGIC): Change to reflect change in class user_info. (class user_info): Add member warned_nonativesyms.
* * spinlock.h (ULONG): Replace LONG operator with ULONG to accommodateCorinna Vinschen2013-05-223-2/+9
| | | | | | the fact that CURR_SHARED_MAGIC and USER_SHARED_MAGIC are unsigned values. * shared.cc (shared_info::initialize): Drop explicit cast here.
* * new-features.sgml (ov-new1.7.19): Add arc4random,Corinna Vinschen2013-05-212-1/+8
| | | | | arc4random_addrandom, arc4random_buf, arc4random_stir and arc4random_uniform.
* Add missing ChangeLog entry for former checkin.Corinna Vinschen2013-05-211-0/+12
|
* * Makefile.in (DLL_OFILES): Add arc4random.o.Corinna Vinschen2013-05-218-19/+388
| | | | | | | | | | | * common.din: Export arc4random, arc4random_addrandom, arc4random_buf, arc4random_stir and arc4random_uniform. * mktemp.cc (arc4random): Remove static replacement function. * posix.sgml (std-bsd): Add arc4random functions. * include/cygwin/stdlib.h: Declare arc4random functions. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * libc/arc4random.cc: New file implementing arc4random functions taken from FreeBSD.
* * globals.cc (__isthreaded): New global variable. Explain what it'sCorinna Vinschen2013-05-213-0/+16
| | | | | used for. * miscfuncs.cc (thread_wrapper): Set __isthreaded to 1 here.
* * fhandler.h (class fhandler_dev_random): Change type of pseudo toCorinna Vinschen2013-05-212-1/+6
| | | | uint32_t to make sure it's 32 bit on all supported platforms.
* x86_64 only:Corinna Vinschen2013-05-212-31/+28
| | | | | | | * gendef (_sigfe_maybe): Drop pushing %r12, use %r10 instead since we don't call yield anymore. (_sigfe): Ditto. (_sigbe): Ditto.
* * new-features.sgml (ov-new1.7.19): Add __b64_ntop and __b64_pton.Corinna Vinschen2013-05-212-0/+8
|
* * libc/base64.c: New file.Corinna Vinschen2013-05-216-4/+333
| | | | | | | * Makefile.in (DLL_OFILES): Add base64.o. * common.din: Export __b64_ntop and __b64_pton. * posix.sgml (std-bsd): Add __b64_ntop and __b64_pton. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * syscalls.cc (open): Only return ENOTDIR if file exists.Corinna Vinschen2013-05-212-1/+5
|
* Reinstantiate accidentally removed patch from 2009-05-16:Corinna Vinschen2013-05-212-2/+10
| | | | | | | * Makefile.in (cygpath.exe): Link against cygwin.a before linking against ntdll.dll to avoid linking symbols defined in both DLLs from ntdll. (ps.exe): Ditto.
* * sigproc.cc (sig_hold): Delete.Christopher Faylor2013-05-162-51/+39
| | | | | | | (sigheld): Delete. (sig_send): Eliminate special-case __SIGHOLD handling. (wait_sig): Just flag when signals are on hold and add them to the queue rather than stalling the wait_sig loop. Clear the flag when __SIGNOHOLD is specified.
* * Makefile.in (devices_CFLAGS): Drop -Os.Corinna Vinschen2013-05-142-1/+5
|
* * Makefile.in (localtime_CFLAGS): Define as -fwrapv since localtimeCorinna Vinschen2013-05-143-43/+26
| | | | | code requires int overflows to be fully defined. * localtime.cc: Align a bit more to upstream code.
* * grp.cc (get_groups): Convert to void function.Corinna Vinschen2013-05-143-32/+31
| | | | | (initgroups32): Accommodate the aforementioned change. (getgrouplist): Ditto.
* * grp.cc (get_groups): Never return error. Always create a group list,Corinna Vinschen2013-05-142-10/+10
| | | | even if it's empty.
* Added Wishlist file, based on my FURTHER WORK proposal to the -patchesWarren Young2013-05-132-0/+116
| | | | list on April 29.
* Removed setup.xml and cygwin-ug.xml: they were not inputs to any of theWarren Young2013-05-133-64/+4
| | | | | | | | documentation outputs. Apparently they were the predecessors of setup-net.xml and cygwin-ug-net.xml. I don't know if for a time there were parallel versions of the manuals and one fork died, or if the cutover was clean and the old versions were just never removed. Either way, they're dead junk now.
* * include/cygwin/version.h: Bump api minor number to reflect previous change.Christopher Faylor2013-05-132-1/+7
|
* * i686.din: Remove _strtold.Christopher Faylor2013-05-134-2/+7
| | | | | * x86_64.din: Move strtold definition... * common.din: ...to here.
* - Added <?xml> and <!DOCTYPE> tags to the top of utils.xml and pretty-Warren Young2013-05-103-3454/+1171
| | | | | | | | printed it. - Removed obsolete utils.sgml - Added a ChangeLog entry for this replacement, which partially took place days ago. This checkin formalizes the switch from SGML to DocBook XML for this file.