1cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes/*
2cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * Copyright (C) 2011 The Android Open Source Project
3cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes *
4cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
5cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * you may not use this file except in compliance with the License.
6cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * You may obtain a copy of the License at
7cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes *
8cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
9cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes *
10cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * Unless required by applicable law or agreed to in writing, software
11cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
12cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * See the License for the specific language governing permissions and
14cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes * limitations under the License.
15cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes */
16cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes
17cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughespackage libcore.io;
18cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes
192822a84736c46282ee3a12983340f594e38eac5aElliott Hughespublic final class OsConstants {
20cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes    private OsConstants() { }
21cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes
222822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISBLK(int mode) { return (mode & S_IFMT) == S_IFBLK; }
232822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISCHR(int mode) { return (mode & S_IFMT) == S_IFCHR; }
242822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISDIR(int mode) { return (mode & S_IFMT) == S_IFDIR; }
252822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISFIFO(int mode) { return (mode & S_IFMT) == S_IFIFO; }
262822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISREG(int mode) { return (mode & S_IFMT) == S_IFREG; }
272822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISLNK(int mode) { return (mode & S_IFMT) == S_IFLNK; }
282822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean S_ISSOCK(int mode) { return (mode & S_IFMT) == S_IFSOCK; }
292822a84736c46282ee3a12983340f594e38eac5aElliott Hughes
302822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static int WEXITSTATUS(int status) { return (status & 0xff00) >> 8; }
312822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean WCOREDUMP(int status) { return (status & 0x80) != 0; }
322822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static int WTERMSIG(int status) { return status & 0x7f; }
332822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static int WSTOPSIG(int status) { return WEXITSTATUS(status); }
342822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean WIFEXITED(int status) { return (WTERMSIG(status) == 0); }
352822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean WIFSTOPPED(int status) { return (WTERMSIG(status) == 0x7f); }
362822a84736c46282ee3a12983340f594e38eac5aElliott Hughes    public static boolean WIFSIGNALED(int status) { return (WTERMSIG(status + 1) >= 2); }
372822a84736c46282ee3a12983340f594e38eac5aElliott Hughes
38bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int AF_INET = placeholder();
39bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int AF_INET6 = placeholder();
40bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int AF_UNIX = placeholder();
41bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int AF_UNSPEC = placeholder();
421c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_ADDRCONFIG = placeholder();
431c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_ALL = placeholder();
441c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_CANONNAME = placeholder();
451c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_NUMERICHOST = placeholder();
461c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_NUMERICSERV = placeholder();
471c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_PASSIVE = placeholder();
481c039d71d3879f39e3a75b8788e656f7b4f88f08Elliott Hughes    public static final int AI_V4MAPPED = placeholder();
49bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int E2BIG = placeholder();
50bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EACCES = placeholder();
51bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EADDRINUSE = placeholder();
52bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EADDRNOTAVAIL = placeholder();
53bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EAFNOSUPPORT = placeholder();
54bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EAGAIN = placeholder();
554f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_AGAIN = placeholder();
564f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_BADFLAGS = placeholder();
574f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_FAIL = placeholder();
584f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_FAMILY = placeholder();
594f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_MEMORY = placeholder();
604f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_NODATA = placeholder();
614f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_NONAME = placeholder();
624f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_OVERFLOW = placeholder();
634f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_SERVICE = placeholder();
644f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_SOCKTYPE = placeholder();
654f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int EAI_SYSTEM = placeholder();
66bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EALREADY = placeholder();
67bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EBADF = placeholder();
68bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EBADMSG = placeholder();
69bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EBUSY = placeholder();
70bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ECANCELED = placeholder();
71bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ECHILD = placeholder();
72bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ECONNABORTED = placeholder();
73bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ECONNREFUSED = placeholder();
74bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ECONNRESET = placeholder();
75bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EDEADLK = placeholder();
76bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EDESTADDRREQ = placeholder();
77bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EDOM = placeholder();
78bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EDQUOT = placeholder();
79bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EEXIST = placeholder();
80bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EFAULT = placeholder();
81bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EFBIG = placeholder();
82bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EHOSTUNREACH = placeholder();
83bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EIDRM = placeholder();
84bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EILSEQ = placeholder();
85bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EINPROGRESS = placeholder();
86bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EINTR = placeholder();
87bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EINVAL = placeholder();
88bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EIO = placeholder();
89bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EISCONN = placeholder();
90bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EISDIR = placeholder();
91bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ELOOP = placeholder();
92bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EMFILE = placeholder();
93bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EMLINK = placeholder();
94bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EMSGSIZE = placeholder();
95bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EMULTIHOP = placeholder();
96bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENAMETOOLONG = placeholder();
97bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENETDOWN = placeholder();
98bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENETRESET = placeholder();
99bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENETUNREACH = placeholder();
100bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENFILE = placeholder();
101bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOBUFS = placeholder();
102bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENODATA = placeholder();
103bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENODEV = placeholder();
104bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOENT = placeholder();
105bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOEXEC = placeholder();
106bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOLCK = placeholder();
107bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOLINK = placeholder();
108bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOMEM = placeholder();
109bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOMSG = placeholder();
110bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOPROTOOPT = placeholder();
111bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOSPC = placeholder();
112bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOSR = placeholder();
113bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOSTR = placeholder();
114bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOSYS = placeholder();
115bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTCONN = placeholder();
116bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTDIR = placeholder();
117bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTEMPTY = placeholder();
118bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTSOCK = placeholder();
119bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTSUP = placeholder();
120bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENOTTY = placeholder();
121bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ENXIO = placeholder();
122bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EOPNOTSUPP = placeholder();
123bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EOVERFLOW = placeholder();
124bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EPERM = placeholder();
125bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EPIPE = placeholder();
126bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EPROTO = placeholder();
127bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EPROTONOSUPPORT = placeholder();
128bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EPROTOTYPE = placeholder();
129bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ERANGE = placeholder();
130bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EROFS = placeholder();
131bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ESPIPE = placeholder();
132bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ESRCH = placeholder();
133bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ESTALE = placeholder();
134bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ETIME = placeholder();
135bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ETIMEDOUT = placeholder();
136bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int ETXTBSY = placeholder();
137bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EWOULDBLOCK = placeholder();
138bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EXDEV = placeholder();
139bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EXIT_FAILURE = placeholder();
140bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int EXIT_SUCCESS = placeholder();
141bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int FD_CLOEXEC = placeholder();
142461d0d860814c68154d8dd06d24f94118f33d28aElliott Hughes    public static final int FIONREAD = placeholder();
143bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_DUPFD = placeholder();
144bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_GETFD = placeholder();
145bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_GETFL = placeholder();
146bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_GETLK = placeholder();
147fc549a0b0388987b26dea524894d75a63d14783bElliott Hughes    public static final int F_GETLK64 = placeholder();
148bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_GETOWN = placeholder();
149bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_OK = placeholder();
150bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_RDLCK = placeholder();
151bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_SETFD = placeholder();
152bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_SETFL = placeholder();
153bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_SETLK = placeholder();
154fc549a0b0388987b26dea524894d75a63d14783bElliott Hughes    public static final int F_SETLK64 = placeholder();
155bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_SETLKW = placeholder();
156fc549a0b0388987b26dea524894d75a63d14783bElliott Hughes    public static final int F_SETLKW64 = placeholder();
157bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_SETOWN = placeholder();
158bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_UNLCK = placeholder();
159bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int F_WRLCK = placeholder();
160a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_ALLMULTI = placeholder();
161a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_AUTOMEDIA = placeholder();
162a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_BROADCAST = placeholder();
163a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_DEBUG = placeholder();
164a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_DYNAMIC = placeholder();
165a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_LOOPBACK = placeholder();
166a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_MASTER = placeholder();
167a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_MULTICAST = placeholder();
168a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_NOARP = placeholder();
169a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_NOTRAILERS = placeholder();
170a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_POINTOPOINT = placeholder();
171a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_PORTSEL = placeholder();
172a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_PROMISC = placeholder();
173a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_RUNNING = placeholder();
174a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_SLAVE = placeholder();
175a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int IFF_UP = placeholder();
176bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_ICMP = placeholder();
177bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_IP = placeholder();
178bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_IPV6 = placeholder();
179bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_RAW = placeholder();
180bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_TCP = placeholder();
181bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int IPPROTO_UDP = placeholder();
182454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_CHECKSUM = placeholder();
183454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_MULTICAST_HOPS = placeholder();
184454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_MULTICAST_IF = placeholder();
185454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_MULTICAST_LOOP = placeholder();
186454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVDSTOPTS = placeholder();
187454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVHOPLIMIT = placeholder();
188454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVHOPOPTS = placeholder();
189454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVPKTINFO = placeholder();
190454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVRTHDR = placeholder();
191454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_RECVTCLASS = placeholder();
1920a9d1ee45a9884a9616624d747172e18734e8fe0Elliott Hughes    public static final int IPV6_TCLASS = placeholder();
193454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_UNICAST_HOPS = placeholder();
194454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IPV6_V6ONLY = placeholder();
195454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IP_MULTICAST_IF = placeholder();
196454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IP_MULTICAST_LOOP = placeholder();
197454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IP_MULTICAST_TTL = placeholder();
198454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IP_TOS = placeholder();
199454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int IP_TTL = placeholder();
200bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MAP_FIXED = placeholder();
201bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MAP_PRIVATE = placeholder();
202bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MAP_SHARED = placeholder();
203454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int MCAST_JOIN_GROUP = placeholder();
204454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int MCAST_LEAVE_GROUP = placeholder();
205bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MCL_CURRENT = placeholder();
206bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MCL_FUTURE = placeholder();
207bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_CTRUNC = placeholder();
208bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_DONTROUTE = placeholder();
209bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_EOR = placeholder();
210bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_OOB = placeholder();
211bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_PEEK = placeholder();
212bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_TRUNC = placeholder();
213bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MSG_WAITALL = placeholder();
214bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MS_ASYNC = placeholder();
215bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MS_INVALIDATE = placeholder();
216bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int MS_SYNC = placeholder();
2174f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int NI_DGRAM = placeholder();
2184f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int NI_NAMEREQD = placeholder();
2194f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int NI_NOFQDN = placeholder();
2204f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int NI_NUMERICHOST = placeholder();
2214f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static final int NI_NUMERICSERV = placeholder();
222bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_ACCMODE = placeholder();
223bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_APPEND = placeholder();
224bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_CREAT = placeholder();
225bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_EXCL = placeholder();
226bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_NOCTTY = placeholder();
227dd538c3bbd85d14ccae83ab3b384b2ebcc4a4c13Kenny Root    public static final int O_NOFOLLOW = placeholder();
228bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_NONBLOCK = placeholder();
229bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_RDONLY = placeholder();
230bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_RDWR = placeholder();
231bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_SYNC = placeholder();
232bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_TRUNC = placeholder();
233bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int O_WRONLY = placeholder();
23470c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLERR = placeholder();
23570c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLHUP = placeholder();
23670c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLIN = placeholder();
23770c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLNVAL = placeholder();
23870c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLOUT = placeholder();
23970c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLPRI = placeholder();
24070c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLRDBAND = placeholder();
24170c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLRDNORM = placeholder();
24270c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLWRBAND = placeholder();
24370c820401677ca251ad09ac64cc23c760764e75dElliott Hughes    public static final int POLLWRNORM = placeholder();
244bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int PROT_EXEC = placeholder();
245bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int PROT_NONE = placeholder();
246bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int PROT_READ = placeholder();
247bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int PROT_WRITE = placeholder();
248bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int R_OK = placeholder();
249bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SEEK_CUR = placeholder();
250bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SEEK_END = placeholder();
251bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SEEK_SET = placeholder();
252bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SHUT_RD = placeholder();
253bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SHUT_RDWR = placeholder();
254bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SHUT_WR = placeholder();
255a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGABRT = placeholder();
256a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGALRM = placeholder();
257a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGBUS = placeholder();
258a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGCHLD = placeholder();
259a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGCONT = placeholder();
260a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGFPE = placeholder();
261a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGHUP = placeholder();
262a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGILL = placeholder();
263a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGINT = placeholder();
264a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGIO = placeholder();
265a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGKILL = placeholder();
266a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGPIPE = placeholder();
267a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGPROF = placeholder();
268a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGPWR = placeholder();
269a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGQUIT = placeholder();
270a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGRTMAX = placeholder();
271a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGRTMIN = placeholder();
272a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGSEGV = placeholder();
273a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGSTKFLT = placeholder();
274a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGSTOP = placeholder();
275a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGSYS = placeholder();
276a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGTERM = placeholder();
277a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGTRAP = placeholder();
278a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGTSTP = placeholder();
279a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGTTIN = placeholder();
280a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGTTOU = placeholder();
281a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGURG = placeholder();
282a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGUSR1 = placeholder();
283a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGUSR2 = placeholder();
284a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGVTALRM = placeholder();
285a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGWINCH = placeholder();
286a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGXCPU = placeholder();
287a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3cElliott Hughes    public static final int SIGXFSZ = placeholder();
288a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int SIOCGIFADDR = placeholder();
289a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int SIOCGIFBRDADDR = placeholder();
290a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int SIOCGIFDSTADDR = placeholder();
291a37e971343883bb582a93ffbd9f0ba84f10e55baElliott Hughes    public static final int SIOCGIFNETMASK = placeholder();
292bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SOCK_DGRAM = placeholder();
293bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SOCK_RAW = placeholder();
294bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SOCK_SEQPACKET = placeholder();
295bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int SOCK_STREAM = placeholder();
2960a9d1ee45a9884a9616624d747172e18734e8fe0Elliott Hughes    public static final int SOL_SOCKET = placeholder();
297b974666d79ebc392b37ec1ae83aae57ae6331c08Elliott Hughes    public static final int SO_BINDTODEVICE = placeholder();
298454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_BROADCAST = placeholder();
299454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_DEBUG = placeholder();
300454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_DONTROUTE = placeholder();
301454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_ERROR = placeholder();
302454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_KEEPALIVE = placeholder();
303454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_LINGER = placeholder();
304454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_OOBINLINE = placeholder();
305454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_RCVBUF = placeholder();
306454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_RCVLOWAT = placeholder();
307454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_RCVTIMEO = placeholder();
308454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_REUSEADDR = placeholder();
309454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_SNDBUF = placeholder();
310454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_SNDLOWAT = placeholder();
311454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_SNDTIMEO = placeholder();
312454a95f6a28855aa3c88d168b15a45bf315efc99Elliott Hughes    public static final int SO_TYPE = placeholder();
313bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int STDERR_FILENO = placeholder();
314bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int STDIN_FILENO = placeholder();
315bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int STDOUT_FILENO = placeholder();
316bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFBLK = placeholder();
317bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFCHR = placeholder();
318bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFDIR = placeholder();
319bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFIFO = placeholder();
320bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFLNK = placeholder();
321bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFMT = placeholder();
322bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFREG = placeholder();
323bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IFSOCK = placeholder();
324bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IRGRP = placeholder();
325bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IROTH = placeholder();
326bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IRUSR = placeholder();
327bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IRWXG = placeholder();
328bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IRWXO = placeholder();
329bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IRWXU = placeholder();
330bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_ISGID = placeholder();
331bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_ISUID = placeholder();
332bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_ISVTX = placeholder();
333bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IWGRP = placeholder();
334bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IWOTH = placeholder();
335bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IWUSR = placeholder();
336bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IXGRP = placeholder();
337bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IXOTH = placeholder();
338bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int S_IXUSR = placeholder();
3390a9d1ee45a9884a9616624d747172e18734e8fe0Elliott Hughes    public static final int TCP_NODELAY = placeholder();
340bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WCONTINUED = placeholder();
341bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WEXITED = placeholder();
342bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WNOHANG = placeholder();
343bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WNOWAIT = placeholder();
344bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WSTOPPED = placeholder();
345bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int WUNTRACED = placeholder();
346bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int W_OK = placeholder();
347bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    public static final int X_OK = placeholder();
3486fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_CHAR_TERM = placeholder();
3496fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_C_BIND = placeholder();
3506fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_C_DEV = placeholder();
3516fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_C_VERSION = placeholder();
3526fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_FORT_DEV = placeholder();
3536fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_FORT_RUN = placeholder();
3546fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_LOCALEDEF = placeholder();
3556fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_SW_DEV = placeholder();
3566fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_UPE = placeholder();
3576fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_2_VERSION = placeholder();
3586fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_AIO_LISTIO_MAX = placeholder();
3596fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_AIO_MAX = placeholder();
3606fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_AIO_PRIO_DELTA_MAX = placeholder();
3616fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_ARG_MAX = placeholder();
3626fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_ASYNCHRONOUS_IO = placeholder();
3636fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_ATEXIT_MAX = placeholder();
3646fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_AVPHYS_PAGES = placeholder();
3656fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_BC_BASE_MAX = placeholder();
3666fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_BC_DIM_MAX = placeholder();
3676fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_BC_SCALE_MAX = placeholder();
3686fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_BC_STRING_MAX = placeholder();
3696fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_CHILD_MAX = placeholder();
3706fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_CLK_TCK = placeholder();
3716fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_COLL_WEIGHTS_MAX = placeholder();
3726fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_DELAYTIMER_MAX = placeholder();
3736fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_EXPR_NEST_MAX = placeholder();
3746fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_FSYNC = placeholder();
3756fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_GETGR_R_SIZE_MAX = placeholder();
3766fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_GETPW_R_SIZE_MAX = placeholder();
3776fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_IOV_MAX = placeholder();
3786fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_JOB_CONTROL = placeholder();
3796fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_LINE_MAX = placeholder();
3806fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_LOGIN_NAME_MAX = placeholder();
3816fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MAPPED_FILES = placeholder();
3826fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MEMLOCK = placeholder();
3836fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MEMLOCK_RANGE = placeholder();
3846fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MEMORY_PROTECTION = placeholder();
3856fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MESSAGE_PASSING = placeholder();
3866fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MQ_OPEN_MAX = placeholder();
3876fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_MQ_PRIO_MAX = placeholder();
3886fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_NGROUPS_MAX = placeholder();
3896fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_NPROCESSORS_CONF = placeholder();
3906fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_NPROCESSORS_ONLN = placeholder();
3916fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_OPEN_MAX = placeholder();
3926fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PAGESIZE = placeholder();
3936fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PAGE_SIZE = placeholder();
3946fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PASS_MAX = placeholder();
3956fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PHYS_PAGES = placeholder();
3966fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PRIORITIZED_IO = placeholder();
3976fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_PRIORITY_SCHEDULING = placeholder();
3986fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_REALTIME_SIGNALS = placeholder();
3996fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_RE_DUP_MAX = placeholder();
4006fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_RTSIG_MAX = placeholder();
4016fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SAVED_IDS = placeholder();
4026fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SEMAPHORES = placeholder();
4036fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SEM_NSEMS_MAX = placeholder();
4046fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SEM_VALUE_MAX = placeholder();
4056fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SHARED_MEMORY_OBJECTS = placeholder();
4066fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SIGQUEUE_MAX = placeholder();
4076fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_STREAM_MAX = placeholder();
4086fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_SYNCHRONIZED_IO = placeholder();
4096fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREADS = placeholder();
4106fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_ATTR_STACKADDR = placeholder();
4116fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_ATTR_STACKSIZE = placeholder();
4126fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_DESTRUCTOR_ITERATIONS = placeholder();
4136fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_KEYS_MAX = placeholder();
4146fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_PRIORITY_SCHEDULING = placeholder();
4156fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_PRIO_INHERIT = placeholder();
4166fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_PRIO_PROTECT = placeholder();
4176fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_SAFE_FUNCTIONS = placeholder();
4186fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_STACK_MIN = placeholder();
4196fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_THREAD_THREADS_MAX = placeholder();
4206fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_TIMERS = placeholder();
4216fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_TIMER_MAX = placeholder();
4226fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_TTY_NAME_MAX = placeholder();
4236fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_TZNAME_MAX = placeholder();
4246fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_VERSION = placeholder();
4256fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XBS5_ILP32_OFF32 = placeholder();
4266fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XBS5_ILP32_OFFBIG = placeholder();
4276fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XBS5_LP64_OFF64 = placeholder();
4286fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XBS5_LPBIG_OFFBIG = placeholder();
4296fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_CRYPT = placeholder();
4306fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_ENH_I18N = placeholder();
4316fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_LEGACY = placeholder();
4326fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_REALTIME = placeholder();
4336fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_REALTIME_THREADS = placeholder();
4346fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_SHM = placeholder();
4356fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_UNIX = placeholder();
4366fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_VERSION = placeholder();
4376fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public static final int _SC_XOPEN_XCU_VERSION = placeholder();
438bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes
4394f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    public static String gaiName(int error) {
4404f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_AGAIN) {
4414f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_AGAIN";
4424f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4434f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_BADFLAGS) {
4444f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_BADFLAGS";
4454f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4464f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_FAIL) {
4474f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_FAIL";
4484f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4494f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_FAMILY) {
4504f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_FAMILY";
4514f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4524f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_MEMORY) {
4534f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_MEMORY";
4544f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4554f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_NODATA) {
4564f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_NODATA";
4574f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4584f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_NONAME) {
4594f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_NONAME";
4604f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4614f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_OVERFLOW) {
4624f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_OVERFLOW";
4634f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4644f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_SERVICE) {
4654f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_SERVICE";
4664f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4674f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_SOCKTYPE) {
4684f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_SOCKTYPE";
4694f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4704f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        if (error == EAI_SYSTEM) {
4714f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes            return "EAI_SYSTEM";
4724f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        }
4734f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes        return null;
4744f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes    }
4754f11ebea266eada830d507b8f011e811a8e5d7bcElliott Hughes
4765b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes    public static String errnoName(int errno) {
4775b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes        if (errno == E2BIG) {
4785b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "E2BIG";
4796fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4806fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EACCES) {
4815b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EACCES";
4826fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4836fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EADDRINUSE) {
4845b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EADDRINUSE";
4856fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4866fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EADDRNOTAVAIL) {
4875b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EADDRNOTAVAIL";
4886fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4896fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EAFNOSUPPORT) {
4905b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EAFNOSUPPORT";
4916fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4926fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EAGAIN) {
4935b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EAGAIN";
4946fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4956fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EALREADY) {
4965b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EALREADY";
4976fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
4986fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EBADF) {
4995b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EBADF";
5006fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5016fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EBADMSG) {
5025b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EBADMSG";
5036fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5046fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EBUSY) {
5055b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EBUSY";
5066fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5076fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ECANCELED) {
5085b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ECANCELED";
5096fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5106fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ECHILD) {
5115b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ECHILD";
5126fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5136fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ECONNABORTED) {
5145b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ECONNABORTED";
5156fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5166fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ECONNREFUSED) {
5175b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ECONNREFUSED";
5186fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5196fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ECONNRESET) {
5205b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ECONNRESET";
5216fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5226fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EDEADLK) {
5235b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EDEADLK";
5246fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5256fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EDESTADDRREQ) {
5265b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EDESTADDRREQ";
5276fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5286fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EDOM) {
5295b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EDOM";
5306fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5316fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EDQUOT) {
5325b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EDQUOT";
5336fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5346fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EEXIST) {
5355b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EEXIST";
5366fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5376fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EFAULT) {
5385b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EFAULT";
5396fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5406fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EFBIG) {
5415b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EFBIG";
5426fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5436fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EHOSTUNREACH) {
5445b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EHOSTUNREACH";
5456fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5466fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EIDRM) {
5475b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EIDRM";
5486fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5496fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EILSEQ) {
5505b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EILSEQ";
5516fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5526fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EINPROGRESS) {
5535b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EINPROGRESS";
5546fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5556fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EINTR) {
5565b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EINTR";
5576fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5586fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EINVAL) {
5595b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EINVAL";
5606fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5616fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EIO) {
5625b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EIO";
5636fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5646fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EISCONN) {
5655b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EISCONN";
5666fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5676fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EISDIR) {
5685b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EISDIR";
5696fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5706fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ELOOP) {
5715b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ELOOP";
5726fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5736fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EMFILE) {
5745b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EMFILE";
5756fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5766fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EMLINK) {
5775b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EMLINK";
5786fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5796fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EMSGSIZE) {
5805b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EMSGSIZE";
5816fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5826fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EMULTIHOP) {
5835b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EMULTIHOP";
5846fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5856fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENAMETOOLONG) {
5865b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENAMETOOLONG";
5876fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5886fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENETDOWN) {
5895b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENETDOWN";
5906fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5916fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENETRESET) {
5925b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENETRESET";
5936fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5946fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENETUNREACH) {
5955b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENETUNREACH";
5966fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
5976fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENFILE) {
5985b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENFILE";
5996fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6006fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOBUFS) {
6015b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOBUFS";
6026fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6036fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENODATA) {
6045b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENODATA";
6056fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6066fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENODEV) {
6075b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENODEV";
6086fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6096fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOENT) {
6105b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOENT";
6116fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6126fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOEXEC) {
6135b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOEXEC";
6146fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6156fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOLCK) {
6165b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOLCK";
6176fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6186fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOLINK) {
6195b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOLINK";
6206fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6216fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOMEM) {
6225b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOMEM";
6236fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6246fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOMSG) {
6255b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOMSG";
6266fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6276fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOPROTOOPT) {
6285b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOPROTOOPT";
6296fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6306fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOSPC) {
6315b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOSPC";
6326fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6336fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOSR) {
6345b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOSR";
6356fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6366fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOSTR) {
6375b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOSTR";
6386fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6396fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOSYS) {
6405b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOSYS";
6416fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6426fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTCONN) {
6435b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTCONN";
6446fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6456fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTDIR) {
6465b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTDIR";
6476fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6486fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTEMPTY) {
6495b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTEMPTY";
6506fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6516fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTSOCK) {
6525b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTSOCK";
6536fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6546fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTSUP) {
6555b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTSUP";
6566fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6576fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENOTTY) {
6585b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENOTTY";
6596fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6606fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ENXIO) {
6615b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ENXIO";
6626fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6636fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EOPNOTSUPP) {
6645b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EOPNOTSUPP";
6656fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6666fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EOVERFLOW) {
6675b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EOVERFLOW";
6686fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6696fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EPERM) {
6705b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EPERM";
6716fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6726fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EPIPE) {
6735b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EPIPE";
6746fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6756fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EPROTO) {
6765b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EPROTO";
6776fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6786fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EPROTONOSUPPORT) {
6795b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EPROTONOSUPPORT";
6806fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6816fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EPROTOTYPE) {
6825b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EPROTOTYPE";
6836fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6846fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ERANGE) {
6855b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ERANGE";
6866fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6876fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EROFS) {
6885b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EROFS";
6896fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6906fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ESPIPE) {
6915b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ESPIPE";
6926fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6936fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ESRCH) {
6945b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ESRCH";
6956fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6966fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ESTALE) {
6975b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ESTALE";
6986fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
6996fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ETIME) {
7005b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ETIME";
7016fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
7026fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ETIMEDOUT) {
7035b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ETIMEDOUT";
7046fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
7056fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == ETXTBSY) {
7065b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "ETXTBSY";
7076fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
7086fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EWOULDBLOCK) {
7095b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EWOULDBLOCK";
7106fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        }
7116fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes        if (errno == EXDEV) {
7125b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes            return "EXDEV";
7135b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes        }
7145b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes        return null;
7155b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes    }
7165b6296d6bf06784362394e1c4b25df316d140771Elliott Hughes
717bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    private static native void initConstants();
718bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes
719bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    // A hack to avoid these constants being inlined by javac...
720bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    private static int placeholder() { return 0; }
721bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    // ...because we want to initialize them at runtime.
722bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    static {
723bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes        initConstants();
724bdb717ae237f4bb9b14b61a2d24150106ac8e6c7Elliott Hughes    }
725cdf7a1f942469221bcfd63d9cdf71851b011eaf0Elliott Hughes}
726