2 * Wine porting definitions
6 #ifndef __WINE_WINE_PORT_H
7 #define __WINE_WINE_PORT_H
11 #include <sys/types.h>
16 #if !defined(HAVE_GETNETBYADDR) && !defined(HAVE_GETNETBYNAME)
23 #endif /* !defined(HAVE_GETNETBYADDR) && !defined(HAVE_GETNETBYNAME) */
25 #if !defined(HAVE_GETPROTOBYNAME) && !defined(HAVE_GETPROTOBYNUMBER)
31 #endif /* !defined(HAVE_GETPROTOBYNAME) && !defined(HAVE_GETPROTOBYNUMBER) */
35 # define STATFS_HAS_BFREE
37 long f_bsize
; /* block_size */
38 long f_blocks
; /* total_blocks */
39 long f_bfree
; /* free_blocks */
41 # else /* defined(__BEOS__) */
43 # endif /* defined(__BEOS__) */
44 #endif /* !defined(HAVE_STATFS) */
48 #if !defined(HAVE_CLONE) && defined(linux)
49 int clone(int (*fn
)(void *arg
), void *stack
, int flags
, void *arg
);
50 #endif /* !defined(HAVE_CLONE) && defined(linux) */
52 #ifndef HAVE_GETNETBYADDR
53 struct netent
*getnetbyaddr(unsigned long net
, int type
);
54 #endif /* defined(HAVE_GETNETBYNAME) */
56 #ifndef HAVE_GETNETBYNAME
57 struct netent
*getnetbyname(const char *name
);
58 #endif /* defined(HAVE_GETNETBYNAME) */
60 #ifndef HAVE_GETPROTOBYNAME
61 struct protoent
*getprotobyname(const char *name
);
62 #endif /* !defined(HAVE_GETPROTOBYNAME) */
64 #ifndef HAVE_GETPROTOBYNUMBER
65 struct protoent
*getprotobynumber(int proto
);
66 #endif /* !defined(HAVE_GETPROTOBYNUMBER) */
68 #ifndef HAVE_GETSERVBYPORT
69 struct servent
*getservbyport(int port
, const char *proto
);
70 #endif /* !defined(HAVE_GETSERVBYPORT) */
72 #ifndef HAVE_GETSOCKOPT
73 int getsockopt(int socket
, int level
, int option_name
, void *option_value
, size_t *option_len
);
74 #endif /* !defined(HAVE_GETSOCKOPT) */
77 void *memmove(void *dest
, const void *src
, unsigned int len
);
78 #endif /* !defined(HAVE_MEMMOVE) */
80 #ifndef HAVE_INET_NETWORK
81 unsigned long inet_network(const char *cp
);
82 #endif /* !defined(HAVE_INET_NETWORK) */
84 #ifndef HAVE_SETTIMEOFDAY
85 int settimeofday(struct timeval
*tp
, void *reserved
);
86 #endif /* !defined(HAVE_SETTIMEOFDAY) */
89 int statfs(const char *name
, struct statfs
*info
);
90 #endif /* !defined(HAVE_STATFS) */
92 #ifndef HAVE_STRNCASECMP
93 int strncasecmp(const char *str1
, const char *str2
, size_t n
);
94 #endif /* !defined(HAVE_STRNCASECMP) */
97 const char *strerror(int err
);
98 #endif /* !defined(HAVE_STRERROR) */
100 #ifndef HAVE_STRCASECMP
101 int strcasecmp(const char *str1
, const char *str2
);
102 #endif /* !defined(HAVE_STRCASECMP) */
105 int usleep (unsigned int useconds
);
106 #endif /* !defined(HAVE_USLEEP) */
108 #endif /* !defined(__WINE_WINE_PORT_H) */