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>2001-04-03 06:53:25 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-03 06:53:25 +0400
commitc90e420d91e48a2d1e300042b3c02ab3f9690835 (patch)
tree5311093e3f1b32cae0d4c1e1c62b2d48ac20778d /winsup/cygwin/syscalls.cc
parentbe61cf4d0ce1a34c555b96f42809c3f504bafeab (diff)
* cygrun.c (main): Fix compiler warning.
* gmon.c (_mcleanup): Ditto. * profil.c (profile_off): Ditto. * net.cc (find_winsock_errno): New function. (__set_winsock_errno): Use find_winsock_errno. (cygwin_setsockopt): Detect SO_ERROR for debugging. (cygwin_getsockopt): Ditto. Translate error when getsockopt returns SO_ERROR. * winsup.h: regparmize __set_winsock_errno. * include/sys/strace.h: Document that strace functions can't use regparm.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 6ec1e0595..79eb62f75 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1666,9 +1666,9 @@ setmode (int fd, int mode)
setmode_file = fd;
_fwalk (_REENT, setmode_helper);
- syscall_printf ("setmode (%d, %s) returns %s\n", fd,
- mode&O_TEXT ? "text" : "binary",
- res&O_TEXT ? "text" : "binary");
+ syscall_printf ("setmode (%d<%s>, %s) returns %s\n", fd, p->get_name (),
+ mode & O_TEXT ? "text" : "binary",
+ res & O_TEXT ? "text" : "binary");
return res;
}