2 * Copyright (c) 1996 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
5 * NOTE: SunOS 4 and ultrix are pretty much the only reason why there
6 * are checks for EINTR everywhere.
11 #include <sys/cdefs.h>
16 * SunOS 5 (solaris) has SA_RESTART, but no SA_INTERRUPT.
19 #define SA_INTERRUPT 0
22 #include <sys/types.h>
23 #include <netinet/in.h>
24 #include <arpa/inet.h>
26 extern int flock __P((int, int));
27 extern int inet_aton __P((const char *, struct in_addr *));
32 * SunOS 4 has SA_INTERRUPT, but no SA_RESTART.
43 * Linux has SA_RESTART, but no SA_INTERRUPT. Note that the documentation
44 * seems to be wrong on several counts. First, SA_ONESHOT is not the default,
45 * and second, SA_RESTART does what you'd expect (the same as svr4) and has
46 * nothing to do with SA_ONESHOT.
49 #define SA_INTERRUPT 0
50 #endif /* SA_INTERRUPT */
54 #include <sys/types.h>
55 #include <netinet/in.h>
56 #include <arpa/inet.h>
59 * Here's the really confusing one... Under Ultrix, sigaction() works just
60 * like sigvec(), except that SV_INTERRUPT is always set. Hence, there is
61 * no SA_INTERRUPT flag. Unfortunately, there's also no SA_RESTART, so
62 * there's no way to suppress the interrupt. Sigh.
65 #define SA_INTERRUPT 0
71 extern char *strdup __P((const char *));
72 extern int inet_aton __P((const char *, struct in_addr *));
77 #define SA_INTERRUPT 0
81 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
82 extern char *getusershell __P((void));
85 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
91 int snprintf (char *str,size_t count,const char *fmt,...);
94 #ifndef HAVE_VSNPRINTF
95 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);