Moved LCTYPE, GetLocaleInfo, NUMBERFMT, CURRENCYFMT and the related
[wine] / include / wine / port.h
1 /*
2  * Wine porting definitions
3  *
4  */
5
6 #ifndef __WINE_WINE_PORT_H
7 #define __WINE_WINE_PORT_H
8
9 #include "config.h"
10
11 #include <sys/types.h>
12 #include <sys/time.h>
13
14 /* Types */
15
16 #if !defined(HAVE_GETNETBYADDR) && !defined(HAVE_GETNETBYNAME)
17 struct netent {
18   char         *n_name;
19   char        **n_aliases;
20   int           n_addrtype;
21   unsigned long n_net;
22 };
23 #endif /* !defined(HAVE_GETNETBYADDR) && !defined(HAVE_GETNETBYNAME) */
24
25 #if !defined(HAVE_GETPROTOBYNAME) && !defined(HAVE_GETPROTOBYNUMBER)
26 struct  protoent {
27   char  *p_name;
28   char **p_aliases;
29   int    p_proto;
30 };
31 #endif /* !defined(HAVE_GETPROTOBYNAME) && !defined(HAVE_GETPROTOBYNUMBER) */
32
33 #ifndef HAVE_STATFS
34 # ifdef __BEOS__
35 #  define STATFS_HAS_BFREE
36 struct statfs {
37   long   f_bsize;  /* block_size */
38   long   f_blocks; /* total_blocks */
39   long   f_bfree;  /* free_blocks */
40 };
41 # else /* defined(__BEOS__) */
42 struct statfs;
43 # endif /* defined(__BEOS__) */
44 #endif /* !defined(HAVE_STATFS) */
45
46 /* Functions */
47
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) */
51
52 #ifndef HAVE_GETNETBYADDR
53 struct netent *getnetbyaddr(unsigned long net, int type);
54 #endif /* defined(HAVE_GETNETBYNAME) */
55
56 #ifndef HAVE_GETNETBYNAME
57 struct netent *getnetbyname(const char *name);
58 #endif /* defined(HAVE_GETNETBYNAME) */
59
60 #ifndef HAVE_GETPROTOBYNAME
61 struct protoent *getprotobyname(const char *name);
62 #endif /* !defined(HAVE_GETPROTOBYNAME) */
63
64 #ifndef HAVE_GETPROTOBYNUMBER
65 struct protoent *getprotobynumber(int proto);
66 #endif /* !defined(HAVE_GETPROTOBYNUMBER) */
67
68 #ifndef HAVE_GETSERVBYPORT
69 struct servent *getservbyport(int port, const char *proto);
70 #endif /* !defined(HAVE_GETSERVBYPORT) */
71
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) */
75
76 #ifndef HAVE_MEMMOVE
77 void *memmove(void *dest, const void *src, unsigned int len);
78 #endif /* !defined(HAVE_MEMMOVE) */
79
80 #ifndef HAVE_INET_NETWORK
81 unsigned long inet_network(const char *cp);
82 #endif /* !defined(HAVE_INET_NETWORK) */
83
84 #ifndef HAVE_SETTIMEOFDAY
85 int settimeofday(struct timeval *tp, void *reserved);
86 #endif /* !defined(HAVE_SETTIMEOFDAY) */
87
88 #ifndef HAVE_STATFS
89 int statfs(const char *name, struct statfs *info);
90 #endif /* !defined(HAVE_STATFS) */
91
92 #ifndef HAVE_STRNCASECMP
93 int strncasecmp(const char *str1, const char *str2, size_t n);
94 #endif /* !defined(HAVE_STRNCASECMP) */
95
96 #ifndef HAVE_STRERROR
97 const char *strerror(int err);
98 #endif /* !defined(HAVE_STRERROR) */
99
100 #ifndef HAVE_STRCASECMP
101 int strcasecmp(const char *str1, const char *str2);
102 #endif /* !defined(HAVE_STRCASECMP) */
103
104 #ifndef HAVE_USLEEP
105 int usleep (unsigned int useconds);
106 #endif /* !defined(HAVE_USLEEP) */
107
108 #endif /* !defined(__WINE_WINE_PORT_H) */