diff options
author | Christopher Faylor <me@cgf.cx> | 2001-08-22 17:50:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-08-22 17:50:22 +0000 |
commit | 0a047e8f321216f24140ee18135bbe9ea4461f0a (patch) | |
tree | e8bc85a9d7a597f57dccb8ec64e0ff8a479c2249 /winsup/cygwin/winsup.h | |
parent | 1fdc8df95d7723d278daf4c3ce2f856d8d1db276 (diff) | |
download | cygnal-0a047e8f321216f24140ee18135bbe9ea4461f0a.tar.gz cygnal-0a047e8f321216f24140ee18135bbe9ea4461f0a.tar.bz2 cygnal-0a047e8f321216f24140ee18135bbe9ea4461f0a.zip |
* smallprint.c (console_printf): New function.
* dcrt0.cc (dll_crt0_1): Use console_printf for debugging output.
* debug.cc (debug_mark_closed): New function.
(close_handle): Use debug_mark_closed.
* debug.h: Declare new functions.
* dtable.cc (dtable::build_fhandler): Remove unneeded extern.
* spawn.cc: Cosmetic changes.
* winsup.h: Define NO_COPY for C files, too. Declare a global.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index d0b2548fc..1b73a2f52 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -24,6 +24,8 @@ details. */ # define memset __builtin_memset #endif +#define NO_COPY __attribute__((section(".data_cygwin_nocopy"))) + #ifdef __cplusplus #if !defined(__STDC_VERSION__) || __STDC_VERSION__ >= 199900L @@ -97,8 +99,6 @@ extern HANDLE title_mutex; /**************************** Convenience ******************************/ -#define NO_COPY __attribute__((section(".data_cygwin_nocopy"))) - /* Used when treating / and \ as equivalent. */ #define SLASH_P(ch) \ ({ \ @@ -204,6 +204,8 @@ int __stdcall __check_null_invalid_struct_errno (const void *s, unsigned sz) __a #define set_winsock_errno() __set_winsock_errno (__FUNCTION__, __LINE__) void __set_winsock_errno (const char *fn, int ln) __attribute__ ((regparm(2))); +extern bool wsock_started; + /* Printf type functions */ extern "C" void __api_fatal (const char *, ...) __attribute__ ((noreturn)); extern "C" int __small_sprintf (char *dst, const char *fmt, ...) /*__attribute__ ((regparm (2)))*/; |