Mercurial > pidgin
comparison libpurple/win32/libc_internal.h @ 15874:23367ba62f59
move internal stuff to libc_internal.h to fix warnings
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 23 Mar 2007 01:47:09 +0000 |
parents | 32c366eeeb99 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
15873:a6076bf140d2 | 15874:23367ba62f59 |
---|---|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 * | 21 * |
22 */ | 22 */ |
23 #ifndef _LIBC_INTERNAL_ | 23 #ifndef _LIBC_INTERNAL_ |
24 #define _LIBC_INTERNAL_ | 24 #define _LIBC_INTERNAL_ |
25 #include <glib.h> | |
26 | |
27 | |
28 /* sys/socket.h */ | |
29 int wpurple_socket(int namespace, int style, int protocol); | |
30 int wpurple_connect(int socket, struct sockaddr *addr, u_long length); | |
31 int wpurple_getsockopt(int socket, int level, int optname, void *optval, socklen_t *optlenptr); | |
32 int wpurple_setsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen); | |
33 int wpurple_getsockname (int socket, struct sockaddr *addr, socklen_t *lenptr); | |
34 int wpurple_bind(int socket, struct sockaddr *addr, socklen_t length); | |
35 int wpurple_listen(int socket, unsigned int n); | |
36 int wpurple_sendto(int socket, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); | |
37 int wpurple_recv(int fd, void *buf, size_t len, int flags); | |
38 int wpurple_send(int fd, const void *buf, unsigned int size, int flags); | |
39 | |
40 /* arpa/inet.h */ | |
41 int wpurple_inet_aton(const char *name, struct in_addr *addr); | |
42 const char * | |
43 wpurple_inet_ntop (int af, const void *src, char *dst, socklen_t cnt); | |
44 | |
45 /* netdb.h */ | |
46 struct hostent* wpurple_gethostbyname(const char *name); | |
47 | |
48 /* string.h */ | |
49 char* wpurple_strerror( int errornum ); | |
25 | 50 |
26 /* fcntl.h */ | 51 /* fcntl.h */ |
52 int wpurple_fcntl(int socket, int command, int val); | |
27 #define F_SETFL 1 | 53 #define F_SETFL 1 |
28 #define O_NONBLOCK 1 | 54 #define O_NONBLOCK 1 |
29 | 55 |
30 /* ioctl.h */ | 56 /* sys/ioctl.h */ |
31 #define SIOCGIFCONF 0x8912 /* get iface list */ | 57 #define SIOCGIFCONF 0x8912 /* get iface list */ |
58 int wpurple_ioctl(int fd, int command, void* opt); | |
32 | 59 |
33 /* net/if.h */ | 60 /* net/if.h */ |
34 struct ifreq | 61 struct ifreq |
35 { | 62 { |
36 union | 63 union |
87 /* sys/time.h */ | 114 /* sys/time.h */ |
88 struct timezone { | 115 struct timezone { |
89 int tz_minuteswest; | 116 int tz_minuteswest; |
90 int tz_dsttime; | 117 int tz_dsttime; |
91 }; | 118 }; |
119 int wpurple_gettimeofday(struct timeval *p, struct timezone *z); | |
120 | |
121 /* time.h */ | |
122 struct tm *wpurple_localtime_r(const time_t *time, struct tm *resultp); | |
92 | 123 |
93 | 124 |
125 /* unistd.h */ | |
126 int wpurple_read(int fd, void *buf, unsigned int size); | |
127 int wpurple_write(int fd, const void *buf, unsigned int size); | |
128 int wpurple_close(int fd); | |
129 int wpurple_gethostname(char *name, size_t size); | |
130 | |
131 | |
132 #if !GLIB_CHECK_VERSION(2,8,0) | |
133 int wpurple_g_access(const gchar *filename, int mode); | |
134 #endif | |
135 | |
136 /* stdio.h */ | |
137 int wpurple_rename(const char *oldname, const char *newname); | |
138 | |
94 #endif /* _LIBC_INTERNAL_ */ | 139 #endif /* _LIBC_INTERNAL_ */ |