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-08-22 21:50:22 +0400
committerChristopher Faylor <me@cgf.cx>2001-08-22 21:50:22 +0400
commit0a047e8f321216f24140ee18135bbe9ea4461f0a (patch)
treee8bc85a9d7a597f57dccb8ec64e0ff8a479c2249 /winsup/cygwin/winsup.h
parent1fdc8df95d7723d278daf4c3ce2f856d8d1db276 (diff)
* 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.h6
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)))*/;