]> arthur.barton.de Git - netatalk.git/blob - include/atalk/compat.h
Merge master
[netatalk.git] / include / atalk / compat.h
1 /*
2  * Copyright (c) 1996 Regents of The University of Michigan.
3  * All Rights Reserved.  See COPYRIGHT.
4  *
5  * NOTE: SunOS 4 and ultrix are pretty much the only reason why there
6  * are checks for EINTR everywhere. 
7  */
8
9 #include <signal.h>
10
11 #include "config.h"
12
13 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
14 extern char *getusershell (void);
15 #endif
16
17 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
18 # include <stdio.h>
19 # include <stdarg.h>
20 # ifndef HAVE_SNPRINTF
21 int snprintf (char *str,size_t count,const char *fmt,...);
22 # endif
23
24 # ifndef HAVE_VSNPRINTF
25 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
26 # endif
27 #endif
28
29 /* OpenBSD */
30 #if defined(__OpenBSD__) && !defined(ENOTSUP)
31 #define ENOTSUP EOPNOTSUPP
32 #endif
33
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);
38 #endif
39
40 #ifndef HAVE_FLOCK
41 extern int flock (int, int);
42 #endif
43
44 #ifndef HAVE_INET_ATON
45 struct in_addr;
46 extern int inet_aton(const char *, struct in_addr *);
47 #endif
48
49 #ifndef HAVE_STRNLEN
50 extern size_t strnlen(const char *s, size_t n);
51 #endif
52
53 #ifndef HAVE_STRLCPY
54 extern size_t strlcpy (char *, const char *, size_t);
55 #endif
56  
57 #ifndef HAVE_STRLCAT
58 extern size_t strlcat (char *, const char *, size_t);
59 #endif
60