]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
8 years agoAdd comment to point out missing access right per documentation
Corinna Vinschen [Mon, 27 Jun 2016 16:00:01 +0000 (18:00 +0200)]
Add comment to point out missing access right per documentation

In get_mem_values we open the process without PROCESS_VM_READ access
and are *still* able to request working set information, despite
MSDN claiming we need it for this purpose.  Instead of adding this
access right, just add an comment to point this out for now.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse PROCESS/THREAD_QUERY_LIMITED_INFORMATION where appropriate
Corinna Vinschen [Mon, 27 Jun 2016 15:56:16 +0000 (17:56 +0200)]
Use PROCESS/THREAD_QUERY_LIMITED_INFORMATION where appropriate

Using PROCESS/THREAD_QUERY_INFORMATION may limit the number of
processes/threads we can inspect depending on their integrity level.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoSet supported Windows release to Windows 10
Corinna Vinschen [Mon, 27 Jun 2016 15:51:41 +0000 (17:51 +0200)]
Set supported Windows release to Windows 10

This affects setting _WIN32_WINNT and WINVER.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove pre-Vista considerations from utilities
Corinna Vinschen [Mon, 27 Jun 2016 15:50:25 +0000 (17:50 +0200)]
Remove pre-Vista considerations from utilities

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoPhoenix-RTOS: Adjust network-related headers to new kernel API.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:55 +0000 (14:14 +0200)]
Phoenix-RTOS: Adjust network-related headers to new kernel API.

8 years agoPhoenix-RTOS: Add dummy implementation of fdatasync() syscall.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:54 +0000 (14:14 +0200)]
Phoenix-RTOS: Add dummy implementation of fdatasync() syscall.

8 years agoAdd dummy implementation of getentropy(), if_nametoindex() and if_indextoname() funct...
Kuba Sejdak [Fri, 24 Jun 2016 12:14:53 +0000 (14:14 +0200)]
Add dummy implementation of getentropy(), if_nametoindex() and if_indextoname() functions.

8 years agoPhoenix-RTOS: Implement daemon() function.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:52 +0000 (14:14 +0200)]
Phoenix-RTOS: Implement daemon() function.

8 years agoPhoenix-RTOS: Add checking EOF in getmntent().
Kuba Sejdak [Fri, 24 Jun 2016 12:14:51 +0000 (14:14 +0200)]
Phoenix-RTOS: Add checking EOF in getmntent().

8 years agoPhoenix-RTOS: Provide __progname symbol for user-space apps.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:50 +0000 (14:14 +0200)]
Phoenix-RTOS: Provide __progname symbol for user-space apps.

8 years agoPhoenix-RTOS: Fix warning with pointer treated as integer.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:49 +0000 (14:14 +0200)]
Phoenix-RTOS: Fix warning with pointer treated as integer.

8 years agoPhoenix-RTOS: Add <netpacket/packet.h> header and import <net/if_arp.h> header from...
Kuba Sejdak [Fri, 24 Jun 2016 12:14:48 +0000 (14:14 +0200)]
Phoenix-RTOS: Add <netpacket/packet.h> header and import <net/if_arp.h> header from FreeBSD.

8 years agoPhoenix-RTOS: Provide daemon() and fdatasync() syscalls in <sys/unistd.h>.
Kuba Sejdak [Fri, 24 Jun 2016 12:14:47 +0000 (14:14 +0200)]
Phoenix-RTOS: Provide daemon() and fdatasync() syscalls in <sys/unistd.h>.

8 years agoAdd release message for commit b2867a6
Corinna Vinschen [Mon, 27 Jun 2016 11:21:19 +0000 (13:21 +0200)]
Add release message for commit b2867a6

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd missing OBJCOPY variable to Makefile.in
Corinna Vinschen [Sat, 26 Mar 2016 11:32:18 +0000 (12:32 +0100)]
Add missing OBJCOPY variable to Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRevert "Use .DELETE_ON_ERROR"
Jon Turney [Sat, 25 Jun 2016 16:08:18 +0000 (17:08 +0100)]
Revert "Use .DELETE_ON_ERROR"

This reverts commit 62b0bf0b8b65f16909b0e8d150a9c238cf6eb44a.

8 years agoRevert "Add missing OBJCOPY variable to Makefile.in"
Jon Turney [Sat, 25 Jun 2016 16:08:06 +0000 (17:08 +0100)]
Revert "Add missing OBJCOPY variable to Makefile.in"

This reverts commit fdc45c4bfbf382cac03e0b8267771fd7c5f678e6.

8 years agoRevert "Make newlib manpages via DocBook XML (v3)"
Jon Turney [Sat, 25 Jun 2016 16:07:43 +0000 (17:07 +0100)]
Revert "Make newlib manpages via DocBook XML (v3)"

This reverts commit 041ea4106881a3434e63ca95a38c911515793f09.

8 years agoMake newlib manpages via DocBook XML (v3)
Jon Turney [Fri, 24 Jun 2016 20:50:15 +0000 (21:50 +0100)]
Make newlib manpages via DocBook XML (v3)

Add makedocbook, a tool to process makedoc markup and output DocBook XML
refentries.

Process all the source files which are processed with makedoc with
makedocbook as well

Add chapter-texi2docbook, a tool to automatically generate DocBook XML
chapter files from the chapter .texi files.  For generating man pages all we
care about is the content of the refentries, so all this needs to do is
convert the @include of the makedoc generated .def files to xi:include of
the makedocbook generated .xml files.

Add skeleton Docbook XML book files, lib[cm].in.xml which include these
generated chapters, which in turn include the generated files containing
refentries, which is processed with xsltproc to generate the lib[cm].xml

Add new make targets to generate and install man pages from lib[cm].xml

8 years agoAdd missing OBJCOPY variable to Makefile.in
Corinna Vinschen [Sat, 26 Mar 2016 11:32:18 +0000 (12:32 +0100)]
Add missing OBJCOPY variable to Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse .DELETE_ON_ERROR
Jon Turney [Fri, 25 Mar 2016 13:56:03 +0000 (13:56 +0000)]
Use .DELETE_ON_ERROR

Use .DELETE_ON_ERROR
Make the fact that we are running dllfixdbg less obscure

8 years agoRemove leftover useless copyright hints
Corinna Vinschen [Sat, 25 Jun 2016 11:36:52 +0000 (13:36 +0200)]
Remove leftover useless copyright hints

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoClarify setting of child_info::msv_count in child_info.h
Corinna Vinschen [Sat, 25 Jun 2016 08:21:13 +0000 (10:21 +0200)]
Clarify setting of child_info::msv_count in child_info.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove CYGWIN=detect_bloda option
Corinna Vinschen [Tue, 15 Dec 2015 17:28:03 +0000 (18:28 +0100)]
Remove CYGWIN=detect_bloda option

8 years agoNo longer support "Interact with desktop"
Corinna Vinschen [Fri, 24 Jun 2016 22:42:36 +0000 (00:42 +0200)]
No longer support "Interact with desktop"

Always create child user window station and desktop, unless only
spawning with restricted token.  Also fix formatting of a few comments
in child_info_spawn::worker.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix comments for AI_ADDRCONFIG and AI_V4MAPPED
Corinna Vinschen [Tue, 15 Dec 2015 20:50:35 +0000 (21:50 +0100)]
Fix comments for AI_ADDRCONFIG and AI_V4MAPPED

8 years agosyscalls.cc: Merge desktop_ini_ext into desktop_ini
Corinna Vinschen [Tue, 15 Dec 2015 20:50:14 +0000 (21:50 +0100)]
syscalls.cc: Merge desktop_ini_ext into desktop_ini

8 years agofhandler_pty_master::pty_master_thread: Always check for correct pid
Corinna Vinschen [Tue, 15 Dec 2015 20:49:19 +0000 (21:49 +0100)]
fhandler_pty_master::pty_master_thread: Always check for correct pid

8 years agoRemove unused GetTickCount_ns
Corinna Vinschen [Tue, 15 Dec 2015 20:48:02 +0000 (21:48 +0100)]
Remove unused GetTickCount_ns

8 years agoFix various OS-related comments
Corinna Vinschen [Tue, 15 Dec 2015 20:43:33 +0000 (21:43 +0100)]
Fix various OS-related comments

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agocygheap_domain_info::init: Fix comment
Corinna Vinschen [Tue, 15 Dec 2015 18:54:35 +0000 (19:54 +0100)]
cygheap_domain_info::init: Fix comment

8 years agoRemove XP and Server 2003 from documentation
Corinna Vinschen [Fri, 24 Jun 2016 21:21:10 +0000 (23:21 +0200)]
Remove XP and Server 2003 from documentation

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agonet.cc (fdsock): Fix comment
Corinna Vinschen [Tue, 15 Dec 2015 17:12:49 +0000 (18:12 +0100)]
net.cc (fdsock): Fix comment

8 years agochild_info.h: Fix a comment
Corinna Vinschen [Tue, 15 Dec 2015 16:16:02 +0000 (17:16 +0100)]
child_info.h: Fix a comment

8 years agochild_info::child_info: Fix a comment
Corinna Vinschen [Tue, 15 Dec 2015 16:14:08 +0000 (17:14 +0100)]
child_info::child_info: Fix a comment

8 years agosec_auth.cc: Drop prototype for CreateProfile, don't expect failed autoload
Corinna Vinschen [Tue, 15 Dec 2015 16:08:05 +0000 (17:08 +0100)]
sec_auth.cc: Drop prototype for CreateProfile, don't expect failed autoload

8 years agoinclude/cygwin/if.h: Fix a comment
Corinna Vinschen [Tue, 15 Dec 2015 16:04:25 +0000 (17:04 +0100)]
include/cygwin/if.h: Fix a comment

8 years agofhandler_disk_file::opendir: Fix a comment
Corinna Vinschen [Tue, 15 Dec 2015 16:03:09 +0000 (17:03 +0100)]
fhandler_disk_file::opendir: Fix a comment

8 years agoeval_start_address: Fix comment
Corinna Vinschen [Tue, 15 Dec 2015 15:54:32 +0000 (16:54 +0100)]
eval_start_address: Fix comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agofhandler_dev_floppy::get_drive_info: fix comment
Corinna Vinschen [Tue, 15 Dec 2015 15:53:35 +0000 (16:53 +0100)]
fhandler_dev_floppy::get_drive_info: fix comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agosymlink_info::check fixup comment and two test for non-XP
Corinna Vinschen [Tue, 15 Dec 2015 15:51:54 +0000 (16:51 +0100)]
symlink_info::check fixup comment and two test for non-XP

8 years agoDrop autoloading transaction functions from ntdll
Corinna Vinschen [Tue, 15 Dec 2015 15:45:25 +0000 (16:45 +0100)]
Drop autoloading transaction functions from ntdll

8 years agoDrop autoloading kernel32 symbols available since Vista
Corinna Vinschen [Tue, 15 Dec 2015 15:43:55 +0000 (16:43 +0100)]
Drop autoloading kernel32 symbols available since Vista

8 years agoDrop autoloading of CancelSynchronousIo
Corinna Vinschen [Tue, 15 Dec 2015 15:39:08 +0000 (16:39 +0100)]
Drop autoloading of CancelSynchronousIo

8 years agoDrop max_sys_priv wincap
Corinna Vinschen [Tue, 15 Dec 2015 15:34:40 +0000 (16:34 +0100)]
Drop max_sys_priv wincap

Convert sys_privs to const struct with TOKEN_PRIVILEGES layout.
Drop function get_system_priv_list.  Just use pointer to sys_privs.

Dropping max_sys_priv from wincaps requires to make sure that the
bitfield is 8 byte aligned on x86_64, otherwise gcc (5.3 only?)
apparently breaks access to the bitfield (off by 4 bytes).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDrop accidentally leftover comment from wincapc::init
Corinna Vinschen [Tue, 15 Dec 2015 15:12:34 +0000 (16:12 +0100)]
Drop accidentally leftover comment from wincapc::init

8 years agoDefault to latest wincap
Corinna Vinschen [Tue, 15 Dec 2015 15:09:38 +0000 (16:09 +0100)]
Default to latest wincap

8 years agoDrop Windows XP/2003 wincaps
Corinna Vinschen [Tue, 15 Dec 2015 15:08:39 +0000 (16:08 +0100)]
Drop Windows XP/2003 wincaps

8 years agoDrop has_broken_rtl_query_process_debug_information flag
Corinna Vinschen [Tue, 15 Dec 2015 15:06:51 +0000 (16:06 +0100)]
Drop has_broken_rtl_query_process_debug_information flag

8 years agoDrop terminate_thread_frees_stack flag
Corinna Vinschen [Tue, 15 Dec 2015 15:04:06 +0000 (16:04 +0100)]
Drop terminate_thread_frees_stack flag

8 years agoDrop has_pipe_reject_remote_clients flag
Corinna Vinschen [Tue, 15 Dec 2015 15:02:35 +0000 (16:02 +0100)]
Drop has_pipe_reject_remote_clients flag

8 years agoDrop has_set_thread_stack_guarantee flag
Corinna Vinschen [Tue, 15 Dec 2015 15:00:20 +0000 (16:00 +0100)]
Drop has_set_thread_stack_guarantee flag

8 years agoDrop has_program_compatibility_assistant flag
Corinna Vinschen [Tue, 15 Dec 2015 14:53:16 +0000 (15:53 +0100)]
Drop has_program_compatibility_assistant flag

8 years agoRename if_indextoname to cygwin_if_indextoname (analag for if_nametoindex)
Corinna Vinschen [Tue, 15 Dec 2015 14:50:13 +0000 (15:50 +0100)]
Rename if_indextoname to cygwin_if_indextoname (analag for if_nametoindex)

Just call OS functions

8 years agoDrop wow64_has_secondary_stack flag
Corinna Vinschen [Tue, 15 Dec 2015 14:48:44 +0000 (15:48 +0100)]
Drop wow64_has_secondary_stack flag

8 years agoDrop use_dont_resolve_hack flag
Corinna Vinschen [Fri, 24 Jun 2016 13:42:06 +0000 (15:42 +0200)]
Drop use_dont_resolve_hack flag

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDrop has_restricted_raw_disk_access flag
Corinna Vinschen [Tue, 15 Dec 2015 14:21:00 +0000 (15:21 +0100)]
Drop has_restricted_raw_disk_access flag

8 years agoFix major device check when locking partitions
Corinna Vinschen [Fri, 24 Jun 2016 11:39:42 +0000 (13:39 +0200)]
Fix major device check when locking partitions

The change introduced in commit b2867a6 contains a faulty check for
the major device number in fhandler_dev_floppy::lock_partition.
Fix this.  Also fix comments.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDrop has_transactions flag
Corinna Vinschen [Tue, 15 Dec 2015 14:19:05 +0000 (15:19 +0100)]
Drop has_transactions flag

8 years agoDrop has_fast_cwd flag
Corinna Vinschen [Tue, 15 Dec 2015 14:17:18 +0000 (15:17 +0100)]
Drop has_fast_cwd flag

8 years agoDrop now useless comment from locale.c
Corinna Vinschen [Fri, 24 Jun 2016 10:47:18 +0000 (12:47 +0200)]
Drop now useless comment from locale.c

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd support for certain newer locales only available with Script
Corinna Vinschen [Fri, 24 Jun 2016 10:11:42 +0000 (12:11 +0200)]
Add support for certain newer locales only available with Script

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDrop has_localenames flag
Corinna Vinschen [Tue, 15 Dec 2015 14:15:30 +0000 (15:15 +0100)]
Drop has_localenames flag

8 years agoDrop has_always_all_codepages flag
Corinna Vinschen [Tue, 15 Dec 2015 14:10:33 +0000 (15:10 +0100)]
Drop has_always_all_codepages flag

8 years agoDrop has_broken_udf flag
Corinna Vinschen [Tue, 15 Dec 2015 14:04:26 +0000 (15:04 +0100)]
Drop has_broken_udf flag

8 years agoDrop has_sendmsg flag
Corinna Vinschen [Tue, 15 Dec 2015 14:01:01 +0000 (15:01 +0100)]
Drop has_sendmsg flag

8 years agoDrop has_mandatory_integrity_control flag
Corinna Vinschen [Tue, 15 Dec 2015 13:58:52 +0000 (14:58 +0100)]
Drop has_mandatory_integrity_control flag

8 years agoDrop has_restricted_stack_args flag
Corinna Vinschen [Tue, 15 Dec 2015 13:55:48 +0000 (14:55 +0100)]
Drop has_restricted_stack_args flag

8 years agoDrop supports_all_posix_ai_flags
Corinna Vinschen [Tue, 15 Dec 2015 13:54:19 +0000 (14:54 +0100)]
Drop supports_all_posix_ai_flags

8 years agoDrop has_gaa_on_link_prefix flag and remove obsolete functions thusly
Corinna Vinschen [Tue, 15 Dec 2015 13:44:33 +0000 (14:44 +0100)]
Drop has_gaa_on_link_prefix flag and remove obsolete functions thusly

8 years agoDrop has_recycle_dot_bin
Corinna Vinschen [Tue, 15 Dec 2015 13:30:03 +0000 (14:30 +0100)]
Drop has_recycle_dot_bin

8 years agoAdd release message for commit 733af66
Corinna Vinschen [Thu, 23 Jun 2016 19:58:38 +0000 (21:58 +0200)]
Add release message for commit 733af66

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoSync with upstream gcc.
Jeff Johnston [Thu, 23 Jun 2016 19:47:44 +0000 (15:47 -0400)]
Sync with upstream gcc.

8 years agoClarify source file license in CYGWIN_LICENSE
Corinna Vinschen [Thu, 23 Jun 2016 19:52:12 +0000 (21:52 +0200)]
Clarify source file license in CYGWIN_LICENSE

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove support for SUNWNFS file system
Corinna Vinschen [Tue, 15 Dec 2015 12:56:39 +0000 (13:56 +0100)]
Remove support for SUNWNFS file system

8 years agoHandle up to 63 partitions per drive
Corinna Vinschen [Thu, 23 Jun 2016 14:56:41 +0000 (16:56 +0200)]
Handle up to 63 partitions per drive

Revamp device parsing code.  Introducing support for more partitions
into the shilka-generated parser has the unfortunate side-effect of
raising the size of the DLL by almost 2 Megs.  Therefore we split out
the handling for /dev/sdXY devices into a tiny bit of hand-written
code.

While at it, remove some unused cruft from devices.* and generally
clean up the device class to provide access methods instead of direct
access to members.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoBump DLL minor version
Corinna Vinschen [Thu, 23 Jun 2016 13:21:44 +0000 (15:21 +0200)]
Bump DLL minor version

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoSwitching the Cygwin DLL to LGPLv3+, dropping commercial buyout option cygwin-2_5_2-release
Corinna Vinschen [Tue, 24 May 2016 09:16:39 +0000 (11:16 +0200)]
Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option

Bump GPLv2+ to GPLv3+ for some files, clarify BSD 2-clause.

Everything else stays under GPLv3+.

New Linking Exception exempts resulting executables from LGPLv3 section 4.

Add CONTRIBUTORS file to keep track of licensing.

Remove 'Copyright Red Hat Inc' comments.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd release message for commit 2c83227
Corinna Vinschen [Tue, 21 Jun 2016 11:43:53 +0000 (13:43 +0200)]
Add release message for commit 2c83227

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDrop useless calls to path_conv.isgood_inode
Corinna Vinschen [Tue, 21 Jun 2016 11:39:35 +0000 (13:39 +0200)]
Drop useless calls to path_conv.isgood_inode

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse correct file info (especially inode number) for newly created files
Corinna Vinschen [Tue, 21 Jun 2016 11:39:04 +0000 (13:39 +0200)]
Use correct file info (especially inode number) for newly created files

fhandler_base::open_fs has two problems:
- When newly creating a file, the file info in the path_conv is
  incorrect.  It points to info for the parent dir, not to info
  for the file itself (which, naturally, wasn't available before).
- Fetching the file's inode number only worked for non-NFS.

Both problems should be fixed now by reloading file info if the file
has just been created, as well as using the new FS-agnostic
path_conv::get_ino method.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse new path_conv_handle functions to access file info
Corinna Vinschen [Tue, 21 Jun 2016 11:28:12 +0000 (13:28 +0200)]
Use new path_conv_handle functions to access file info

This avoids having to call nfs_fetch_fattr3/file_get_fai depending
on FS type as well as having to extract the info FS dependent.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoImprove encapsulation of FS type behind path_conv cover
Corinna Vinschen [Tue, 21 Jun 2016 11:24:41 +0000 (13:24 +0200)]
Improve encapsulation of FS type behind path_conv cover

Rather than having to check for the FS type in the caller and having
to call different functions whether FS is NFS or not, encapsulate the
info in path_conv_handle/path_conv methods to allow FS type agnostic
calling from upper level functions.

This patch only implements the methods.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agosys/time.h: Change visibility of gettimeofday.
Corinna Vinschen [Mon, 20 Jun 2016 08:11:24 +0000 (10:11 +0200)]
sys/time.h: Change visibility of gettimeofday.

gettimeofday is currently guarded with __MISC_VISIBLE || __XSI_VISIBLE.
However, gettimeofday should be always visible, as in GLibc.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRe-enable malloc_lock for newlib-nano
Andre Vieira (lists) [Thu, 16 Jun 2016 11:23:51 +0000 (12:23 +0100)]
Re-enable malloc_lock for newlib-nano

Re-enable the use of __malloc_lock and __malloc_unlock newlib-nano, tied
the newlib-multithread.

8 years agouinfo.cc: More comment fixes, remove unused testing code.
Corinna Vinschen [Wed, 15 Jun 2016 17:48:43 +0000 (19:48 +0200)]
uinfo.cc: More comment fixes, remove unused testing code.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agouinfo.cc: Fix comment
Corinna Vinschen [Wed, 15 Jun 2016 16:04:00 +0000 (18:04 +0200)]
uinfo.cc: Fix comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDeclare crypt, encrypt, and setkey per Posix
Ken Brown [Wed, 8 Jun 2016 21:04:06 +0000 (17:04 -0400)]
Declare crypt, encrypt, and setkey per Posix

8 years agoFix typos in comments and debug output in select_stuff::wait
Corinna Vinschen [Wed, 8 Jun 2016 09:02:50 +0000 (11:02 +0200)]
Fix typos in comments and debug output in select_stuff::wait

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd release message for commit 7239bb7b3ded5ab961dc56dc346d8ab83660ba29
Corinna Vinschen [Mon, 6 Jun 2016 17:02:08 +0000 (19:02 +0200)]
Add release message for commit 7239bb7b3ded5ab961dc56dc346d8ab83660ba29

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd release message for select(2) changes
Corinna Vinschen [Mon, 6 Jun 2016 15:24:39 +0000 (17:24 +0200)]
Add release message for select(2) changes

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoImprove timer handling in select.
Corinna Vinschen [Mon, 6 Jun 2016 14:48:38 +0000 (16:48 +0200)]
Improve timer handling in select.

Commit a23e6a35d896a075640db714b28ce74bb6b8d7ff introduced a timer
object to the WFMO handling in select_stuff::wait to allow sub-tickcount
timeout values in select.

Problems with this patch: The timer was created and destroyed on every
invocation of select_stuff::wait, thus potentially multiple times per
select.  Also, since the timer was prepended to the WFMO hande list,
the timer handle could shadow actual events on other objects, given that
WFMO checks the objects in the order they have been specified in the
HANDLE array.  The timer was also created/destroyed and added to the
HANDLE array even if it was not required.

This patch drops the local timer HANDLE and recycles the cw_timer HANDLE
in the cygtls area instead.  Thus we typically don't need to create the
timer in select at all, and we never have to destroy it.

The timer HANDLE is now also appended as last object to the HANDLE array,
and it's only added if actually needed.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix condition in select which results in busy loop.
Corinna Vinschen [Mon, 6 Jun 2016 14:18:53 +0000 (16:18 +0200)]
Fix condition in select which results in busy loop.

The check for current timestamp > start timestamp has an unwelcome
side effect:  The loop is not left as long as the current timestamp
hasn't been incremented.  This leads to busy loops of about one tick
(10 to 16 ms per MSDN).

This fixes https://cygwin.com/ml/cygwin/2016-05/msg00327.html

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoReturn at most one line of input in canonical mode
Takashi Yano [Mon, 6 Jun 2016 13:09:34 +0000 (15:09 +0200)]
Return at most one line of input in canonical mode

'man termios' says:
"A read(2) returns at most one line of input" in canonical mode.

On cygwin 2.5.1, read(2) returns all data in buffer if the buffer
size specified is large enough. This behaviour is correct in
noncanonical mode, but is not correct in canonical mode.

While checking this problem, I found a bug of tcflush().  tcflush()
flushes only partial data in the buffer.  The patch also fixes this bug.

The patch has also been tested against the problem reported in
https://cygwin.com/ml/cygwin/2016-05/msg00318.html.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAllow 'make distclean' to clean winsup/cygwin
Ken Brown [Sun, 5 Jun 2016 16:58:22 +0000 (12:58 -0400)]
Allow 'make distclean' to clean winsup/cygwin

But don’t let it remove source files.

8 years agoOnly regenerate tlsoffsets{64}.h if cygtls.h can be compiled
Corinna Vinschen [Mon, 6 Jun 2016 09:44:54 +0000 (11:44 +0200)]
Only regenerate tlsoffsets{64}.h if cygtls.h can be compiled

The rule to make tlsoffset{64}.h has a flaw.  If cygtls.h can't be
built for whatever reason, it *still* regenerates tlsoffsets{64}.h,
just with size 0.  If the bug is not in cygtls.h itself, this behaviour
breaks further building, because fixing the problem won't result in
regenerating tlsoffset{64}.h.  Manual intervention is required.

Fix that by removing tlsoffsets{64}.h if gentls_offsets fails.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agocygwin: include sys/types.h in sys/xattr.h
Yaakov Selkowitz [Fri, 3 Jun 2016 08:34:11 +0000 (03:34 -0500)]
cygwin: include sys/types.h in sys/xattr.h

Using libattr's <xattr/xattr.h> requires consumers to explicitly include
<sys/types.h> first, but glibc's header in sys/ already contains the include.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agosched.cc: Use PROCESS_QUERY_INFORMATION for now
Corinna Vinschen [Fri, 3 Jun 2016 08:28:44 +0000 (10:28 +0200)]
sched.cc: Use PROCESS_QUERY_INFORMATION for now

Temporarily revert to use PROCESS_QUERY_INFORMATION instead of
PROCESS_QUERY_LIMITED_INFORMATION to make sure every aspect of the
next release is still XP/2003 compatible.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRevert "Cygwin hangs up if several keys are typed during outputting a lot of texts."
Corinna Vinschen [Wed, 1 Jun 2016 15:04:24 +0000 (17:04 +0200)]
Revert "Cygwin hangs up if several keys are typed during outputting a lot of texts."

This reverts commit 252a07b0ad3353abcd0fcd9b1b65ff977acd679e.

This change introduced a hang in certain scenarios, for an example
see https://cygwin.com/ml/cygwin/2016-05/msg00318.html

8 years agodlopen: Add dot to filename if no slash is present
Corinna Vinschen [Wed, 1 Jun 2016 11:12:08 +0000 (13:12 +0200)]
dlopen: Add dot to filename if no slash is present

We're appending a dot to the filename before calling LoadLibrary to
override ".dll" automagic.  This only worked for paths, not for simple
filenames since it required a slash in the pathname.  Fix that.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This page took 0.065076 seconds and 5 git commands to generate.