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.
14
* SunOS 5 (solaris) has SA_RESTART, but no SA_INTERRUPT.
17
#define SA_INTERRUPT 0
20
#include <sys/types.h>
21
#include <netinet/in.h>
22
#include <arpa/inet.h>
24
extern int flock __P((int, int));
25
extern int inet_aton __P((const char *, struct in_addr *));
30
* SunOS 4 has SA_INTERRUPT, but no SA_RESTART.
41
* Linux has SA_RESTART, but no SA_INTERRUPT. Note that the documentation
42
* seems to be wrong on several counts. First, SA_ONESHOT is not the default,
43
* and second, SA_RESTART does what you'd expect (the same as svr4) and has
44
* nothing to do with SA_ONESHOT.
47
#define SA_INTERRUPT 0
48
#endif /* SA_INTERRUPT */
52
#include <sys/types.h>
53
#include <netinet/in.h>
54
#include <arpa/inet.h>
57
* Here's the really confusing one... Under Ultrix, sigaction() works just
58
* like sigvec(), except that SV_INTERRUPT is always set. Hence, there is
59
* no SA_INTERRUPT flag. Unfortunately, there's also no SA_RESTART, so
60
* there's no way to suppress the interrupt. Sigh.
63
#define SA_INTERRUPT 0
69
extern char *strdup __P((const char *));
70
extern int inet_aton __P((const char *, struct in_addr *));
75
#define SA_INTERRUPT 0
79
#if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
80
extern char *getusershell __P((void));
83
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
89
int snprintf (char *str,size_t count,const char *fmt,...);
92
#ifndef HAVE_VSNPRINTF
93
int vsnprintf(char *str, size_t count, const char *fmt, va_list args);