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 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
15 extern char *getusershell (void);
18 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
21 # ifndef HAVE_SNPRINTF
22 int snprintf (char *str,size_t count,const char *fmt,...);
25 # ifndef HAVE_VSNPRINTF
26 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
31 #if defined(__OpenBSD__) && !defined(ENOTSUP)
32 #define ENOTSUP EOPNOTSUPP
35 #if !defined(HAVE_PSELECT) || defined(__OpenBSD__)
36 extern int pselect(int, fd_set * restrict, fd_set * restrict,
37 fd_set * restrict, const struct timespec * restrict,
38 const sigset_t * restrict);
42 extern int flock (int, int);
45 #ifndef HAVE_INET_ATON
47 extern int inet_aton(const char *, struct in_addr *);
51 extern size_t strnlen(const char *s, size_t n);
55 extern size_t strlcpy (char *, const char *, size_t);
59 extern size_t strlcat (char *, const char *, size_t);