diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-03 02:53:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-03 02:53:25 +0000 |
commit | c90e420d91e48a2d1e300042b3c02ab3f9690835 (patch) | |
tree | 5311093e3f1b32cae0d4c1e1c62b2d48ac20778d /winsup/cygwin/winsup.h | |
parent | be61cf4d0ce1a34c555b96f42809c3f504bafeab (diff) | |
download | cygnal-c90e420d91e48a2d1e300042b3c02ab3f9690835.tar.gz cygnal-c90e420d91e48a2d1e300042b3c02ab3f9690835.tar.bz2 cygnal-c90e420d91e48a2d1e300042b3c02ab3f9690835.zip |
* 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/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 1578cdfca..c49010740 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -212,12 +212,12 @@ void __stdcall set_console_title (char *); void set_console_handler (); #define set_winsock_errno() __set_winsock_errno (__FUNCTION__, __LINE__) -void __set_winsock_errno (const char *fn, int ln); +void __set_winsock_errno (const char *fn, int ln) __attribute__ ((regparm(2))); /* Printf type functions */ extern "C" void __api_fatal (const char *, ...) __attribute__ ((noreturn)); -extern "C" int __small_sprintf (char *dst, const char *fmt, ...); -extern "C" int __small_vsprintf (char *dst, const char *fmt, va_list ap); +extern "C" int __small_sprintf (char *dst, const char *fmt, ...) /*__attribute__ ((regparm (2)))*/; +extern "C" int __small_vsprintf (char *dst, const char *fmt, va_list ap) /*__attribute__ ((regparm (3)))*/; /**************************** Exports ******************************/ |