Wed, 12 Nov 2008 05:14:03 +0000
merge of '77693555855fe9cd3215414f79964dba346cc5fa'
and '19a87e98e5857ad0289f2c760d460f7f1dbbb42d'
| 3776 | 1 | /* |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
2 | * gaim |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
3 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
4 | * File: libc_interface.h |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
5 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
6 | * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
7 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
11 | * (at your option) any later version. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
12 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
16 | * GNU General Public License for more details. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
17 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
5113
diff
changeset
|
21 | * |
| 3776 | 22 | */ |
| 23 | #ifndef _LIBC_INTERFACE_H_ | |
| 24 | #define _LIBC_INTERFACE_H_ | |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
25 | #include <winsock2.h> |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
26 | #include <ws2tcpip.h> |
|
4714
08b54a8f301f
[gaim-migrate @ 5025]
Herman Bloggs <herman@bluedigits.com>
parents:
4373
diff
changeset
|
27 | #include <io.h> |
| 3776 | 28 | #include <errno.h> |
| 29 | #include "libc_internal.h" | |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10214
diff
changeset
|
30 | #include <glib.h> |
| 3776 | 31 | |
| 32 | /* sys/socket.h */ | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
33 | int wgaim_socket(int namespace, int style, int protocol); |
| 3776 | 34 | #define socket( namespace, style, protocol ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
35 | wgaim_socket( namespace, style, protocol ) |
| 3776 | 36 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
37 | int wgaim_connect(int socket, struct sockaddr *addr, u_long length); |
| 3776 | 38 | #define connect( socket, addr, length ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
39 | wgaim_connect( socket, addr, length ) |
| 3776 | 40 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
41 | int wgaim_getsockopt(int socket, int level, int optname, void *optval, socklen_t *optlenptr); |
| 3776 | 42 | #define getsockopt( args... ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
43 | wgaim_getsockopt( args ) |
| 3776 | 44 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
45 | int wgaim_setsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen); |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
46 | #define setsockopt( args... ) \ |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
47 | wgaim_setsockopt( args ) |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
48 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
49 | int wgaim_getsockname (int socket, struct sockaddr *addr, socklen_t *lenptr); |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
50 | #define getsockname( socket, addr, lenptr ) \ |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
51 | wgaim_getsockname( socket, addr, lenptr ) |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
52 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
53 | int wgaim_bind(int socket, struct sockaddr *addr, socklen_t length); |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
54 | #define bind( socket, addr, length ) \ |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
55 | wgaim_bind( socket, addr, length ) |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
56 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
57 | int wgaim_listen(int socket, unsigned int n); |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
58 | #define listen( socket, n ) \ |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
59 | wgaim_listen( socket, n ) |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
60 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
61 | int wgaim_sendto(int socket, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); |
|
11431
60971f504319
[gaim-migrate @ 13668]
Daniel Atallah <datallah@pidgin.im>
parents:
10601
diff
changeset
|
62 | #define sendto(socket, buf, len, flags, to, tolen) \ |
|
60971f504319
[gaim-migrate @ 13668]
Daniel Atallah <datallah@pidgin.im>
parents:
10601
diff
changeset
|
63 | wgaim_sendto(socket, buf, len, flags, to, tolen) |
|
60971f504319
[gaim-migrate @ 13668]
Daniel Atallah <datallah@pidgin.im>
parents:
10601
diff
changeset
|
64 | |
| 3776 | 65 | /* sys/ioctl.h */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
66 | int wgaim_ioctl(int fd, int command, void* opt); |
| 3776 | 67 | #define ioctl( fd, command, val ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
68 | wgaim_ioctl( fd, command, val ) |
| 3776 | 69 | |
| 70 | /* fcntl.h */ | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
71 | int wgaim_fcntl(int socket, int command, int val); |
| 3776 | 72 | #define fcntl( fd, command, val ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
73 | wgaim_fcntl( fd, command, val ) |
| 3776 | 74 | |
| 75 | /* arpa/inet.h */ | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
76 | int wgaim_inet_aton(const char *name, struct in_addr *addr); |
| 3776 | 77 | #define inet_aton( name, addr ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
78 | wgaim_inet_aton( name, addr ) |
| 3776 | 79 | |
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
80 | const char * |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
81 | wgaim_inet_ntop (int af, const void *src, char *dst, socklen_t cnt); |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
82 | #define inet_ntop( af, src, dst, cnt ) \ |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
83 | wgaim_inet_ntop( af, src, dst, cnt ) |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
84 | |
| 3776 | 85 | /* netdb.h */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
86 | struct hostent* wgaim_gethostbyname(const char *name); |
| 3776 | 87 | #define gethostbyname( name ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
88 | wgaim_gethostbyname( name ) |
| 3776 | 89 | |
|
5084
21d2e7ec99ce
[gaim-migrate @ 5439]
Herman Bloggs <herman@bluedigits.com>
parents:
4905
diff
changeset
|
90 | /* netinet/in.h */ |
|
21d2e7ec99ce
[gaim-migrate @ 5439]
Herman Bloggs <herman@bluedigits.com>
parents:
4905
diff
changeset
|
91 | #define ntohl( netlong ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
92 | (unsigned int)ntohl( netlong ) |
|
5084
21d2e7ec99ce
[gaim-migrate @ 5439]
Herman Bloggs <herman@bluedigits.com>
parents:
4905
diff
changeset
|
93 | |
| 3776 | 94 | /* string.h */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
95 | char* wgaim_strerror( int errornum ); |
| 3776 | 96 | #define hstrerror( herror ) \ |
| 97 | wgaim_strerror( errno ) | |
| 98 | #define strerror( errornum ) \ | |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
99 | wgaim_strerror( errornum ) |
| 3776 | 100 | |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
101 | #define bzero( dest, size ) memset( dest, 0, size ) |
| 3776 | 102 | |
| 103 | /* unistd.h */ | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
104 | int wgaim_read(int fd, void *buf, unsigned int size); |
| 3776 | 105 | #define read( fd, buf, buflen ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
106 | wgaim_read( fd, buf, buflen ) |
| 3776 | 107 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
108 | int wgaim_write(int fd, const void *buf, unsigned int size); |
| 3776 | 109 | #define write( socket, buf, buflen ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
110 | wgaim_write( socket, buf, buflen ) |
| 3776 | 111 | |
|
12749
704b51d5007a
[gaim-migrate @ 15096]
Daniel Atallah <datallah@pidgin.im>
parents:
12497
diff
changeset
|
112 | int wgaim_recv(int fd, void *buf, size_t len, int flags); |
|
704b51d5007a
[gaim-migrate @ 15096]
Daniel Atallah <datallah@pidgin.im>
parents:
12497
diff
changeset
|
113 | #define recv(fd, buf, len, flags) \ |
|
704b51d5007a
[gaim-migrate @ 15096]
Daniel Atallah <datallah@pidgin.im>
parents:
12497
diff
changeset
|
114 | wgaim_recv(fd, buf, len, flags) |
|
704b51d5007a
[gaim-migrate @ 15096]
Daniel Atallah <datallah@pidgin.im>
parents:
12497
diff
changeset
|
115 | |
|
13780
f642a0729daa
[gaim-migrate @ 16190]
Daniel Atallah <datallah@pidgin.im>
parents:
13334
diff
changeset
|
116 | int wgaim_send(int fd, const void *buf, unsigned int size, int flags); |
|
f642a0729daa
[gaim-migrate @ 16190]
Daniel Atallah <datallah@pidgin.im>
parents:
13334
diff
changeset
|
117 | #define send(socket, buf, buflen, flags) \ |
|
f642a0729daa
[gaim-migrate @ 16190]
Daniel Atallah <datallah@pidgin.im>
parents:
13334
diff
changeset
|
118 | wgaim_send(socket, buf, buflen, flags) |
|
f642a0729daa
[gaim-migrate @ 16190]
Daniel Atallah <datallah@pidgin.im>
parents:
13334
diff
changeset
|
119 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
120 | int wgaim_close(int fd); |
| 3776 | 121 | #define close( fd ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
122 | wgaim_close( fd ) |
| 3776 | 123 | |
|
14974
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
124 | #if !GLIB_CHECK_VERSION(2,8,0) |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
125 | int wgaim_g_access(const gchar *filename, int mode); |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
126 | #define g_access( filename, mode) \ |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
127 | wgaim_g_access( filename, mode ) |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
128 | #endif |
|
8180f0f2e20c
[gaim-migrate @ 17684]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
129 | |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
8563
diff
changeset
|
130 | #ifndef sleep |
| 3776 | 131 | #define sleep(x) Sleep((x)*1000) |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
8563
diff
changeset
|
132 | #endif |
| 3776 | 133 | |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
134 | int wgaim_gethostname(char *name, size_t size); |
|
8244
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
135 | #define gethostname( name, size ) \ |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
136 | wgaim_gethostname( name, size ) |
|
014ff38feea9
[gaim-migrate @ 8967]
Herman Bloggs <herman@bluedigits.com>
parents:
7242
diff
changeset
|
137 | |
| 3776 | 138 | /* sys/time.h */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
139 | int wgaim_gettimeofday(struct timeval *p, struct timezone *z); |
| 3776 | 140 | #define gettimeofday( timeval, timezone ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
141 | wgaim_gettimeofday( timeval, timezone ) |
| 3776 | 142 | |
| 143 | /* stdio.h */ | |
| 144 | #define snprintf _snprintf | |
| 145 | #define vsnprintf _vsnprintf | |
| 146 | ||
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
147 | int wgaim_rename(const char *oldname, const char *newname); |
|
4905
1464e05926f0
[gaim-migrate @ 5239]
Herman Bloggs <herman@bluedigits.com>
parents:
4714
diff
changeset
|
148 | #define rename( oldname, newname ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
149 | wgaim_rename( oldname, newname ) |
|
10601
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
150 | |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
151 | #if GLIB_CHECK_VERSION(2,6,0) |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
152 | #ifdef g_rename |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
153 | # undef g_rename |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10214
diff
changeset
|
154 | #endif |
|
10601
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
155 | /* This is necessary because we want rename on win32 to be able to overwrite an existing file, it is done in internal.h if GLib < 2.6*/ |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
156 | #define g_rename(oldname, newname) \ |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
157 | wgaim_rename(oldname, newname) |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
158 | #endif |
|
84245a6eba0e
[gaim-migrate @ 12028]
Daniel Atallah <datallah@pidgin.im>
parents:
10589
diff
changeset
|
159 | |
|
4905
1464e05926f0
[gaim-migrate @ 5239]
Herman Bloggs <herman@bluedigits.com>
parents:
4714
diff
changeset
|
160 | |
| 3776 | 161 | /* sys/stat.h */ |
|
10589
4e10236e06d4
[gaim-migrate @ 11994]
Daniel Atallah <datallah@pidgin.im>
parents:
10214
diff
changeset
|
162 | |
|
4373
fb2ae2f5edd3
[gaim-migrate @ 4639]
Herman Bloggs <herman@bluedigits.com>
parents:
4193
diff
changeset
|
163 | #define fchmod(a,b) |
| 3776 | 164 | |
|
5113
8e545faf3d80
[gaim-migrate @ 5476]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
165 | /* time.h */ |
|
12497
a17568773be3
[gaim-migrate @ 14809]
Richard Laager <rlaager@pidgin.im>
parents:
11431
diff
changeset
|
166 | struct tm *wgaim_localtime_r(const time_t *time, struct tm *resultp); |
|
5113
8e545faf3d80
[gaim-migrate @ 5476]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
167 | #define localtime_r( time, resultp ) \ |
|
7242
d91a60e1095c
[gaim-migrate @ 7817]
Herman Bloggs <herman@bluedigits.com>
parents:
5913
diff
changeset
|
168 | wgaim_localtime_r( time, resultp ) |
|
5113
8e545faf3d80
[gaim-migrate @ 5476]
Herman Bloggs <herman@bluedigits.com>
parents:
5084
diff
changeset
|
169 | |
|
13334
d0d48650f114
[gaim-migrate @ 15703]
Richard Laager <rlaager@pidgin.im>
parents:
12749
diff
changeset
|
170 | /* helper for gaim_utf8_strftime() by way of gaim_internal_strftime() in src/util.c */ |
|
d0d48650f114
[gaim-migrate @ 15703]
Richard Laager <rlaager@pidgin.im>
parents:
12749
diff
changeset
|
171 | const char *wgaim_get_timezone_abbreviation(const struct tm *tm); |
|
d0d48650f114
[gaim-migrate @ 15703]
Richard Laager <rlaager@pidgin.im>
parents:
12749
diff
changeset
|
172 | |
| 3776 | 173 | #endif /* _LIBC_INTERFACE_H_ */ |