summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * gendef: Fix sigfe.s typo.Christopher Faylor2013-05-012-1/+5
|
* * spawn.cc (system_call_cleanup): Rename from pthread_cleanup. ExtendChristopher Faylor2013-04-302-26/+42
| | | | | | | | | | | functionality. (system_call_cleanup::system_call_cleanup): Set up signals like system() requires. Unblock previously-blocked signal handling. (system_call_cleanup::~system_call_cleanup): Restore signal handling after system(). (child_info_spawn::worker): Put signals on hold and use system_call_cleanup class to set and restore signals rather than doing it prior to to running the program. Remove the ill-conceived pthread_cleanup stuff.
* * exceptions.cc (cygwin_exception::dumpstack): Guard against wild pointerChristopher Faylor2013-04-302-22/+40
| | | | | | | | dereference. (CYG_EXC_CONTINUE_EXECUTION): Define based on standard Windows definition. (CYG_EXC_CONTINUE_SEARCH): Ditto. (exception::handle): Move andreas detection earlier. Make comment clearer. (signal_exit): Set core-dumped flag.
* Sigh. Another missing checkin.Christopher Faylor2013-04-301-0/+5
|
* missing checkinChristopher Faylor2013-04-301-114/+119
|
* * i686.din: New file.Christopher Faylor2013-04-309-2101/+785
| | | | | | | | | * x86_64.din: New file. * common.din: New file. * cygwin.din: Delete. * cygwin64.din: Delete. * gendef: Rework to take options rather than using positional parameters. Accept multiple files as input.
* * autoload.cc (CreateSymbolicLinkW): Rename from CreateSymbolicLink.Christopher Faylor2013-04-302-1/+5
|
* * fcntl.cc (fcntl): Define as export alias for fcntl64 on x86_64.Corinna Vinschen2013-04-263-0/+9
|
* * faq-programming.xml (faq.programming.64bitporting): Fix typo.Corinna Vinschen2013-04-252-1/+5
|
* * faq-programming.xml (faq.programming.64bitporting): Extend entry.Corinna Vinschen2013-04-252-9/+140
| | | | | (faq.programming.64bitporting-fail): New entry. (faq.programming.64bitporting-cygwin64): New entry.
* * faq-programming.xml (faq.programming.64bitporting): Mention theCorinna Vinschen2013-04-242-1/+11
| | | | -Wformat and -Wall gcc options.
* * faq-programming.xml (faq.programming.64bitporting): New FAQ entry.Corinna Vinschen2013-04-242-42/+165
| | | | | | | | (faq.programming.objective-c): Include gcc4. (faq.programming.make-execvp): Drop text discouraging usage of -j. (faq.programming.undeclared-functions): Drop entry. (faq.programming.x86-assembly): Ditto. (faq.programming.djgpp): Ditto.
* Fix date in latest ChangeLog entryCorinna Vinschen2013-04-241-1/+1
|
* * cygwinenv.sgml (cygwinenv-implemented-options): Change descriptionCorinna Vinschen2013-04-243-5/+31
| | | | | | for winsymlink option to explain new implementation. * new-features.sgml (ov-new1.7.19): Add support for native symlinks and AFS.
* * autoload.cc (CreateSymbolicLink): Define.Corinna Vinschen2013-04-2411-93/+247
| | | | | | | | | | | | | | | | | | | | | | | | | * environ.cc (set_winsymlinks): Set allow_winsymlinks. (parse_thing): Change "winsymlinks" to set by function. * globals.cc (enum winsym_t): Define. (allow_winsymlinks): Define as winsym_t. (ro_u_afs): New R/O Unicode string. * mount.cc (fs_info::update): Fix comment. Handle AFS. (fs_names): Add "afs". * mount.h (enum fs_info_type): Add afs. (class fs_info): Implement afs. * path.cc (symlink): Drop third parameter in call to symlink_worker. (symlink_nfs): New function. (symlink_native): New function. (symlink_worker): Drop third argument. Handle native symlink type by calling symlink_native. Move code to handle NFS to symlink_nfs. Fix formatting. Slightly restructure code. * path.h (class path_conv): Add fs_is_afs method. (symlink_worker): Declare here. * security.h: Define privilege constants as unsigned int instead of as unsigned long. * syscalls.cc (mknod_worker): Set third parameter in symlink_worker call to WSYM_lnk. * winsup.h (symlink_worker): Drop declaration here.
* * Throughout, eliminate Windows 2000 from the documentation.Corinna Vinschen2013-04-236-24/+21
| | | | * overview.sgml (brief-history): Mention native AMD64 support.
* * Makefile.in (SGMLDIRS): Accommodate dropping utils_source andCorinna Vinschen2013-04-233-2/+26
| | | | | | cygwin_source from ../Makefile.common. * new-features.sgml (ov-new1.7.19): New section. Document dropped support for pre-XP SP3 and added support for 64 bit Cygwin.
* *** empty log message ***Corinna Vinschen2013-04-231-0/+10
|
* * cygwin64.din (_setjmp): Export.Corinna Vinschen2013-04-232-0/+7
| | | | (_longjmp): Export.
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-23253-5044/+10621
|
* * include/sys/queue.h: Delete in favor of more complete newlib file.Corinna Vinschen2013-04-222-512/+4
|
* Adapt to changes in newlib's sys/cdefs.h:Corinna Vinschen2013-04-224-7/+9
| | | | | | * include/sys/sysinfo.h (struct sysinfo): Rename __unused member to __f. * libc/fts.c (__FBSDID): Drop definition. * regex/regexec.c (__unused): Drop definition.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 19.Corinna Vinschen2013-04-222-2/+6
|
* * glob.cc: Include winsup.h before anything else.Corinna Vinschen2013-04-162-4/+8
|
* * path.cc (symlink_info::check): Drop PC_KEEP_HANDLE flag forCorinna Vinschen2013-04-122-14/+22
| | | | | unrecognized reparse points as well. Reorganize code and comments handling reparse points for better readability.
* * hires.h (hires_ns::nsecs): Declare with bool parameter.Corinna Vinschen2013-04-113-4/+11
| | | | | * times.cc (hires_ns::nsecs): Take bool parameter. If set to true, don't use prime value (== return system wide absolute value).
* fix YA typoChristopher Faylor2013-04-091-1/+1
|
* * cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrivedChristopher Faylor2013-04-097-141/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event. (_cygtls::handle_SIGCONT): Declare ew function. * cygwait.cc (is_cw_sig_handle): Delete. (is_cw_sig_cont): New convenience define. (cygwait): Clear signal if is_cw_sig_cont and we got a SIGCONT. * cygwait.h (cw_wait_mask): Add cw_sig_cont. * exceptions.cc (sig_handle_tty_stop): Tighten "incyg" region. Use cw_sig_cont param for cygwait. Don't zero signal here outside of lock. (sigpacket::setup_handler): Don't check for in_forkee since we will now never get here in that state. (_cygtls::handle_SIGCONT): Define new function. (sigpacket::process): Call handle_SIGCONT early to deal with SIGCONT. Nuke continue_now handling. Allow SIGKILL to kill a suspended process. Delete a couple of now-unneeded labels. (_cygtls::call_signal_handler): Reorganize setting of incyg within lock. * sigproc.cc (pending_signals): Simplify. (pending_signals::clear): New method. (_cygtls::remove_wq): Reorganize to always close wq.thread_ev if it exists to avoid handle leaks. (sig_clear): Simplify by just calling sigq.clear(). (sig_dispatch_pending): Always call sigq.pending even in signal thread to force another loop in wait_sig. (sig_send): Remove a "goto out" just before out: label. (pending_signals::add): Simplify. (pending_signals::del): Delete. (pending_signals::next): Delete. (wait_sig): Define variable q to be the start of the signal queue. Just iterate through sigq queue, deleting processed or zeroed signals. Only set clearwait when the current signal is SIGCHLD. * sigproc.h: Add a comment about an unused enum.
* fix typoChristopher Faylor2013-04-081-1/+1
|
* * fhandler_socket.cc (get_inet_addr): Handle abstract AF_LOCAL socket.Corinna Vinschen2013-04-082-4/+39
| | | | | (fhandler_socket::recv_internal): Create abstract socket name for AF_LOCAL datagram sockets. Explain why we do that.
* * cygheap.cc (init_cygheap::find_tls): Add a comment.Christopher Faylor2013-04-074-6/+16
| | | | | | | | * dcrt0.cc (parent_sigmask): Delete. (dll_crt0_1): Use spawn_info->moreinfo->sigmask rather than saved parent signal mask. * thread.cc (pthread::thread_init_wrapper): Add comment stressing the importance of maintaining ordering of statements.
* * mmap.cc (is_mmapped_region): Call LIST_UNLOCK on premature return.Corinna Vinschen2013-04-052-1/+8
|
* * fhandler_proc.cc (format_proc_loadavg): Raise too small buffer sizeCorinna Vinschen2013-04-032-1/+6
| | | | to avoid overwriting unrelated cygheap memory.
* * path.cc (class suffix_scan): Add member namelen.Corinna Vinschen2013-04-032-7/+40
| | | | | | | | | | (suffix_scan::name_len): New method. (suffix_scan::has): Store namelen since we have it already anyway. Add a bit of explanation and a FIXME to comment. (suffix_scan::next): Never attach extra .lnk suffix if resulting filename length exceeds NAME_LEN. (symlink_info::check): Bail out immediately with ENAMETOOLONG if filename length exceeds NAME_LEN.
* .Christopher Faylor2013-04-011-0/+5
|
* whitespaceChristopher Faylor2013-03-314-6/+6
|
* * child_info.h (cygheap_exec_info::sigmask): Declare new field.Christopher Faylor2013-03-3110-62/+111
| | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc (init_cygheap::find_tls): Rename threadlist_ix -> ix. Only take one pass through thread list, looking for eligible threads to signal. Set a new param indicating that function has found a sigwait* mask. * cygheap.h (init_cygheap::find_tls): Reflect new parameter. * dcrt0.cc (parent_sigmask): New variable. (child_info_spawn::handle_spawn): Save parent's signal mask here. (dll_crt0_1): Restore parent's signal mask to tls sigmask as appropriate. Call sig_dispatch_pending to flush signal queue when we can finally do something with signals. * exceptions.cc (sigpacket::process): Avoid attempting to handle signals if we haven't finished initializing. Rely on the fact that find_tls will do mask checking and don't do it again. Delete ill-named 'dummy' variable. * sigproc.cc (cygheap_exec_info::alloc): Save calling thread's signal mask in new sigmask field. (wait_sig): Try to debug when WFSO fails and DEBUGGING is defined. * thread.cc (pthread::set_tls_self_pointer): Make this a true automatic method rather than inexplicably relying on a thread parameter. (pthread::thread_init_wrapper): Accommodate set_tls_self_pointer change to non-static. Initialize sigmask before setting tid or suffer signal races. * ehread.h (pthread::set_tls_self_pointer): Make non-static, delete parameter.
* whitespaceChristopher Faylor2013-03-311-1/+0
|
* * cygthread.cc (cygthread::terminate_thread): Only try to freeCorinna Vinschen2013-03-294-12/+33
| | | | | | thread stack on systems not freeing it by themselves. * wincap.h (wincaps::terminate_thread_frees_stack): New element. * wincap.cc: Implement above element throughout.
* * pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.Christopher Faylor2013-03-294-6/+25
| | | | | | | (pinfo::operator == (char *)): Remove unused operator. * pinfo.cc (pinfo::status_exit): Move this function info pinfo class. Use progname from the pinfo rather than myself. Be defensive when inspecting procinfo.
* * sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying.Christopher Faylor2013-03-292-17/+11
| | | | Consolidate two error messages into one.
* * sigproc.cc (pending_signals::retry): Declare new element.Christopher Faylor2013-03-292-41/+32
| | | | | | | | | (pending_signals::pending): Force an additional loop through wait_sig by setting retry whenever this function is called. (sig_send): Reorganize to wait for SIGHOLD at bottom. Always add signal to pending queue and work on whole queue rather than just the one signal. Loop when sigq.retry is set. Fix long-broken check for SIGCHLD after queued signals.
* * exceptions.cc (exception::handle): Generalize comment.Christopher Faylor2013-03-282-1/+5
|
* * faq-what.xml (faq.what.supported): Mention Windows 8 and Server 2012.Corinna Vinschen2013-03-272-3/+9
| | | | Change sentence on native 64 bit version.
* test checkinChristopher Faylor2013-03-191-1/+1
|
* add newsChristopher Faylor2013-03-091-0/+4
|
* * cygtls.h (_cygtls::signal_debugger): Change argument type.Christopher Faylor2013-03-093-24/+42
| | | | | | | | | (_cygtls::copy_context): Delete declaration. * exceptions.cc (exception::handle): Don't call copy_context() here. Move signal_handler call earlier and always call it. (_cygtls::copy_context): Delete definition. (_cygtls::signal_debugger): Move copy_context logic here. Suspend thread receiving signal before gathering context information.