Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-08-04 08:04:46 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-04 08:04:46 +0400
commit91892f50d9f2582c92ebe833fd39b65252ca3eae (patch)
tree0e8e84acbadc2b2ea57bafb606db642f0f083f1a /winsup/cygwin/syscalls.cc
parente5dd88116a080a254c30a8949ddc0b44063e719b (diff)
* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL
since we are already bounds checked by default. * thread.cc (ResourceLocks::Lock): Streamline this function since it is called a lot. (ReleaseResourceLock): Ditto.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index ed20df418..5698a9b72 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -391,7 +391,7 @@ _open (const char *unix_path, int flags, ...)
syscall_printf ("open (%s, %p)", unix_path, flags);
if (!check_null_empty_path_errno(unix_path))
{
- SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," open ");
+ SetResourceLock(LOCK_FD_LIST, WRITE_LOCK|READ_LOCK, " open ");
/* check for optional mode argument */
va_start (ap, flags);