* 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:
@@ -44,9 +44,9 @@ public:
|
||||
int lmicrosec;
|
||||
int execing;
|
||||
strace() : version(1) {}
|
||||
void prntf (unsigned, const char *func, const char *, ...);
|
||||
void vprntf (unsigned, const char *func, const char *, va_list ap);
|
||||
void wm (int message, int word, int lon);
|
||||
void prntf (unsigned, const char *func, const char *, ...) /*__attribute__ ((regparm(3)))*/;
|
||||
void vprntf (unsigned, const char *func, const char *, va_list ap) /*__attribute__ ((regparm(3)))*/;
|
||||
void wm (int message, int word, int lon) __attribute__ ((regparm(3)));
|
||||
};
|
||||
|
||||
extern strace strace;
|
||||
|
Reference in New Issue
Block a user