1 /* woutsup.h: for Cygwin code compiled outside the DLL (i.e. cygserver).
3 Copyright 2002, 2003, 2007 Red Hat, Inc.
5 This file is part of Cygwin.
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
13 #ifdef __INSIDE_CYGWIN__
14 #error "woutsup.h is not for code being compiled inside the dll"
18 #define _WIN32_WINNT 0x0500
21 #if _WIN32_WINNT < 0x0500
23 #define _WIN32_WINNT 0x0500
26 #define WIN32_LEAN_AND_MEAN 1
43 #include "bsd_helper.h"
45 #include "bsd_mutex.h"
47 /* The one function we use from winuser.h most of the time */
48 extern "C" DWORD WINAPI GetLastError (void);
50 extern int cygserver_running;
52 #define SIGHANDLE(SIG) \
55 struct sigaction act; \
57 act.sa_handler = &handle_signal; \
61 if (sigaction (SIG, &act, NULL) == -1) \
63 panic ("failed to install handler for " #SIG ": %s", \
69 #define debug_printf(f,...) debug((f),##__VA_ARGS__)
70 #define syscall_printf(f,...) log(LOG_ERR,(f),##__VA_ARGS__)
71 #define system_printf(f,...) log(LOG_ERR,(f),##__VA_ARGS__)