* 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.
This commit is contained in:
Christopher Faylor
2001-04-03 02:53:25 +00:00
parent be61cf4d0c
commit c90e420d91
8 changed files with 57 additions and 28 deletions

View File

@@ -200,7 +200,10 @@ _mcleanup()
proffile = "gmon.out";
}
#else
proffile = "gmon.out";
{
char gmon_out[] = "gmon.out";
proffile = gmon_out;
}
#endif
fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, 0666);