Changeset 331 for EcnlProtoTool/trunk/musl-1.1.18
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/musl-1.1.18
- Files:
-
- 189 added
- 2 deleted
- 24 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/musl-1.1.18/include/arpa/inet.h
r321 r331 9 9 #include <netinet/in.h> 10 10 11 //uint32_t htonl(uint32_t);12 //uint16_t htons(uint16_t);11 uint32_t htonl(uint32_t); 12 uint16_t htons(uint16_t); 13 13 uint32_t ntohl(uint32_t); 14 14 uint16_t ntohs(uint16_t); -
EcnlProtoTool/trunk/musl-1.1.18/include/bits/alltypes.h
r321 r331 4 4 5 5 #if defined(__NEED_va_list) && !defined(__DEFINED_va_list) 6 typedef __builtin_va_list __gnuc_va_list; 7 typedef __gnuc_va_list va_list; 6 typedef __builtin_va_list va_list; 8 7 #define __DEFINED_va_list 9 8 #endif 10 9 11 10 #if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list) 12 typedef char*__isoc_va_list;11 typedef __builtin_va_list __isoc_va_list; 13 12 #define __DEFINED___isoc_va_list 14 13 #endif … … 17 16 #ifndef __cplusplus 18 17 #if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t) 19 typedef unsigned shortwchar_t;18 typedef unsigned wchar_t; 20 19 #define __DEFINED_wchar_t 21 20 #endif … … 189 188 190 189 #if defined(__NEED_off_t) && !defined(__DEFINED_off_t) 191 typedef intoff_t;190 typedef _Int64 off_t; 192 191 #define __DEFINED_off_t 193 192 #endif 194 193 195 194 #if defined(__NEED_ino_t) && !defined(__DEFINED_ino_t) 196 typedef unsigned shortino_t;195 typedef unsigned _Int64 ino_t; 197 196 #define __DEFINED_ino_t 198 197 #endif 199 198 200 199 #if defined(__NEED_dev_t) && !defined(__DEFINED_dev_t) 201 typedef unsigned intdev_t;200 typedef unsigned _Int64 dev_t; 202 201 #define __DEFINED_dev_t 203 202 #endif … … 209 208 210 209 #if defined(__NEED_blkcnt_t) && !defined(__DEFINED_blkcnt_t) 211 typedef intblkcnt_t;210 typedef _Int64 blkcnt_t; 212 211 #define __DEFINED_blkcnt_t 213 212 #endif 214 213 215 214 #if defined(__NEED_fsblkcnt_t) && !defined(__DEFINED_fsblkcnt_t) 216 typedef unsigned intfsblkcnt_t;215 typedef unsigned _Int64 fsblkcnt_t; 217 216 #define __DEFINED_fsblkcnt_t 218 217 #endif 219 218 220 219 #if defined(__NEED_fsfilcnt_t) && !defined(__DEFINED_fsfilcnt_t) 221 typedef unsigned intfsfilcnt_t;220 typedef unsigned _Int64 fsfilcnt_t; 222 221 #define __DEFINED_fsfilcnt_t 223 222 #endif … … 251 250 252 251 #if defined(__NEED_struct_timeval) && !defined(__DEFINED_struct_timeval) 253 //struct timeval { time_t tv_sec; suseconds_t tv_usec; };252 struct timeval { time_t tv_sec; suseconds_t tv_usec; }; 254 253 #define __DEFINED_struct_timeval 255 254 #endif … … 342 341 343 342 #if defined(__NEED_FILE) && !defined(__DEFINED_FILE) 344 typedef __FILE FILE;343 typedef struct _IO_FILE FILE; 345 344 #define __DEFINED_FILE 346 345 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/bits/ioctl.h
r321 r331 47 47 #define TIOCGETD 0x5424 48 48 #define TCSBRKP 0x5425 49 #define TIOCTTYGSTRUCT 0x542650 49 #define TIOCSBRK 0x5427 51 50 #define TIOCCBRK 0x5428 52 51 #define TIOCGSID 0x5429 52 #define TIOCGRS485 0x542E 53 #define TIOCSRS485 0x542F 53 54 #define TIOCGPTN 0x80045430 54 55 #define TIOCSPTLCK 0x40045431 56 #define TIOCGDEV 0x80045432 55 57 #define TCGETX 0x5432 56 58 #define TCSETX 0x5433 57 59 #define TCSETXF 0x5434 58 60 #define TCSETXW 0x5435 61 #define TIOCSIG 0x40045436 62 #define TIOCVHANGUP 0x5437 63 #define TIOCGPKT 0x80045438 64 #define TIOCGPTLCK 0x80045439 65 #define TIOCGEXCL 0x80045440 59 66 60 67 #define FIONCLEX 0x5450 … … 73 80 #define TIOCMIWAIT 0x545C 74 81 #define TIOCGICOUNT 0x545D 75 #define TIOCGHAYESESP 0x545E76 #define TIOCSHAYESESP 0x545F77 82 #define FIOQSIZE 0x5460 78 83 … … 109 114 #define TIOCM_OUT2 0x4000 110 115 #define TIOCM_LOOP 0x8000 111 #define TIOCM_MODEM_BITS TIOCM_OUT2112 116 113 117 #define N_TTY 0 … … 134 138 #define SIOCATMARK 0x8905 135 139 #define SIOCGSTAMP 0x8906 140 #define SIOCGSTAMPNS 0x8907 136 141 137 142 #define SIOCADDRT 0x890B … … 158 163 #define SIOCGIFMTU 0x8921 159 164 #define SIOCSIFMTU 0x8922 165 #define SIOCSIFNAME 0x8923 160 166 #define SIOCSIFHWADDR 0x8924 161 167 #define SIOCGIFENCAP 0x8925 … … 196 202 #define SIOCDEVPRIVATE 0x89F0 197 203 #define SIOCPROTOPRIVATE 0x89E0 204 205 #include <bits/ioctl_fix.h> -
EcnlProtoTool/trunk/musl-1.1.18/include/bits/mman.h
r321 r331 1 #define MAP_FAILED ((void *) -1)2 3 #define PROT_NONE 04 #define PROT_READ 15 #define PROT_WRITE 26 #define PROT_EXEC 47 #define PROT_GROWSDOWN 0x010000008 #define PROT_GROWSUP 0x020000009 10 #define MAP_SHARED 0x0111 #define MAP_PRIVATE 0x0212 #define MAP_FIXED 0x1013 14 #define MAP_TYPE 0x0f15 #define MAP_FILE 0x0016 #define MAP_ANON 0x2017 #define MAP_ANONYMOUS MAP_ANON18 #define MAP_NORESERVE 0x400019 #define MAP_GROWSDOWN 0x010020 #define MAP_DENYWRITE 0x080021 #define MAP_EXECUTABLE 0x100022 #define MAP_LOCKED 0x200023 #define MAP_POPULATE 0x800024 #define MAP_NONBLOCK 0x1000025 #define MAP_STACK 0x2000026 #define MAP_HUGETLB 0x4000027 28 #define POSIX_MADV_NORMAL 029 #define POSIX_MADV_RANDOM 130 #define POSIX_MADV_SEQUENTIAL 231 #define POSIX_MADV_WILLNEED 332 #define POSIX_MADV_DONTNEED 033 34 #define MS_ASYNC 135 #define MS_INVALIDATE 236 #define MS_SYNC 437 38 #define MCL_CURRENT 139 #define MCL_FUTURE 240 41 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)42 #define MADV_NORMAL 043 #define MADV_RANDOM 144 #define MADV_SEQUENTIAL 245 #define MADV_WILLNEED 346 #define MADV_DONTNEED 447 #define MADV_REMOVE 948 #define MADV_DONTFORK 1049 #define MADV_DOFORK 1150 #define MADV_MERGEABLE 1251 #define MADV_UNMERGEABLE 1352 #define MADV_HUGEPAGE 1453 #define MADV_NOHUGEPAGE 1554 #define MADV_DONTDUMP 1655 #define MADV_DODUMP 1756 #define MADV_HWPOISON 10057 #define MADV_SOFT_OFFLINE 10158 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/bits/socket.h
r321 r331 1 struct msghdr 2 { 1 struct msghdr { 3 2 void *msg_name; 4 3 socklen_t msg_namelen; … … 10 9 }; 11 10 12 struct cmsghdr 13 { 11 struct cmsghdr { 14 12 socklen_t cmsg_len; 15 13 int cmsg_level; -
EcnlProtoTool/trunk/musl-1.1.18/include/bits/termios.h
r321 r331 1 struct termios 2 { 1 struct termios { 3 2 tcflag_t c_iflag; 4 3 tcflag_t c_oflag; … … 110 109 #define B4000000 0010017 111 110 112 #define CBAUD 0010017113 114 111 #define CSIZE 0000060 115 112 #define CS5 0000000 … … 134 131 #define IEXTEN 0100000 135 132 136 #define ECHOCTL 0001000137 #define ECHOPRT 0002000138 #define ECHOKE 0004000139 #define FLUSHO 0010000140 #define PENDIN 0040000141 142 133 #define TCOOFF 0 143 134 #define TCOON 1 … … 154 145 155 146 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 147 #define EXTA 0000016 148 #define EXTB 0000017 149 #define CBAUD 0010017 156 150 #define CBAUDEX 0010000 157 #define CRTSCTS 020000000000 151 #define CIBAUD 002003600000 152 #define CMSPAR 010000000000 153 #define CRTSCTS 020000000000 154 155 #define XCASE 0000004 156 #define ECHOCTL 0001000 157 #define ECHOPRT 0002000 158 #define ECHOKE 0004000 159 #define FLUSHO 0010000 160 #define PENDIN 0040000 158 161 #define EXTPROC 0200000 162 159 163 #define XTABS 0014000 160 164 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/endian.h
r321 r331 25 25 static __inline uint16_t __bswap16(uint16_t __x) 26 26 { 27 return (uint16_t)(__x<<8 | __x>>8);27 return __x<<8 | __x>>8; 28 28 } 29 29 30 30 static __inline uint32_t __bswap32(uint32_t __x) 31 31 { 32 return (uint32_t)(__x>>24 | (__x>>8&0xff00) | (__x<<8&0xff0000) | __x<<24);32 return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24; 33 33 } 34 34 35 35 static __inline uint64_t __bswap64(uint64_t __x) 36 36 { 37 return __bswap32( ((uint32_t)__x)+0ULL)<<32 | __bswap32((uint32_t)(__x>>32));37 return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32); 38 38 } 39 39 -
EcnlProtoTool/trunk/musl-1.1.18/include/features.h
r321 r331 25 25 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus) 26 26 #define __inline inline 27 #elif !defined(__GNUC__) 28 #define __inline 27 29 #endif 28 30 -
EcnlProtoTool/trunk/musl-1.1.18/include/mntent.h
r321 r331 21 21 #define MNTOPT_NOAUTO "noauto" 22 22 23 struct mntent 24 { 23 struct mntent { 25 24 char *mnt_fsname; 26 25 char *mnt_dir; -
EcnlProtoTool/trunk/musl-1.1.18/include/net/if.h
r321 r331 10 10 #define IF_NAMESIZE 16 11 11 12 struct if_nameindex 13 { 12 struct if_nameindex { 14 13 unsigned int if_index; 15 14 char *if_name; … … 91 90 char ifru_slave[IFNAMSIZ]; 92 91 char ifru_newname[IFNAMSIZ]; 93 void*ifru_data;92 char *ifru_data; 94 93 } ifr_ifru; 95 94 }; … … 118 117 int ifc_len; 119 118 union { 120 void*ifcu_buf;119 char *ifcu_buf; 121 120 struct ifreq *ifcu_req; 122 121 } ifc_ifcu; -
EcnlProtoTool/trunk/musl-1.1.18/include/net/if_arp.h
r321 r331 92 92 #define ARPHRD_IP6GRE 823 93 93 #define ARPHRD_NETLINK 824 94 #define ARPHRD_6LOWPAN 825 94 95 95 96 #define ARPHRD_VOID 0xFFFF -
EcnlProtoTool/trunk/musl-1.1.18/include/netdb.h
r321 r331 14 14 #endif 15 15 16 struct addrinfo 17 { 16 struct addrinfo { 18 17 int ai_flags; 19 18 int ai_family; … … 25 24 struct addrinfo *ai_next; 26 25 }; 27 28 #define IPPORT_RESERVED 102429 26 30 27 #define AI_PASSIVE 0x01 … … 63 60 /* Legacy functions follow (marked OBsolete in SUS) */ 64 61 65 struct netent 66 { 62 struct netent { 67 63 char *n_name; 68 64 char **n_aliases; … … 71 67 }; 72 68 73 struct hostent 74 { 69 struct hostent { 75 70 char *h_name; 76 71 char **h_aliases; … … 81 76 #define h_addr h_addr_list[0] 82 77 83 struct servent 84 { 78 struct servent { 85 79 char *s_name; 86 80 char **s_aliases; … … 89 83 }; 90 84 91 struct protoent 92 { 85 struct protoent { 93 86 char *p_name; 94 87 char **p_aliases; -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/if_ether.h
r321 r331 15 15 #define ETH_P_PUP 0x0200 16 16 #define ETH_P_PUPAT 0x0201 17 #define ETH_P_TSN 0x22F0 17 18 #define ETH_P_IP 0x0800 18 19 #define ETH_P_X25 0x0805 … … 52 53 #define ETH_P_802_EX1 0x88B5 53 54 #define ETH_P_TIPC 0x88CA 55 #define ETH_P_MACSEC 0x88E5 54 56 #define ETH_P_8021AH 0x88E7 55 57 #define ETH_P_MVRP 0x88F5 56 58 #define ETH_P_1588 0x88F7 59 #define ETH_P_NCSI 0x88F8 57 60 #define ETH_P_PRP 0x88FB 58 61 #define ETH_P_FCOE 0x8906 … … 60 63 #define ETH_P_FIP 0x8914 61 64 #define ETH_P_80221 0x8917 65 #define ETH_P_HSR 0x892F 62 66 #define ETH_P_LOOPBACK 0x9000 63 67 #define ETH_P_QINQ1 0x9100 … … 93 97 #define ETH_P_IEEE802154 0x00F6 94 98 #define ETH_P_CAIF 0x00F7 99 #define ETH_P_XDSA 0x00F8 95 100 96 101 struct ethhdr { -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/in.h
r321 r331 14 14 struct in_addr { in_addr_t s_addr; }; 15 15 16 struct sockaddr_in 17 { 16 struct sockaddr_in { 18 17 sa_family_t sin_family; 19 18 in_port_t sin_port; … … 22 21 }; 23 22 24 struct in6_addr 25 { 23 struct in6_addr { 26 24 union { 27 25 uint8_t __s6_addr[16]; … … 34 32 #define s6_addr32 __in6_union.__s6_addr32 35 33 36 struct sockaddr_in6 37 { 34 struct sockaddr_in6 { 38 35 sa_family_t sin6_family; 39 36 in_port_t sin6_port; … … 43 40 }; 44 41 45 struct ipv6_mreq 46 { 42 struct ipv6_mreq { 47 43 struct in6_addr ipv6mr_multiaddr; 48 44 unsigned ipv6mr_interface; … … 73 69 uint32_t ntohl(uint32_t); 74 70 uint16_t ntohs(uint16_t); 71 72 #define IPPORT_RESERVED 1024 75 73 76 74 #define IPPROTO_IP 0 … … 104 102 #define IPPROTO_MH 135 105 103 #define IPPROTO_UDPLITE 136 104 #define IPPROTO_MPLS 137 106 105 #define IPPROTO_RAW 255 107 106 #define IPPROTO_MAX 256 … … 201 200 #define IP_NODEFRAG 22 202 201 #define IP_CHECKSUM 23 202 #define IP_BIND_ADDRESS_NO_PORT 24 203 203 #define IP_MULTICAST_IF 32 204 204 #define IP_MULTICAST_TTL 33 … … 227 227 #define IP_MAX_MEMBERSHIPS 20 228 228 229 struct ip_opts 230 { 229 struct ip_opts { 231 230 struct in_addr ip_dst; 232 231 char ip_opts[40]; … … 246 245 #define MCAST_INCLUDE 1 247 246 248 struct ip_mreq 249 { 247 struct ip_mreq { 250 248 struct in_addr imr_multiaddr; 251 249 struct in_addr imr_interface; 252 250 }; 253 251 254 struct ip_mreqn 255 { 252 struct ip_mreqn { 256 253 struct in_addr imr_multiaddr; 257 254 struct in_addr imr_address; … … 298 295 + (numsrc) * sizeof(struct sockaddr_storage)) 299 296 300 struct in_pktinfo 301 { 297 struct in_pktinfo { 302 298 int ipi_ifindex; 303 299 struct in_addr ipi_spec_dst; … … 305 301 }; 306 302 307 struct in6_pktinfo 308 { 303 struct in6_pktinfo { 309 304 struct in6_addr ipi6_addr; 310 305 unsigned ipi6_ifindex; 311 306 }; 312 307 313 struct ip6_mtuinfo 314 { 308 struct ip6_mtuinfo { 315 309 struct sockaddr_in6 ip6m_addr; 316 310 uint32_t ip6m_mtu; … … 343 337 #define IPV6_IPSEC_POLICY 34 344 338 #define IPV6_XFRM_POLICY 35 339 #define IPV6_HDRINCL 36 345 340 346 341 #define IPV6_RECVPKTINFO 49 … … 393 388 #define IPV6_RTHDR_TYPE_0 0 394 389 390 #define __UAPI_DEF_IN_ADDR 0 391 #define __UAPI_DEF_IN_IPPROTO 0 392 #define __UAPI_DEF_IN_PKTINFO 0 393 #define __UAPI_DEF_IP_MREQ 0 394 #define __UAPI_DEF_SOCKADDR_IN 0 395 #define __UAPI_DEF_IN_CLASS 0 396 #define __UAPI_DEF_IN6_ADDR 0 397 #define __UAPI_DEF_IN6_ADDR_ALT 0 398 #define __UAPI_DEF_SOCKADDR_IN6 0 399 #define __UAPI_DEF_IPV6_MREQ 0 400 #define __UAPI_DEF_IPPROTO_V6 0 401 #define __UAPI_DEF_IPV6_OPTIONS 0 402 #define __UAPI_DEF_IN6_PKTINFO 0 403 #define __UAPI_DEF_IP6_MTUINFO 0 404 395 405 #ifdef __cplusplus 396 406 } -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/ip_icmp.h
r321 r331 24 24 uint16_t mtu; 25 25 } frag; 26 uint8_t reserved[4]; 26 27 } un; 27 28 }; -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/tcp.h
r321 r331 28 28 #define TCP_TIMESTAMP 24 29 29 #define TCP_NOTSENT_LOWAT 25 30 #define TCP_CC_INFO 26 31 #define TCP_SAVE_SYN 27 32 #define TCP_SAVED_SYN 28 33 #define TCP_REPAIR_WINDOW 29 30 34 31 35 #define TCP_ESTABLISHED 1 … … 42 46 43 47 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 48 #define TCPOPT_EOL 0 49 #define TCPOPT_NOP 1 50 #define TCPOPT_MAXSEG 2 51 #define TCPOPT_WINDOW 3 52 #define TCPOPT_SACK_PERMITTED 4 53 #define TCPOPT_SACK 5 54 #define TCPOPT_TIMESTAMP 8 55 #define TCPOLEN_SACK_PERMITTED 2 56 #define TCPOLEN_WINDOW 3 57 #define TCPOLEN_MAXSEG 4 58 #define TCPOLEN_TIMESTAMP 10 59 44 60 #define SOL_TCP 6 61 45 62 #include <sys/types.h> 46 63 #include <sys/socket.h> … … 130 147 #define TCP_CA_Loss 4 131 148 132 struct tcp_info 133 { 149 struct tcp_info { 134 150 uint8_t tcpi_state; 135 151 uint8_t tcpi_ca_state; … … 139 155 uint8_t tcpi_options; 140 156 uint8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; 157 uint8_t tcpi_delivery_rate_app_limited : 1; 141 158 uint32_t tcpi_rto; 142 159 uint32_t tcpi_ato; … … 165 182 uint64_t tcpi_pacing_rate; 166 183 uint64_t tcpi_max_pacing_rate; 184 uint64_t tcpi_bytes_acked; 185 uint64_t tcpi_bytes_received; 186 uint32_t tcpi_segs_out; 187 uint32_t tcpi_segs_in; 188 uint32_t tcpi_notsent_bytes; 189 uint32_t tcpi_min_rtt; 190 uint32_t tcpi_data_segs_in; 191 uint32_t tcpi_data_segs_out; 192 uint64_t tcpi_delivery_rate; 167 193 }; 168 194 169 195 #define TCP_MD5SIG_MAXKEYLEN 80 170 196 171 struct tcp_md5sig 172 { 197 struct tcp_md5sig { 173 198 struct sockaddr_storage tcpm_addr; 174 199 uint16_t __tcpm_pad1; … … 178 203 }; 179 204 180 #endif 181 182 #endif 205 struct tcp_repair_window { 206 uint32_t snd_wl1; 207 uint32_t snd_wnd; 208 uint32_t max_window; 209 uint32_t rcv_wnd; 210 uint32_t rcv_wup; 211 }; 212 213 #endif 214 215 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/netinet/udp.h
r321 r331 29 29 #define UDP_ENCAP_ESPINUDP 2 30 30 #define UDP_ENCAP_L2TPINUDP 3 31 #define UDP_ENCAP_GTP0 4 32 #define UDP_ENCAP_GTP1U 5 31 33 32 34 #define SOL_UDP 17 -
EcnlProtoTool/trunk/musl-1.1.18/include/netpacket/packet.h
r321 r331 33 33 #define PACKET_RX_RING 5 34 34 #define PACKET_STATISTICS 6 35 #define PACKET_COPY_THRESH 7 36 #define PACKET_AUXDATA 8 37 #define PACKET_ORIGDEV 9 38 #define PACKET_VERSION 10 39 #define PACKET_HDRLEN 11 40 #define PACKET_RESERVE 12 41 #define PACKET_TX_RING 13 42 #define PACKET_LOSS 14 43 #define PACKET_VNET_HDR 15 44 #define PACKET_TX_TIMESTAMP 16 45 #define PACKET_TIMESTAMP 17 46 #define PACKET_FANOUT 18 47 #define PACKET_TX_HAS_OFF 19 48 #define PACKET_QDISC_BYPASS 20 49 #define PACKET_ROLLOVER_STATS 21 50 #define PACKET_FANOUT_DATA 22 35 51 36 52 #define PACKET_MR_MULTICAST 0 37 53 #define PACKET_MR_PROMISC 1 38 54 #define PACKET_MR_ALLMULTI 2 55 #define PACKET_MR_UNICAST 3 39 56 40 57 #ifdef __cplusplus -
EcnlProtoTool/trunk/musl-1.1.18/include/poll.h
r321 r331 6 6 #endif 7 7 8 #include "../../../musl-1.1.12/include/features.h"8 #include <features.h> 9 9 10 #include "../../../musl-1.1.12/include/bits/poll.h"10 #include <bits/poll.h> 11 11 12 12 #define POLLIN 0x001 … … 29 29 typedef unsigned long nfds_t; 30 30 31 struct pollfd 32 { 31 struct pollfd { 33 32 int fd; 34 33 short events; -
EcnlProtoTool/trunk/musl-1.1.18/include/sys/mman.h
r321 r331 9 9 #define __NEED_mode_t 10 10 #define __NEED_size_t 11 /*#define __NEED_off_t*/ 11 #define __NEED_off_t 12 12 13 13 #if defined(_GNU_SOURCE) … … 16 16 17 17 #include <bits/alltypes.h> 18 19 #define MAP_FAILED ((void *) -1) 20 21 #define MAP_SHARED 0x01 22 #define MAP_PRIVATE 0x02 23 #define MAP_TYPE 0x0f 24 #define MAP_FIXED 0x10 25 #define MAP_ANON 0x20 26 #define MAP_ANONYMOUS MAP_ANON 27 #define MAP_NORESERVE 0x4000 28 #define MAP_GROWSDOWN 0x0100 29 #define MAP_DENYWRITE 0x0800 30 #define MAP_EXECUTABLE 0x1000 31 #define MAP_LOCKED 0x2000 32 #define MAP_POPULATE 0x8000 33 #define MAP_NONBLOCK 0x10000 34 #define MAP_STACK 0x20000 35 #define MAP_HUGETLB 0x40000 36 #define MAP_FILE 0 37 38 #define PROT_NONE 0 39 #define PROT_READ 1 40 #define PROT_WRITE 2 41 #define PROT_EXEC 4 42 #define PROT_GROWSDOWN 0x01000000 43 #define PROT_GROWSUP 0x02000000 44 45 #define MS_ASYNC 1 46 #define MS_INVALIDATE 2 47 #define MS_SYNC 4 48 49 #define MCL_CURRENT 1 50 #define MCL_FUTURE 2 51 #define MCL_ONFAULT 4 52 53 #define POSIX_MADV_NORMAL 0 54 #define POSIX_MADV_RANDOM 1 55 #define POSIX_MADV_SEQUENTIAL 2 56 #define POSIX_MADV_WILLNEED 3 57 #define POSIX_MADV_DONTNEED 4 58 59 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 60 #define MADV_NORMAL 0 61 #define MADV_RANDOM 1 62 #define MADV_SEQUENTIAL 2 63 #define MADV_WILLNEED 3 64 #define MADV_DONTNEED 4 65 #define MADV_FREE 8 66 #define MADV_REMOVE 9 67 #define MADV_DONTFORK 10 68 #define MADV_DOFORK 11 69 #define MADV_MERGEABLE 12 70 #define MADV_UNMERGEABLE 13 71 #define MADV_HUGEPAGE 14 72 #define MADV_NOHUGEPAGE 15 73 #define MADV_DONTDUMP 16 74 #define MADV_DODUMP 17 75 #define MADV_HWPOISON 100 76 #define MADV_SOFT_OFFLINE 101 77 #endif 18 78 19 79 #include <bits/mman.h> … … 40 100 41 101 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 102 #define MLOCK_ONFAULT 0x01 42 103 int madvise (void *, size_t, int); 43 104 int mincore (void *, size_t, unsigned char *); -
EcnlProtoTool/trunk/musl-1.1.18/include/sys/socket.h
r321 r331 11 11 #define __NEED_size_t 12 12 #define __NEED_ssize_t 13 /*#define __NEED_uid_t*/ 13 #define __NEED_uid_t 14 14 #define __NEED_pid_t 15 /*#define __NEED_gid_t*/ 15 #define __NEED_gid_t 16 16 #define __NEED_struct_iovec 17 17 … … 21 21 22 22 #ifdef _GNU_SOURCE 23 struct ucred 24 { 23 struct ucred { 25 24 pid_t pid; 26 25 uid_t uid; … … 28 27 }; 29 28 30 struct mmsghdr 31 { 29 struct mmsghdr { 32 30 struct msghdr msg_hdr; 33 31 unsigned int msg_len; … … 40 38 #endif 41 39 42 struct linger 43 { 40 struct linger { 44 41 int l_onoff; 45 42 int l_linger; … … 97 94 #define PF_LLC 26 98 95 #define PF_IB 27 96 #define PF_MPLS 28 99 97 #define PF_CAN 29 100 98 #define PF_TIPC 30 … … 109 107 #define PF_NFC 39 110 108 #define PF_VSOCK 40 111 #define PF_MAX 41 109 #define PF_KCM 41 110 #define PF_QIPCRTR 42 111 #define PF_MAX 43 112 112 113 113 #define AF_UNSPEC PF_UNSPEC … … 142 142 #define AF_LLC PF_LLC 143 143 #define AF_IB PF_IB 144 #define AF_MPLS PF_MPLS 144 145 #define AF_CAN PF_CAN 145 146 #define AF_TIPC PF_TIPC … … 154 155 #define AF_NFC PF_NFC 155 156 #define AF_VSOCK PF_VSOCK 157 #define AF_KCM PF_KCM 158 #define AF_QIPCRTR PF_QIPCRTR 156 159 #define AF_MAX PF_MAX 157 160 … … 219 222 #define SO_ATTACH_BPF 50 220 223 #define SO_DETACH_BPF SO_DETACH_FILTER 221 224 #define SO_ATTACH_REUSEPORT_CBPF 51 225 #define SO_ATTACH_REUSEPORT_EBPF 52 226 #define SO_CNX_ADVICE 53 222 227 223 228 #ifndef SOL_SOCKET … … 236 241 #define SOL_AAL 265 237 242 #define SOL_IRDA 266 243 #define SOL_NETBEUI 267 244 #define SOL_LLC 268 245 #define SOL_DCCP 269 246 #define SOL_NETLINK 270 247 #define SOL_TIPC 271 248 #define SOL_RXRPC 272 249 #define SOL_PPPOL2TP 273 250 #define SOL_BLUETOOTH 274 251 #define SOL_PNPIPE 275 252 #define SOL_RDS 276 253 #define SOL_IUCV 277 254 #define SOL_CAIF 278 255 #define SOL_ALG 279 256 #define SOL_NFC 280 257 #define SOL_KCM 281 238 258 239 259 #define SOMAXCONN 128 … … 256 276 #define MSG_MORE 0x8000 257 277 #define MSG_WAITFORONE 0x10000 278 #define MSG_BATCH 0x40000 279 #define MSG_FASTOPEN 0x20000000 258 280 #define MSG_CMSG_CLOEXEC 0x40000000 259 281 … … 263 285 264 286 #define CMSG_DATA(cmsg) ((unsigned char *) (((struct cmsghdr *)(cmsg)) + 1)) 265 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) ? (struct cmsghdr *)0 :\266 (__CMSG_NEXT(cmsg) + sizeof (struct cmsghdr) >= __MHDR_END(mhdr) ? (struct cmsghdr *)0 :\267 ((struct cmsghdr *)__CMSG_NEXT(cmsg))))287 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ 288 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \ 289 ? 0 : (struct cmsghdr *)__CMSG_NEXT(cmsg)) 268 290 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) 0) 269 291 … … 275 297 #define SCM_CREDENTIALS 0x02 276 298 277 struct sockaddr 278 { 299 struct sockaddr { 279 300 sa_family_t sa_family; 280 301 char sa_data[14]; 281 302 }; 282 303 283 struct sockaddr_storage 284 { 304 struct sockaddr_storage { 285 305 sa_family_t ss_family; 306 char __ss_padding[128-sizeof(long)-sizeof(sa_family_t)]; 286 307 unsigned long __ss_align; 287 char __ss_padding[128-2*sizeof(unsigned long)];288 308 }; 289 309 -
EcnlProtoTool/trunk/musl-1.1.18/include/sys/un.h
r321 r331 15 15 #include <bits/alltypes.h> 16 16 17 struct sockaddr_un 18 { 17 struct sockaddr_un { 19 18 sa_family_t sun_family; 20 19 char sun_path[108]; -
EcnlProtoTool/trunk/musl-1.1.18/include/utmp.h
r321 r331 23 23 #define ut_addr ut_addr_v6[0] 24 24 #define utmp utmpx 25 #define utmpname(x) (-1)26 25 #define e_exit __e_exit 27 26 #define e_termination __e_termination … … 35 34 36 35 void updwtmp(const char *, const struct utmp *); 36 int utmpname(const char *); 37 37 38 38 int login_tty(int); -
EcnlProtoTool/trunk/musl-1.1.18/include/utmpx.h
r321 r331 15 15 #include <bits/alltypes.h> 16 16 17 struct utmpx 18 { 17 struct utmpx { 19 18 short ut_type; 20 19 pid_t ut_pid; … … 30 29 struct timeval ut_tv; 31 30 unsigned ut_addr_v6[4]; 32 char __unused __[20];31 char __unused[20]; 33 32 }; 34 33 … … 40 39 void setutxent(void); 41 40 42 #if defined(_BSD_SOURCE) | defined(_GNU_SOURCE)41 #if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) 43 42 #define e_exit __e_exit 44 43 #define e_termination __e_termination 45 44 void updwtmpx(const char *, const struct utmpx *); 45 int utmpxname(const char *); 46 46 #endif 47 47
Note:
See TracChangeset
for help on using the changeset viewer.