summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* ansification: remove _EXFUN, _EXFUN_NOTHROWYaakov Selkowitz2018-01-174-19/+19
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _PTRYaakov Selkowitz2018-01-171-2/+2
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _PARAMSYaakov Selkowitz2018-01-173-5/+5
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _CONSTYaakov Selkowitz2018-01-171-1/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add asm/bitsperlong.h, dummy asm/posix_types.h headersYaakov Selkowitz2018-01-173-0/+34
| | | | | | These changes are necessary for cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add LFS_CFLAGS etc. to confstr/getconfYaakov Selkowitz2018-01-162-1/+9
| | | | | | These are used, for instance, when cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test ↵Brian Inglis2017-12-222-7/+8
| | | | variables, correct utility paths, define site in preremove
* winsup/doc/etc.postinstall.cygwin-doc.sh fix shell variable typoBrian Inglis2017-12-221-1/+1
|
* cygwin: block devices: fix file offset after short writesnewlib-snapshot-20171222Corinna Vinschen2017-12-192-2/+13
| | | | | | | | | | | | | | | When reading/writing block devices, Cygwin emulates Linux, providing a byte-exact file position, albeit the underlying device drivers don't. Unfortunately this only worked correctly for reading. The raw_write method failed to revalidate the buffer after the read-modify-write cycle in case len is not a multiple of the sector length. This in turn resulted in lseek reporting a wrong file pointer. Also, fix a condition for invalidating the buffer after writing from a remaining read buffer. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: document sigtimedwait and ftell{o} patchCorinna Vinschen2017-12-182-2/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: rearrange sigwait functions, convert sigwait_common to inlineCorinna Vinschen2017-12-181-45/+43
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Implement sigtimedwaitMark Geisert2017-12-185-5/+39
| | | | | Abstract out common code from sigwait/sigwaitinfo/sigtimedwait to implement the latter.
* winsup: Belatedly add Mark Geisert to CONTRIBUTORSCorinna Vinschen2017-12-181-0/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add mmap fork fix to 2.10.0 release testCorinna Vinschen2017-12-101-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: mmap: fix comment and formatting, drop unused codeCorinna Vinschen2017-12-101-8/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: mmap: fix a fork failure with private, anonymous mappingsCorinna Vinschen2017-12-101-0/+7
| | | | | | | | | | | | | Rounddown incoming addr on a page boundary. Without this, we may end up with a fork error for private, anonymous maps. The reason is, we use VirtualAlloc in this case which will potentially overcommit if addr is not on a page boundary. This isn't taken into account in bookkeeping, but fixup_mmaps_after_fork will eventually stumble over this when trying to reproduce the copy-on-write pages: VirtualQuery returns a region reaching beyond the supposedly allocated address range and from there it goes downhill. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Improve discussion of linker library ordering in faq-programmingJon Turney2017-12-081-1/+36
| | | | Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* cygwin: doc: cleanup cygutils infoCorinna Vinschen2017-12-054-39/+15
| | | | | | Especially don't keep on about d2u and u2d. Dos2unix exists. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: document %l[ and bump API minorCorinna Vinschen2017-12-013-1/+8
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Document latest changes, bump API minorCorinna Vinschen2017-11-303-1/+26
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: [w]mempcpy: fix global symbolCorinna Vinschen2017-11-301-5/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: x86_64: implement mempcpy/wmempcpy in assemblerCorinna Vinschen2017-11-301-16/+44
| | | | | | | | | * change memcpy to internal _memcpy not setting the return value in %rax * implement all memcpy-like functions as caller to _memcpy, setting %rax to correct return value beforehand. This is possible because _memcpy does not use %rax at all Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: export wmempcpyYaakov Selkowitz2017-11-303-1/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add Object Size Checking to sys/socket.hYaakov Selkowitz2017-11-302-0/+24
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add Object Size Checking to sys/poll.hYaakov Selkowitz2017-11-302-0/+30
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: create libssp compatibility import libraryYaakov Selkowitz2017-11-291-1/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: export SSP functionsYaakov Selkowitz2017-11-292-1/+25
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygserver: remove all asserts on "this"Corinna Vinschen2017-11-282-7/+0
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: fix getconf after commit 032aa2dba5a5bf90c198d930c8d309b5de57cb47Yaakov Selkowitz2017-11-281-0/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: define _POSIX_TIMEOUTSYaakov Selkowitz2017-11-281-1/+1
| | | | | | | | Since commit 8128f5482f2b1889e2336488e9d45a33c9972d11, we have all the non-tracing functions listed in posixoptions(7). The tracing functions are gated by their own option, and are obsolecent anyway. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: don't allow empty strings in __ASMNAME tagsCorinna Vinschen2017-11-281-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: improve _EXFUN tags generationCorinna Vinschen2017-11-281-1/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: remove accidentally committed debug statmentsCorinna Vinschen2017-11-281-2/+0
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: further improve tags generationCorinna Vinschen2017-11-282-1/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Feature test macros overhaul: Cygwin limits.h, part 2Yaakov Selkowitz2017-11-281-2/+28
| | | | | | | http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html https://sourceware.org/ml/newlib/2017/msg01133.html Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: convert most #ifndef __x86_64__ to #ifdef __i386__Corinna Vinschen2017-11-2727-140/+140
| | | | | | Address the real offender Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: improve tags generationCorinna Vinschen2017-11-271-1/+4
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: cleanup fhandler_socket::release_eventsCorinna Vinschen2017-11-271-7/+9
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: pipe_data_available: cleanup codeCorinna Vinschen2017-11-151-27/+40
| | | | | | | | * Don't use a bool var to store three states (-1, 0, 1). * Correctly check for NT_SUCCESS of a function returning NTSTATUS. * Straighten out code for better readability. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Add FAQ How do I fix find_fast_cwd warnings?Brian Inglis2017-11-151-0/+50
|
* Cygwin: open: Remove unused code to handle HIDDEN and SYSTEM filesCorinna Vinschen2017-11-141-8/+0
| | | | | | | | | | | | Commit 603ef545bdbdbf7495e1a0bbabffb8741fc2a5bb broke this snippet and commit 5b312b4747cc4acda39c187369c02fcea456513b didn't help at all since FILE_CREATE is exactly *not* the situation the test was originally supposed to handle. In fact, none of the open flags used by fhandler_base::open actually hits this problem anymore, so just drop the code. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: link: Simplify an expressionCorinna Vinschen2017-11-141-9/+4
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Bump DLL version to 2.10.0, bump API minor to 319Corinna Vinschen2017-11-142-3/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: fcntl.h: Define O_TMPFILE and implement itCorinna Vinschen2017-11-143-3/+101
| | | | | | | | Difference to Linux: We can't create files which don't show up in the filesystem due to OS restrictions. As a kludge, make a (half-hearted) attempt to hide the file in the filesystem. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: open: cleanup code in preparation of O_TMPFILECorinna Vinschen2017-11-141-55/+53
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: pread: Remove incorrect commentCorinna Vinschen2017-11-081-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: fhandler_disk_file::pread: always print debug info on returnCorinna Vinschen2017-11-081-2/+9
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: pread() returns non-zero if read beyond EOFXiaofeng Liu2017-11-081-2/+5
| | | | | NtReadFile returns EOF status but doesn't set information to 0. Set return value explicitly on EOF.
* cygwin: fix stray semicolonCorinna Vinschen2017-11-071-1/+1
| | | | | | introduced by patch 1c50e0d1abd5cc790e72572af6fd6b03f7d1c594 Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add socket bugfix to release notesCorinna Vinschen2017-11-071-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>