summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* cygwin: add strptime %F fix to release notesCorinna Vinschen2017-08-291-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/cygwin/libc/strptime.cc(__strptime) fix %F widthBrian Inglis2017-08-291-2/+4
|
* cygwin: document %s support in strptimeCorinna Vinschen2017-08-292-0/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: export strnstrCorinna Vinschen2017-08-254-3/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/cygwin/libc/strptime.cc(__strptime) add %s support to strptimeBrian Inglis2017-08-251-0/+20
|
* cygwin: only expose /dev/con{in,out,sole} when started from a Windows consoleCorinna Vinschen2017-08-231-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Document renameat2Ken Brown2017-08-193-0/+10
|
* cygwin: Implement renameat2Ken Brown2017-08-194-7/+51
| | | | | | Define the RENAME_NOREPLACE flag in <cygwin/fs.h> as defined on Linux in <linux/fs.h>. The other RENAME_* flags defined on Linux are not supported.
* headers: avoid bareword attributesEric Blake2017-08-174-5/+5
| | | | | | | | | Always use the __-decorated form of an attribute name in public headers, as the bareword form is in the user's namespace, and we don't want compilation to break just because the user defines the bareword to mean something else. Signed-off-by: Eric Blake <eblake@redhat.com>
* cygwin: pthread timed locks: actually timeout on timeoutCorinna Vinschen2017-08-031-4/+26
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: pthread_rwlock_rdlock: don't set errno, just return error codeCorinna Vinschen2017-08-031-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Implement pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlockCorinna Vinschen2017-08-037-11/+84
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Bump DLL version to 2.9.0Corinna Vinschen2017-08-034-4/+20
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Implement pthread_mutex_timedlockCorinna Vinschen2017-08-035-4/+35
| | | | | | | - pthread_mutex::lock now takes a PLARGE_INTEGER timeout pointer and uses that in the call to cygwait. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: simplify pthread timedwait handlingCorinna Vinschen2017-08-032-66/+60
| | | | | | | | | | | | | - Introduce inline helper pthread_convert_abstime. It converts an absolute timespec to a Windows LARGE_INTEGER timestamp, depending on the used clock. - Use this function from pthread_cond_timedwait and semaphore::timedwait - Merge semaphore::_wait and semaphore::_timedwait into single _wait method, taking a LARGER_INTEGER timestamp. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin/signal.h: Remove SI_QUEUE unimplemented commentCorinna Vinschen2017-08-031-2/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Revert "cygwin/signal.h: Remove SI_QUEUE unimplemented comment"Corinna Vinschen2017-08-032-17/+11
| | | | This reverts commit 54ed68a781fe8a36d08352503524e61534a25e07.
* cygwin/signal.h: Remove SI_QUEUE unimplemented commentCorinna Vinschen2017-08-032-11/+17
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add explicit_bzero, elf.h changes to releaseYaakov Selkowitz2017-08-021-0/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Add elf.h to newlibYaakov Selkowitz2017-08-027-1890/+0
| | | | | | | This is copied from musl (MIT license). This is newer and more thorough than that of FreeBSD currently shipped only on Cygwin. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: Export explicit_bzeroYaakov Selkowitz2017-08-023-1/+4
| | | | | | This was added to newlib together with timingsafe_*cmp but never exported. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: generate Alt-Numpad characters independent of NumLock stateCorinna Vinschen2017-08-011-1/+7
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add console issues to release notesCorinna Vinschen2017-07-311-0/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: select: use UNICODE console functionsCorinna Vinschen2017-07-311-2/+2
| | | | | | | | | | | | For historical reasons peek_console was calling the functions PeekConsoleInputA and ReadConsoleInputA. However, these functions are not working correctly under at least codepage 65001 (UTF-8) on systems prior to Windows 10. Use PeekConsoleInputW and ReadConsoleInputW instead, which work correctly under all systems and all codepages. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: console: Use memset to clear an arrayCorinna Vinschen2017-07-311-3/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: clear screen using wide char functionCorinna Vinschen2017-07-311-1/+1
| | | | | | | | | FillConsoleOutputCharacterA doesn't work correctly in codepage 65001 (UTF-8). Looks like the character conversion function from ascii char to unicode char works incorrectly then. Use FillConsoleOutputCharacterW instead. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add release notes for reparse point patchesCorinna Vinschen2017-07-241-0/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: unify reparse point checking code into single functionCorinna Vinschen2017-07-243-89/+70
| | | | | | | | | | | | | | | | | So far we had two functions checking the content of a reparse point, readdir_check_reparse_point in fhandler_disk_file.cc for the sake of readdir, and symlink_info::check_reparse_point for the sake of generic path checking. * Rename check_reparse_point_target helper to check_reparse_point_string and convert to static function. * Create new check_reparse_point_target helper containing the core reparse point checking code * Just call check_reparse_point_target from readdir_check_reparse_point and symlink_info::check_reparse_point and only perform the unique task in those functions. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: fix formatting in check_reparse_point_targetCorinna Vinschen2017-07-241-3/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Fix resource leak in readdir reparse point handlingCorinna Vinschen2017-07-241-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: add fflush fix to release notesCorinna Vinschen2017-07-191-0/+13
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Bump DLL version to 2.8.3Corinna Vinschen2017-07-191-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Use errno instead of _impure_ptr->_errnoCorinna Vinschen2017-07-191-2/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Revert "errno: Stop using _impure_ptr->_errno completely"Corinna Vinschen2017-07-193-5/+6
| | | | | | | | This reverts commit 44b1746a41921533d27aca414a9188314cb725b6. Bad idea. _impure_ptr->_errno is used by newlib Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: 2.8.2: add missing release message textcygwin-2_8_2-releaseCorinna Vinschen2017-07-121-0/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: document signal.h fixesYaakov Selkowitz2017-07-121-1/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: export fls, flsl, flsllCorinna Vinschen2017-07-114-1/+10
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: fix guard on struct siginfo_tYaakov Selkowitz2017-07-101-2/+4
| | | | | | | Add line breaks to make it clearer that the struct packing applies to more than one struct. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Rename __in and __out in headers to avoid collision with Windows APIsDavid Macek2017-07-071-1/+1
| | | | | * string.h: Local variables in expansion of strdupa and strndupa * sys/wait.h: Fields in anonymous union in expansion of __wait_status_to_int
* fix URL shortcuts launch with cygstart, create shortcuts directly in ↵Brian Inglis2017-07-061-7/+5
| | | | SM/Programs/Cygwin
* fix cygwin-doc postinstall/preremove no SMPrograms/Cygwin dirBrian Inglis2017-07-062-17/+63
|
* Add ffsl(), ffsll(), fls(), flsl(), flsll()Sebastian Huber2017-07-051-22/+0
| | | | | | | Use compiler builtin for ffs(). Remove duplicate implementation from Cygwin. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* Cygwin: fix signal.h with _POSIX_C_SOURCE=1Yaakov Selkowitz2017-07-041-0/+2
| | | | | | | | struct sigaction is POSIX.1-1990 but siginfo_t, which is used by its sa_sigaction member, is POSIX.1b-1993. Therefore it needs to be guarded as well, and as part of a union, the struct size is protected. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* add scandirat patch to release notesCorinna Vinschen2017-07-041-0/+13
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: scandirat: fix path given to scandirCorinna Vinschen2017-07-041-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Bump DLL minor versionCorinna Vinschen2017-07-041-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* replace shortcut parameter assignments with read loops, run with shBrian Inglis2017-06-271-44/+20
|
* cygwin: doc: Fix doc install path in postinstall scriptCorinna Vinschen2017-06-231-3/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Update documentation of cygwin setup proxy configuration detailsnewlib-snapshot-20170623Jon Turney2017-06-221-8/+5
|
* Update and sort list of cygwin setup command line options.Jon Turney2017-06-221-24/+38
|