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.
13 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
14 extern char *getusershell (void);
17 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
20 # ifndef HAVE_SNPRINTF
21 int snprintf (char *str,size_t count,const char *fmt,...);
24 # ifndef HAVE_VSNPRINTF
25 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
30 #if defined(__OpenBSD__) && !defined(ENOTSUP)
31 #define ENOTSUP EOPNOTSUPP
34 #if !defined(HAVE_PSELECT) || defined(__OpenBSD__)
35 extern int pselect(int, fd_set * restrict, fd_set * restrict,
36 fd_set * restrict, const struct timespec * restrict,
37 const sigset_t * restrict);
41 extern int flock (int, int);
44 #ifndef HAVE_INET_ATON
46 extern int inet_aton(const char *, struct in_addr *);
50 extern size_t strnlen(const char *s, size_t n);
54 extern size_t strlcpy (char *, const char *, size_t);
58 extern size_t strlcat (char *, const char *, size_t);