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>2011-12-04 01:43:27 +0400
committerChristopher Faylor <me@cgf.cx>2011-12-04 01:43:27 +0400
commitb9aa81491f62f6053bb648f20143ba9e68051622 (patch)
tree4156e112e197c9d9e4de5d0eb3ba0e51b57b9364 /winsup/cygwin/times.cc
parent8b2547826762b748ad5b2bbe4089c422c7cd312a (diff)
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format option. * smallprint.cc (__small_vsprintf): Add parsing for %R to report on return values and possible errno from syscalls. * errno.cc (errmap): Add PRIVILEGE_NOT_HELD. * fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use shorter name to reduce debuggging output. * select.cc (start_thread_pipe): Ditto. (start_thread_serial): Ditto. (start_thread_socket): Ditto. (start_thread_mailslot): Ditto. * sigproc.cc (talktome): Ditto.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 34ec1d30d..3fdab13aa 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -130,11 +130,10 @@ settimeofday (const struct timeval *tv, const struct timezone *tz)
res = -!SetSystemTime (&st);
gtod.reset ();
- syscall_printf ("%d = settimeofday (%x, %x)", res, tv, tz);
-
- if (res != 0)
+ if (res)
set_errno (EPERM);
+ syscall_printf ("%R = settimeofday(%x, %x)", res, tv, tz);
return res;
}
@@ -332,7 +331,7 @@ time (time_t * ptr)
if (ptr)
*ptr = res;
- syscall_printf ("%d = time (%x)", res, ptr);
+ syscall_printf ("%d = time(%x)", res, ptr);
return res;
}
@@ -380,8 +379,7 @@ utimens_worker (path_conv &win32, const struct timespec *tvp)
}
error:
- syscall_printf ("%d = utimes (%S, %p)",
- res, win32.get_nt_native_path (), tvp);
+ syscall_printf ("%R = utimes(%S, %p)", res, win32.get_nt_native_path (), tvp);
return res;
}
@@ -416,7 +414,7 @@ futimens (int fd, const struct timespec *tvp)
res = cfd->utimens (tvp);
else
res = utimens_worker (cfd->pc, tvp);
- syscall_printf ("%d = futimens (%d, %p)", res, fd, tvp);
+ syscall_printf ("%d = futimens(%d, %p)", res, fd, tvp);
return res;
}