summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix some mangled makedoc markupJon TURNEY2015-06-233-5/+10
| | | | | | | | | 2015-06-23 Jon Turney <jon.turney@dronecode.org.uk> * libc/stdlib/itoa.c: Fix makedoc markup. * libc/stdlib/wcsnrtombs.c: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* Fix makedoc markup used in texinfo sourceJon TURNEY2015-06-233-2/+7
| | | | | | | | | 2015-06-23 Jon Turney <jon.turney@dronecode.org.uk> * libc/signal/signal.tex: Use texinfo not makedoc markup. * libc/stdio/stdio.tex: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Update ancient README about building documentationJon TURNEY2015-06-232-21/+6
| | | | | | | | | | | | | Update list of pre-requisites, everything else is obsolete. Future work: Ensure that the list of pre-requisites in FAQ 6.21 "How do I build Cygwin" remains synchronized with this list. 2015-06-22 Jon Turney <jon.turney@dronecode.org.uk> * README: Update. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Use xidepend to generate the source list for FAQ targets as wellJon TURNEY2015-06-232-4/+6
| | | | | | | | 2015-06-22 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (FAQ_SOURCES): Remove and generate with xidepend. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Remove 'Usage' prefix from synopsesJon TURNEY2015-06-232-44/+48
| | | | | | | | | | Remove redundant 'Usage' prefix from synopses. 2015-06-22 Jon Turney <jon.turney@dronecode.org.uk> * utils.xml: Remove 'Usage' prefix from synopses. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Add intro man pages from cygwin-docJon TURNEY2015-06-233-1/+209
| | | | | | | | | | | | | | | | | | | | | | v2: intro.1 and cygwin.1 are identical. Make cygwin.1 a link to intro.1 Update dates in static man pages v3: Use doclifter to convert intro.[13] to DocBook XML Clean up markup and fix a couple of spelling mistakes. Build and install manpages from XML v4: Update to refer to GPLv3+, SUSv4 Simplify ulinks where anchor text is the same as the URL 2015-06-22 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (intro2man.stamp): Add. * intro.xml: New file. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Create info pages from cygwin documentationJon TURNEY2015-06-235-6/+53
| | | | | | | | | | | | | | | | | | | | | | | | | v2: Updated to use docbook2x-texi not docbook2texi, since source is now docbook XML. Tweak DocBook XML so info directory entry has a description. v3: Use a custom charmap to handle &reg; v4: Proper build avoidance texinfo node references may not contain ':', so provide alternate text for a few xref targets 2015-06-22 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (install-info, cygwin-ug-net.info) (cygwin-api.info): Add. * cygwin-ug-net.xml: Add texinfo-node. * cygwin-api.xml: Ditto. * ntsec.xml (db_home): Add texinfo-node for titles containing a ':' which are the targets of an xref. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* Complement SIGEV_* enums with macrosKen Brown2015-06-232-0/+8
| | | | | | * include/cygwin/signal.h (SIGEV_*): Add macros. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Don't push on original stack during alternate signal stack setupCorinna Vinschen2015-06-222-56/+56
| | | | | | | | | * exceptions.cc (_cygtls::call_signal_handler): Drop pushing a register on the original stack, it confuses GCC. Rearrange the assembler code so that $rax/$eax is not used by GCC to prepare an argument value. Use $rax/$eax without saving. Drop clearing $rbp/$epb. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* sys/signal.h requires sys/cdefs.hCorinna Vinschen2015-06-222-0/+5
| | | | | | * libc/include/sys/signal.h: Include forgotten sys/cdefs.h. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Safe all clobbered volatile registers when using alternate stackCorinna Vinschen2015-06-212-22/+54
| | | | | | | | | * exceptions.cc (_cygtls::call_signal_handler): Drop subtracting 16 bytes from the alternate stack, it's not necessary. Safe all clobbered registers. Safe one on the orignal stack, the others on the alternate stack on both platforms. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix commentsCorinna Vinschen2015-06-201-2/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* ChangeLog entries for Cygwin's alternate signal stack implementationCorinna Vinschen2015-06-203-0/+41
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add alternate signal stack to docsCorinna Vinschen2015-06-203-1/+17
| | | | | | | * new-features.xml (ov-new2.1): Add alterante signal stack info. * posix.xml (std-susv4): Move sigaltstack here. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Implement using alternate signal stack in CygwinCorinna Vinschen2015-06-201-13/+108
| | | | | | | * exceptions.cc (_cygtls::call_signal_handler): Implement alternate signal stack handling. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Use MINSIGSTKSZ and SIGSTKSZ from newlib for Cygwin as wellCorinna Vinschen2015-06-202-17/+14
| | | | | | | | | | * libc/include/sys/signal.h: Move altstack macros completely outside of rtems block. * include/cygwin/signal.h: Remove definitions of MINSIGSTKSZ and SIGSTKSZ here. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Handle exceptions in sigaltstackCorinna Vinschen2015-06-201-21/+35
| | | | | | * signal.cc (sigaltstack): Add fault handler. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Preliminary infrastructure to implement alternate stackCorinna Vinschen2015-06-199-153/+215
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/signal.h: Define SS_ONSTACK and SS_DISABLE unconditionally. (sigaltstack): Enable prototype on Cygwin. * common.din (sigaltstack): Export. * cygtls.cc (_cygtls::init_thread): Initialize altstack. * cygtls.h (__tlsstack_t): Rename from __stack_t to distinguish more clearly from stack_t. Accommodate throughout. (_cygtls): Add altstack member. * exceptions.cc (exception::handle): Set SIGSEGV handler to SIG_DFL if we encounter a stack overflow, and no alternate stack has been defined. * include/cygwin/signal.h (MINSIGSTKSZ): Define (SIGSTKSZ): Define. (SA_ONSTACK): Define. * signal.cc (sigaltstack): New function. * tlsoffset.h: Regenerate. * tlsoffset64.h: Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Formatting fixes in exceptions.ccCorinna Vinschen2015-06-192-37/+67
| | | | | | * Makefile.in (install-man): Exclude release subdir from search paths. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/doc: Fix command to create man3 install directoryJon TURNEY2015-06-192-1/+6
| | | | | | | | | | | | Fix a cut and paste error in the command to create the man3 install directory, added in 94f16969 2015-06-19 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (install-man): Fix command to create man3 install directory. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* Disallow installing "man pages" from release subdirCorinna Vinschen2015-06-182-4/+8
| | | | | | * Makefile.in (install-man): Exclude release subdir from search paths. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/doc: Add man.xsl customization stylesheetJon TURNEY2015-06-183-4/+22
| | | | | | | | | 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * man.xsl: New file. * Makefile.in (utils2man.stamp, api2man.stamp): Use it. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Make and install cygwin-api function manpagesJon TURNEY2015-06-182-2/+16
| | | | | | | | | | | | | | Use 'xmlto man' to make manpages for utils This will generate multiple .1 files as an output, but we don't know what they will be called, so use a timestamp for build avoidance 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (api2man.stamp): Add rules to build and install manpages for cygwin-api. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Convert cygwin-api function documentation to refentry elementsJon TURNEY2015-06-185-68/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert cygwin-api from using a sect2 element to using a refentry element for each function. This makes it possible to generate manpage-style output for those elements. Note that the chunked html now generates a page for each function, rather than one containing all functions. Also: Remove pointless and incorrect date Move introductory paragraph from the first section to the start of the chapter Add a funcsynopsisinfo element with the header file to be included to each function prototype Remove extern "C" which doesn't process into all formats successfully 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * cygwin-api.xml: Move introductory paragraph here. * logon-funcs.xml: Convert from using a sect2 element to using a refentry element for each function. * misc-funcs.xml: Ditto. * path.xml: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Generate ANSI rather than K&R style function prototypesJon TURNEY2015-06-183-0/+12
| | | | | | | | | | | | | | Since K&R style prototypes appear to be the default for HTML and FO, customize the stylesheets rendering of funcsynopsis elements to generate ANSI style prototypes instead. 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * fo.xsl: Render funcsynopsis elements as ANSI style function prototypes. * html.xsl: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Rename cygwin.xsl as html.xslJon TURNEY2015-06-183-8/+12
| | | | | | | | | | For clarity, rename cygwin.xsl as html.xsl, because that's what it is 2015-06-17 Jon Turney <jon.turney@dronecode.org.uk> * html.xsl: Renamed from cygwin.xsl. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* Add sethostname to API listCorinna Vinschen2015-06-172-0/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add sethostnameCorinna Vinschen2015-06-177-3/+44
| | | | | | | | | | | | * net.cc (sethostname): New function. * common.din (sethostname): Export * include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2001. (CYGWIN_VERSION_DLL_MINOR): Set to 0. * new-features.xml (ov-new): Rename from ov-new1.7. (ov-new2.1): Add new section. Document sethostname. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add release/2.0.5 fileCorinna Vinschen2015-06-171-0/+16
|
* winsup/doc: Make and install manpages for utilsJon TURNEY2015-06-162-3/+20
| | | | | | | | | | | | | | | | Use 'xmlto man' to make manpages for utils (docbook2x-man could also be used, but since we already use xmlto...) This will generate multiple .1 files as an output, but we don't know what they will be called, so use a timestamp file for build avoidance when the dependencies haven't changed. 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (install-man, utils2man.stamp): Add rules to build and install manpages for utils. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Convert utils.xml to using refentry elementsJon TURNEY2015-06-164-209/+625
| | | | | | | | | | | | | | | | | | | | | | | | Convert utils.xml from using a sect2 element to using a refentry element for each utility program. This makes it possible to generate manpage-style output for those elements. Note that the chunked html now generates a page for each utility, rather than one containing all utilities. A small customization to TOC generation for HTML and PDF is needed to ensure that it appears as before, containing an entry for each utility command. Future work: synopsis and options sections could use more detailed markup than just wrapping the whole thing in <screen> 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * utils.xml : Convert from using a sect2 element to using a refentry element for each utility program. * cygwin.xsl: Customize autotoc to include refentries. * fo.xsl: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Fix an issue with parallel makeJon TURNEY2015-06-162-0/+6
| | | | | | | | | | | | | | The cygwin-ug-net-nochunks.html.gz target does not ensure that the cygwin-ug-net/ directory exists, so it can fail if run on it's own, or if the cygwin-ug-net/cygwin-ug-net.html target has not yet created it in a parallel make. 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (cygwin-ug-net/cygwin-ug-net-nochunks.html.gz): Ensure cygwin-ug-net directory exists. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Make it easier to extend xidepend to more targetsJon TURNEY2015-06-163-9/+15
| | | | | | | | | | | | | | | | | Change xidepend to create a variable containing all the XIncluded sources, which can be used as a dependency, rather than writing the dependency target itself. Future work: Makefile.dep should depend on xidepend, but xidepend should not be passed to itself. 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * xidepend: Write a Makefile fragment defining variables containing all the XIncluded sources, rather than a dependency on those sources. * Makefile.in: Use that variable to express the dependency. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Use fo.xsl to customize PDF generation from DocBook XMLJon TURNEY2015-06-162-2/+8
| | | | | | | | | | | | | fo.xsl doesn't seem to be used since c2f50c40 switched back from xsltproc to xmlto 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (cygwin-ug-net/cygwin-ug-net.pdf) (cygwin-api/cygwin-api.pdf): Use fo.xsl to customized DocBook XML->PDF conversion. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Some preparatory XML fixesJon TURNEY2015-06-163-29/+34
| | | | | | | | | | | | | | | | | | | Remove the inconsistent .exe suffix in strace and umount usage lines. Tidy up some trailing whitespace. Tabs inside <screen> are not consistently formatted by all formatters, replace with spaces. Remove pointlesss and incorrect date 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * cygwin-ug-net.xml: Remove incorrect unused date. * utils.xml : Remove .exe suffix inconsistently added in a few places. Tidy up some trailing whitespace. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Fix xidepend to handle relative pathnamesJon TURNEY2015-06-162-0/+5
| | | | | | | | | | | | | | | | | | | It seems that xidepend doesn't work correctly if we are ./configure'd using a relative pathname to the srcdir: $ make cd ../../../../src/winsup/doc && ./xidepend ../../../../src/winsup/doc/cygwin-ug-net.xml ../../../../src/winsup/doc/cygwin-api.xml >"/wip/cygwin/build/x86_64-unknown-cygwin/winsup/doc/Makefile.dep" grep: ../../../../src/winsup/doc/cygwin-ug-net.xml: No such file or directory grep: ../../../../src/winsup/doc/cygwin-api.xml: No such file or directory Although it might be better to fix this by making xidepend use pathnames, rather than ignoring them and assuming everything is in the current directory... 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * xidepend: Fix to handle relative pathnames. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* winsup/doc: Remove tarball target from .PHONYJon TURNEY2015-06-162-1/+5
| | | | | | | | Left over after 4885352e. 2015-06-12 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in (.PHONY): Remove tarball target.
* Try to handle concurrent close on socket more gracefullyCorinna Vinschen2015-06-152-14/+53
| | | | | | | | | | | | | | | * fhandler_socket.cc (LOCK_EVENTS): Don't enter critical section with invalid mutex handle since then socket has been closed. (UNLOCK_EVENTS): Close critical section. (fhandler_socket::evaluate_events): Handle calling connect on shutdown socket. (fhandler_socket::wait_for_events): Try for pthread_testcancel in case of WAIT_FAILED. Try to come up with a better errno in case we waited on an invalid handle. (fhandler_socket::release_events): Change wsock_mtx and wsock_evt to NULL under lock to avoid accessing invalid handle. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Handle more Winsock error codes.Corinna Vinschen2015-06-152-0/+7
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Don't enforce SA_RESTART in non-main threadsCorinna Vinschen2015-06-152-1/+12
| | | | | | | | * exceptions.cc (_cygtls::call_signal_handler): Disable enforcing SA_RESTART in non-main threads to allow returning with EINTR from system calls. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* gmtime_r: Use faster algorithm by Howard HinnantFreddie Chopin2015-06-152-71/+40
| | | | | | | * libc/time/gmtime_r.c (gmtime_r): use faster algorithm from civil_from_days() by Howard Hinnant Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix ChangeLog entryCorinna Vinschen2015-06-111-1/+1
|
* Improve strace to log most Windows debug eventsJon TURNEY2015-06-113-2/+80
| | | | | | | | | | | | | | | | | | | | Not sure if this is wanted, but on a couple of occasions recently I have been presented with strace output which contains an exception at an address in an unknown module (i.e. not in the cygwin DLL or the main executable), so here is a patch which adds some more information, including DLL load addresses, to help interpret such straces. v2: Use NtQueryObject() for HANDLE -> filename conversion Add new '-e' option to toggle this additional logging 2015-06-07 Jon Turney <jon.turney@dronecode.org.uk> * strace.cc (proc_child): Log process and thread create and exit, and DLL load and unload. (GetFileNameFromHandle): New function. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
* Bump minor DLL version to 5Corinna Vinschen2015-06-112-1/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Drop Windows 2000 considerations in ps, fix uid field lengthCorinna Vinschen2015-06-102-31/+22
| | | | | | | | * ps.cc (main): Widen UID field in long format to accommodate longer UIDs since Cygwin 1.7.34. Remove Windows 2000 considerations. Fix comments accordingly. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Avoid compiler warning in latest patchcygwin-2_0_4-releaseCorinna Vinschen2015-06-082-2/+7
| | | | | | | * pinfo.cc (_pinfo::cwd): Initialize s to avoid comiler warning. (_pinfo::cmdline): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Evaluate /proc/$PID/{root,cwd,cmdline} for native processesCorinna Vinschen2015-06-083-3/+94
| | | | | | | | | | | * pinfo.cc (_pinfo::root): Fake default root for native processes. (open_commune_proc_parms): New helper function to access process parameter block. (_pinfo::cwd): Fetch missing cwd for native processes from processes parameter block. (_pinfo::cmdline): Ditto for command line. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* add bind mount fix to release notesCorinna Vinschen2015-06-081-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Bind mounts require POSIX pathsCorinna Vinschen2015-06-082-2/+12
| | | | | | | * path.cc (from_fstab_line): Don't convert slashes to backslashes for bind mounts. Explain why. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/doc: Remove ancient unused Makefile rules to make documentation tarballJon TURNEY2015-06-082-11/+5
| | | | | | | | | | | | | This used to be used by cygwin-doc to make a tarball which would be used with a ssh script to run docbook tools on a linux host since they weren't available on Cygwin or something crazy like that... 2015-06-04 Jon Turney <jon.turney@dronecode.org.uk> * Makefile.in: Remove ancient unused rules to make a documentation tarball. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>