Mercurial > pidgin.yaz
annotate libpurple/win32/libc_internal.h @ 23819:5d2a687c109f
Updated Romanian translation from Mi.u Moldovan. Fixes #6581
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 15 Aug 2008 16:10:38 +0000 |
parents | 5e6ab03225cc |
children | 1568dc7a14f8 |
rev | line source |
---|---|
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /* |
15823 | 2 * purple |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
3 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
4 * File: libc_internal.h |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
5 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
6 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
7 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * along with this program; if not, write to the Free Software |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15875
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 #ifndef _LIBC_INTERNAL_ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 #define _LIBC_INTERNAL_ |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
25 #include <glib.h> |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
26 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
27 |
22528
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
28 #ifdef __cplusplus |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
29 extern "C" { |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
30 #endif /* __cplusplus */ |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
31 |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
32 /* sys/socket.h */ |
22652
5e6ab03225cc
Patch from vladb to remove a C++ protected word ("namespace") from win32 libpurple code. Fixes #5471
Daniel Atallah <daniel.atallah@gmail.com>
parents:
22528
diff
changeset
|
33 int wpurple_socket(int domain, int style, int protocol); |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
34 int wpurple_connect(int socket, struct sockaddr *addr, u_long length); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
35 int wpurple_getsockopt(int socket, int level, int optname, void *optval, socklen_t *optlenptr); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
36 int wpurple_setsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
37 int wpurple_getsockname (int socket, struct sockaddr *addr, socklen_t *lenptr); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
38 int wpurple_bind(int socket, struct sockaddr *addr, socklen_t length); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
39 int wpurple_listen(int socket, unsigned int n); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
40 int wpurple_sendto(int socket, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
41 int wpurple_recv(int fd, void *buf, size_t len, int flags); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
42 int wpurple_send(int fd, const void *buf, unsigned int size, int flags); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
43 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
44 /* arpa/inet.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
45 int wpurple_inet_aton(const char *name, struct in_addr *addr); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
46 const char * |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
47 wpurple_inet_ntop (int af, const void *src, char *dst, socklen_t cnt); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
48 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
49 /* netdb.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
50 struct hostent* wpurple_gethostbyname(const char *name); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
51 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
52 /* string.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
53 char* wpurple_strerror( int errornum ); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
54 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
55 /* fcntl.h */ |
20347
04fe5601fedb
applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents:
19680
diff
changeset
|
56 int wpurple_fcntl(int socket, int command, ...); |
04fe5601fedb
applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents:
19680
diff
changeset
|
57 #define F_GETFL 3 |
04fe5601fedb
applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents:
19680
diff
changeset
|
58 #define F_SETFL 4 |
04fe5601fedb
applied changes from 2762c6075c0dc52a96098c5478c5bf68cfd890a3
Luke Schierer <lschiere@pidgin.im>
parents:
19680
diff
changeset
|
59 #define O_NONBLOCK 04000 |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
60 |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
61 /* sys/ioctl.h */ |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
62 #define SIOCGIFCONF 0x8912 /* get iface list */ |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
63 int wpurple_ioctl(int fd, int command, void* opt); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
64 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
65 /* net/if.h */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
66 struct ifreq |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
67 { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
68 union |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
69 { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
70 char ifrn_name[6]; /* Interface name, e.g. "en0". */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
71 } ifr_ifrn; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
72 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
73 union |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
74 { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
75 struct sockaddr ifru_addr; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
76 #if 0 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
77 struct sockaddr ifru_dstaddr; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
78 struct sockaddr ifru_broadaddr; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
79 struct sockaddr ifru_netmask; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
80 struct sockaddr ifru_hwaddr; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
81 short int ifru_flags; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
82 int ifru_ivalue; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
83 int ifru_mtu; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
84 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
85 char *ifru_data; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
86 } ifr_ifru; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
87 }; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
88 # define ifr_name ifr_ifrn.ifrn_name /* interface name */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
89 # define ifr_addr ifr_ifru.ifru_addr /* address */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
90 #if 0 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
91 # define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
92 # define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-p lnk */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
93 # define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
94 # define ifr_netmask ifr_ifru.ifru_netmask /* interface net mask */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
95 # define ifr_flags ifr_ifru.ifru_flags /* flags */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
96 # define ifr_metric ifr_ifru.ifru_ivalue /* metric */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
97 # define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
98 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
99 # define ifr_data ifr_ifru.ifru_data /* for use by interface */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
100 #if 0 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
101 # define ifr_ifindex ifr_ifru.ifru_ivalue /* interface index */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
102 # define ifr_bandwidth ifr_ifru.ifru_ivalue /* link bandwidth */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
103 # define ifr_qlen ifr_ifru.ifru_ivalue /* queue length */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
104 #endif |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
105 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
106 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
107 struct ifconf |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
108 { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
109 int ifc_len; /* Size of buffer. */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
110 union |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
111 { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
112 char *ifcu_buf; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
113 struct ifreq *ifcu_req; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
114 } ifc_ifcu; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
115 }; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
116 # define ifc_buf ifc_ifcu.ifcu_buf /* Buffer address. */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
117 # define ifc_req ifc_ifcu.ifcu_req /* Array of structures. */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
118 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
119 /* sys/time.h */ |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
120 struct timezone { |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
121 int tz_minuteswest; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
122 int tz_dsttime; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
123 }; |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
124 int wpurple_gettimeofday(struct timeval *p, struct timezone *z); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
125 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
126 /* time.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
127 struct tm *wpurple_localtime_r(const time_t *time, struct tm *resultp); |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
128 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
129 |
15875
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
130 /* unistd.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
131 int wpurple_read(int fd, void *buf, unsigned int size); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
132 int wpurple_write(int fd, const void *buf, unsigned int size); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
133 int wpurple_close(int fd); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
134 int wpurple_gethostname(char *name, size_t size); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
135 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
136 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
137 #if !GLIB_CHECK_VERSION(2,8,0) |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
138 int wpurple_g_access(const gchar *filename, int mode); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
139 #endif |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
140 |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
141 /* stdio.h */ |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
142 int wpurple_rename(const char *oldname, const char *newname); |
23367ba62f59
move internal stuff to libc_internal.h to fix warnings
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15823
diff
changeset
|
143 |
22528
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
144 #ifdef __cplusplus |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
145 } |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
146 #endif /* __cplusplus */ |
322b92e28005
Add extern "C" wrappers to win32 headers. There is also a change here that I thought I committed earlier that should provide better error messages for winsock errors.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
20347
diff
changeset
|
147 |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
148 #endif /* _LIBC_INTERNAL_ */ |