comparison libpurple/win32/libc_internal.h @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 32c366eeeb99
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 /*
2 * gaim
3 *
4 * File: libc_internal.h
5 *
6 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23 #ifndef _LIBC_INTERNAL_
24 #define _LIBC_INTERNAL_
25
26 /* fcntl.h */
27 #define F_SETFL 1
28 #define O_NONBLOCK 1
29
30 /* ioctl.h */
31 #define SIOCGIFCONF 0x8912 /* get iface list */
32
33 /* net/if.h */
34 struct ifreq
35 {
36 union
37 {
38 char ifrn_name[6]; /* Interface name, e.g. "en0". */
39 } ifr_ifrn;
40
41 union
42 {
43 struct sockaddr ifru_addr;
44 #if 0
45 struct sockaddr ifru_dstaddr;
46 struct sockaddr ifru_broadaddr;
47 struct sockaddr ifru_netmask;
48 struct sockaddr ifru_hwaddr;
49 short int ifru_flags;
50 int ifru_ivalue;
51 int ifru_mtu;
52 #endif
53 char *ifru_data;
54 } ifr_ifru;
55 };
56 # define ifr_name ifr_ifrn.ifrn_name /* interface name */
57 # define ifr_addr ifr_ifru.ifru_addr /* address */
58 #if 0
59 # define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */
60 # define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-p lnk */
61 # define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */
62 # define ifr_netmask ifr_ifru.ifru_netmask /* interface net mask */
63 # define ifr_flags ifr_ifru.ifru_flags /* flags */
64 # define ifr_metric ifr_ifru.ifru_ivalue /* metric */
65 # define ifr_mtu ifr_ifru.ifru_mtu /* mtu */
66 #endif
67 # define ifr_data ifr_ifru.ifru_data /* for use by interface */
68 #if 0
69 # define ifr_ifindex ifr_ifru.ifru_ivalue /* interface index */
70 # define ifr_bandwidth ifr_ifru.ifru_ivalue /* link bandwidth */
71 # define ifr_qlen ifr_ifru.ifru_ivalue /* queue length */
72 #endif
73
74
75 struct ifconf
76 {
77 int ifc_len; /* Size of buffer. */
78 union
79 {
80 char *ifcu_buf;
81 struct ifreq *ifcu_req;
82 } ifc_ifcu;
83 };
84 # define ifc_buf ifc_ifcu.ifcu_buf /* Buffer address. */
85 # define ifc_req ifc_ifcu.ifcu_req /* Array of structures. */
86
87 /* sys/time.h */
88 struct timezone {
89 int tz_minuteswest;
90 int tz_dsttime;
91 };
92
93
94 #endif /* _LIBC_INTERNAL_ */