summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* change wordingChristopher Faylor2013-05-081-1/+1
|
* * fhandler_tty.cc (fhandler_pty_common::__acquire_output_mutex): Never wait anChristopher Faylor2013-05-082-1/+10
| | | | | | INFINITE amount of time. Instead default to 1/10 second. (fhandler_pty_slave::open): Just default to INFINITE wait rather than (now) waiting longer than previously.
* fix typoChristopher Faylor2013-05-061-1/+1
|
* Reverted XInclude in cygwin-api.in.xml from an XInclude to a DOCTOOLWarren Young2013-05-062-2/+8
| | | | | | | | include. You can't mix the two fragment inclusion mechanisms within a single document because of the way it interacts with autoconf "build in separate tree" mechanism. Either work separately, but they fail when you try to use them together due to the way doctool chooses output directories for its generated files.
* * Makefile (FAQ_SOURCES): Use wildcard function to find sources in srcdir.Christopher Faylor2013-05-032-1/+6
|
* * spawn.cc (ILLEGAL_SIG_FUNC_PTR): New define.Christopher Faylor2013-05-032-11/+35
| | | | | | | | | | | | (system_call_handle): Rename from system_call_cleanup. (is_system_call): New convenience method. (system_call_handle::system_call_handle): Use ILLEGAL_SIG_FUNC_PTR rather than cast. Call sig_send here rather than in caller. Initialize oldint. (system_call_handle::arm): New function pulled from constructor. (~system_call_handle::system_call_handle): Use is_system_call(). (child_info_spawn::worker): Use system_call_handle to set up for system call early. Use arm call prior to waiting for child to properly set up signal handling. Move comment closer to code it is commenting on.
* Generating faq/faq.body automatically from faq/faq.html whenever latterWarren Young2013-05-023-2/+55
| | | | is updated, using new bodysnatcher.pl script.
* Initial; ignoring generated files.Warren Young2013-05-011-0/+13
|
* Modernized user guide, API reference, and FAQ generation. OverallWarren Young2013-05-0149-1296/+3515
| | | | | | effect is to move away from DocBook SGML and DJ Delorie's doctool and toward pure DocBook XSL. (There remains just one use of doctool, and we have plans for replacing it, too.) See ChangeLog for details.
* * resource.cc (setrlimit): Use consistent commenting style. Return EINVAL whenChristopher Faylor2013-05-012-5/+15
| | | | rlim_cur > rlim_max.
* Throughout, (mainly in fhandler*) fix remaining gcc 4.7 mismatchYaakov Selkowitz2013-05-0133-74/+85
| | | | | | | | | warnings between regparm definitions and declarations. * smallprint.cc (__small_vswprintf): Conditionalize declaration and setting of l_opt for only x86_64. * spawn.cc (child_info_spawn::worker): Remove unused 'pid' variable. * thread.cc (verifyable_object_isvalid): Temporarily define as non-inline with gcc 4.7+, regardless of target.