authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-10-20 23:36:32-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-10-20 23:36:32-07:00
log326939960399088e4fc89464eab2bfebca83793e
tree659d9a9c5f1821d9b511a931cfd90e271ad0ddbe
parent88b83f4860d1c868a2f31f8a36830235ddfcb4b2
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

uncommit wip decls


1 files changed, 12 insertions(+), 2596 deletions(-)

linux.zig+12-2596
......@@ -1038,50 +1038,10 @@ pub const libc = struct {
10381038 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/acosl.html
10391039 pub extern fn acosl(x: c_longdouble) c_longdouble;
10401040
1041 /// int aio_cancel(int fildes, struct aiocb *aiocbp);
1042 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_cancel.html
1043 // pub extern fn aio_cancel(__fildes: c_int, __aiocbp: [*c]struct_aiocb) c_int;
1044
1045 /// int aio_error(const struct aiocb *aiocbp);
1046 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_error.html
1047 // pub extern fn aio_error(__aiocbp: [*c]const struct_aiocb) c_int;
1048
1049 /// int aio_fsync(int op, struct aiocb *aiocbp);
1050 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_fsync.html
1051 // pub extern fn aio_fsync(__operation: c_int, __aiocbp: [*c]struct_aiocb) c_int;
1052
1053 /// int aio_read(struct aiocb *aiocbp);
1054 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_read.html
1055 // pub extern fn aio_read(__aiocbp: [*c]struct_aiocb) c_int;
1056
1057 /// ssize_t aio_return(struct aiocb *aiocbp);
1058 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_return.html
1059 // pub extern fn aio_return(__aiocbp: [*c]struct_aiocb) isize;
1060
1061 /// int aio_suspend(const struct aiocb *const list[], int nent, const struct timespec *timeout);
1062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_suspend.html
1063 // pub extern fn aio_suspend(__list: [*c]const [*c]const struct_aiocb, __nent: c_int, noalias __timeout: [*c]const struct_timespec) c_int;
1064
1065 /// int aio_write(struct aiocb *aiocbp);
1066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_write.html
1067 // pub extern fn aio_write(__aiocbp: [*c]struct_aiocb) c_int;
1068
10691041 /// unsigned alarm(unsigned seconds);
10701042 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/alarm.html
10711043 pub extern fn alarm(seconds: c_uint) c_uint;
10721044
1073 /// int alphasort(const struct dirent **d1, const struct dirent **d2);
1074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/alphasort.html
1075 // pub extern fn alphasort(__e1: [*c][*c]const struct_dirent, __e2: [*c][*c]const struct_dirent) c_int;
1076
1077 /// char *asctime(const struct tm *timeptr);
1078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asctime.html
1079 // pub extern fn asctime(timeptr: *struct_tm) ?[*:0]u8;
1080
1081 /// char *asctime_r(const struct tm *restrict tm, char *restrict buf);
1082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asctime_r.html
1083 // pub extern fn asctime_r(noalias tm: *const struct_tm, buf: *[26]u8) ?[25:0]u8;
1084
10851045 /// double asin(double x);
10861046 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asin.html
10871047 pub extern fn asin(x: f64) f64;
......@@ -1142,154 +1102,10 @@ pub const libc = struct {
11421102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atanl.html
11431103 pub extern fn atanl(x: c_longdouble) c_longdouble;
11441104
1145 /// int atexit(void (*func)(void));
1146 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atexit.html
1147 pub extern fn atexit(func: *const fn () callconv(.C) void) c_int;
1148
1149 /// double atof(const char *str);
1150 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atof.html
1151 pub extern fn atof(str: [*:0]const u8) f64;
1152
1153 /// int atoi(const char *str);
1154 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atoi.html
1155 pub extern fn atoi(str: [*:0]const u8) c_int;
1156
1157 /// long atol(const char *str);
1158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atol.html
1159 pub extern fn atol(str: [*:0]const u8) c_long;
1160
1161 /// long long atoll(const char *nptr);
1162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atoll.html
1163 pub extern fn atoll(nptr: [*:0]const u8) c_longlong;
1164
1165 /// char *basename(char *path);
1166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/basename.html
1167 pub extern fn basename(path: [*:0]u8) [*:0]u8;
1168
11691105 /// int bind(int socket, const struct sockaddr *address, socklen_t address_len);
11701106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/bind.html
11711107 pub extern fn bind(socket: c_int, address: *const struct_sockaddr, address_len: socklen_t) c_int;
11721108
1173 /// void *bsearch(const void *key, const void *base, size_t nel, size_t width, int (*compar)(const void *, const void *));
1174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/bsearch.html
1175 pub extern fn bsearch(key: *const anyopaque, base: *const anyopaque, nel: usize, width: usize, compar: *const fn (*const anyopaque, *const anyopaque) callconv(.C) c_int) ?*anyopaque;
1176
1177 /// wint_t btowc(int c);
1178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/btowc.html
1179 pub extern fn btowc(c: c_int) c_int;
1180
1181 /// double cabs(double complex z);
1182 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabs.html
1183 pub const cabs = @compileError("TODO cabs");
1184
1185 /// float cabsf(float complex z);
1186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabsf.html
1187 pub const cabsf = @compileError("TODO cabsf");
1188
1189 /// long double cabsl(long double complex z);
1190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabsl.html
1191 pub const cabsl = @compileError("TODO cabsl");
1192
1193 /// double complex cacos(double complex z);
1194 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacos.html
1195 pub const cacos = @compileError("TODO cacos");
1196
1197 /// float complex cacosf(float complex z);
1198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosf.html
1199 pub const cacosf = @compileError("TODO cacosf");
1200
1201 /// double complex cacosh(double complex z);
1202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosh.html
1203 pub const cacosh = @compileError("TODO cacosh");
1204
1205 /// float complex cacoshf(float complex z);
1206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacoshf.html
1207 pub const cacoshf = @compileError("TODO cacoshf");
1208
1209 /// long double complex cacoshl(long double complex z);
1210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacoshl.html
1211 pub const cacoshl = @compileError("TODO cacoshl");
1212
1213 /// long double complex cacosl(long double complex z);
1214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosl.html
1215 pub const cacosl = @compileError("TODO cacosl");
1216
1217 /// void *calloc(size_t nelem, size_t elsize);
1218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/calloc.html
1219 pub extern fn calloc(nelem: usize, elsize: usize) ?*anyopaque;
1220
1221 /// double carg(double complex z);
1222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/carg.html
1223 pub const carg = @compileError("TODO carg");
1224
1225 /// float cargf(float complex z);
1226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cargf.html
1227 pub const cargf = @compileError("TODO cargf");
1228
1229 /// long double cargl(long double complex z);
1230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cargl.html
1231 pub const cargl = @compileError("TODO cargl");
1232
1233 /// double complex casin(double complex z);
1234 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casin.html
1235 pub const casin = @compileError("TODO casin");
1236
1237 /// float complex casinf(float complex z);
1238 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinf.html
1239 pub const casinf = @compileError("TODO casinf");
1240
1241 /// double complex casinh(double complex z);
1242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinh.html
1243 pub const casinh = @compileError("TODO casinh");
1244
1245 /// float complex casinhf(float complex z);
1246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinhf.html
1247 pub const casinhf = @compileError("TODO casinhf");
1248
1249 /// long double complex casinhl(long double complex z);
1250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinhl.html
1251 pub const casinhl = @compileError("TODO casinhl");
1252
1253 /// long double complex casinl(long double complex z);
1254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinl.html
1255 pub const casinl = @compileError("TODO casinl");
1256
1257 /// double complex catan(double complex z);
1258 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catan.html
1259 pub const catan = @compileError("TODO catan");
1260
1261 /// float complex catanf(float complex z);
1262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanf.html
1263 pub const catanf = @compileError("TODO catanf");
1264
1265 /// double complex catanh(double complex z);
1266 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanh.html
1267 pub const catanh = @compileError("TODO catanh");
1268
1269 /// float complex catanhf(float complex z);
1270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanhf.html
1271 pub const catanhf = @compileError("TODO catanhf");
1272
1273 /// long double complex catanhl(long double complex z);
1274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanhl.html
1275 pub const catanhl = @compileError("TODO catanhl");
1276
1277 /// long double complex catanl(long double complex z);
1278 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanl.html
1279 pub const catanl = @compileError("TODO catanl");
1280
1281 /// int catclose(nl_catd catd);
1282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catclose.html
1283 pub extern fn catclose(catd: nl_catd) c_int;
1284
1285 /// char *catgets(nl_catd catd, int set_id, int msg_id, const char *s);
1286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catgets.html
1287 pub extern fn catgets(catd: nl_catd, set_id: c_int, msg_id: c_int, s: [*:0]const u8) [*:0]u8;
1288
1289 /// nl_catd catopen(const char *name, int oflag);
1290 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catopen.html
1291 pub extern fn catopen(name: [*:0]const u8, oflag: c_int) nl_catd;
1292
12931109 /// double cbrt(double x);
12941110 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cbrt.html
12951111 pub extern fn cbrt(x: f64) f64;
......@@ -1302,30 +1118,6 @@ pub const libc = struct {
13021118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cbrtl.html
13031119 pub extern fn cbrtl(x: c_longdouble) c_longdouble;
13041120
1305 /// double complex ccos(double complex z);
1306 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccos.html
1307 pub const ccos = @compileError("TODO ccos");
1308
1309 /// float complex ccosf(float complex z);
1310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosf.html
1311 pub const ccosf = @compileError("TODO ccosf");
1312
1313 /// double complex ccosh(double complex z);
1314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosh.html
1315 pub const ccosh = @compileError("TODO ccosh");
1316
1317 /// float complex ccoshf(float complex z);
1318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccoshf.html
1319 pub const ccoshf = @compileError("TODO ccoshf");
1320
1321 /// long double complex ccoshl(long double complex z);
1322 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccoshl.html
1323 pub const ccoshl = @compileError("TODO ccoshl");
1324
1325 /// long double complex ccosl(long double complex z);
1326 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosl.html
1327 pub const ccosl = @compileError("TODO ccosl");
1328
13291121 /// double ceil(double x);
13301122 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceil.html
13311123 pub extern fn ceil(x: f64) f64;
......@@ -1338,34 +1130,6 @@ pub const libc = struct {
13381130 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceill.html
13391131 pub extern fn ceill(x: c_longdouble) c_longdouble;
13401132
1341 /// double complex cexp(double complex z);
1342 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexp.html
1343 pub const cexp = @compileError("TODO cexp");
1344
1345 /// float complex cexpf(float complex z);
1346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexpf.html
1347 pub const cexpf = @compileError("TODO cexpf");
1348
1349 /// long double complex cexpl(long double complex z);
1350 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexpl.html
1351 pub const cexpl = @compileError("TODO cexpl");
1352
1353 /// speed_t cfgetispeed(const struct termios *termios_p);
1354 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfgetispeed.html
1355 // pub extern fn cfgetispeed(__termios_p: [*c]const struct_termios) speed_t;
1356
1357 /// speed_t cfgetospeed(const struct termios *termios_p);
1358 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfgetospeed.html
1359 // pub extern fn cfgetospeed(__termios_p: [*c]const struct_termios) speed_t;
1360
1361 /// int cfsetispeed(struct termios *termios_p, speed_t speed);
1362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfsetispeed.html
1363 // pub extern fn cfsetispeed(__termios_p: [*c]struct_termios, __speed: speed_t) c_int;
1364
1365 /// int cfsetospeed(struct termios *termios_p, speed_t speed);
1366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfsetospeed.html
1367 // pub extern fn cfsetospeed(__termios_p: [*c]struct_termios, __speed: speed_t) c_int;
1368
13691133 /// int chdir(const char *path);
13701134 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chdir.html
13711135 pub extern fn chdir(path: [*:0]const u8) c_int;
......@@ -1378,22 +1142,6 @@ pub const libc = struct {
13781142 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chown.html
13791143 pub extern fn chown(path: [*:0]const u8, owner: uid_t, group: gid_t) c_int;
13801144
1381 /// double cimag(double complex z);
1382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimag.html
1383 pub const cimag = @compileError("TODO cimag");
1384
1385 /// float cimagf(float complex z);
1386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimagf.html
1387 pub const cimagf = @compileError("TODO cimagf");
1388
1389 /// long double cimagl(long double complex z);
1390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimagl.html
1391 pub const cimagl = @compileError("TODO cimagl");
1392
1393 /// void clearerr(FILE *stream);
1394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clearerr.html
1395 pub extern fn clearerr(stream: *FILE) void;
1396
13971145 /// clock_t clock(void);
13981146 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock.html
13991147 pub extern fn clock() clock_t;
......@@ -1410,54 +1158,14 @@ pub const libc = struct {
14101158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_gettime.html
14111159 pub extern fn clock_gettime(clock_id: clockid_t, tp: *struct_timespec) c_int;
14121160
1413 /// int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp);
1414 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_nanosleep.html
1415 pub extern fn clock_nanosleep(clock_id: clockid_t, flags: c_int, rqtp: *const struct_timespec, rmtp: ?*struct_timespec) c_int;
1416
1417 /// int clock_settime(clockid_t clock_id, const struct timespec *tp);
1418 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_settime.html
1419 pub extern fn clock_settime(clock_id: clockid_t, tp: *const struct_timespec) c_int;
1420
1421 /// double complex clog(double complex z);
1422 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clog.html
1423 pub const clog = @compileError("TODO clog");
1424
1425 /// float complex clogf(float complex z);
1426 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clogf.html
1427 pub const clogf = @compileError("TODO clogf");
1428
1429 /// long double complex clogl(long double complex z);
1430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clogl.html
1431 pub const clogl = @compileError("TODO clogl");
1432
14331161 /// int close(int fildes);
14341162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/close.html
14351163 pub extern fn close(fildes: c_int) c_int;
14361164
1437 /// int closedir(DIR *dirp);
1438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/closedir.html
1439 pub extern fn closedir(dirp: *DIR) c_int;
1440
14411165 /// void closelog(void);
14421166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/closelog.html
14431167 pub extern fn closelog() void;
14441168
1445 /// size_t confstr(int name, char *buf, size_t len);
1446 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/confstr.html
1447 pub extern fn confstr(name: c_int, buf: ?[*:0]u8, len: usize) usize;
1448
1449 /// double complex conj(double complex z);
1450 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conj.html
1451 pub const conj = @compileError("TODO conj");
1452
1453 /// float complex conjf(float complex z);
1454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conjf.html
1455 pub const conjf = @compileError("TODO conjf");
1456
1457 /// long double complex conjl(long double complex z);
1458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conjl.html
1459 pub const conjl = @compileError("TODO conjl");
1460
14611169 /// int connect(int socket, const struct sockaddr *address, socklen_t address_len);
14621170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/connect.html
14631171 pub extern fn connect(socket: c_int, address: *const struct_sockaddr, address_len: socklen_t) c_int;
......@@ -1498,194 +1206,14 @@ pub const libc = struct {
14981206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cosl.html
14991207 pub extern fn cosl(x: c_longdouble) c_longdouble;
15001208
1501 /// double complex cpow(double complex x, double complex y);
1502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpow.html
1503 pub const cpow = @compileError("TODO cpow");
1504
1505 /// float complex cpowf(float complex x, float complex y);
1506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpowf.html
1507 pub const cpowf = @compileError("TODO cpowf");
1508
1509 /// long double complex cpowl(long double complex x, long double complex y);
1510 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpowl.html
1511 pub const cpowl = @compileError("TODO cpowl");
1512
1513 /// double complex cproj(double complex z);
1514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cproj.html
1515 pub const cproj = @compileError("TODO cproj");
1516
1517 /// float complex cprojf(float complex z);
1518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cprojf.html
1519 pub const cprojf = @compileError("TODO cprojf");
1520
1521 /// long double complex cprojl(long double complex z);
1522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cprojl.html
1523 pub const cprojl = @compileError("TODO cprojl");
1524
1525 /// double creal(double complex z);
1526 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creal.html
1527 pub const creal = @compileError("TODO creal");
1528
1529 /// float crealf(float complex z);
1530 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/crealf.html
1531 pub const crealf = @compileError("TODO crealf");
1532
1533 /// long double creall(long double complex z);
1534 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creall.html
1535 pub const creall = @compileError("TODO creall");
1536
1537 /// int creat(const char *path, mode_t mode);
1538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creat.html
1539 pub extern fn creat(path: [*:0]const u8, mode: mode_t) c_int;
1540
1541 /// char *crypt(const char *key, const char *salt);
1542 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/crypt.html
1543 pub extern fn crypt(key: [*:0]const u8, salt: [*]const u8) ?[*:0]u8;
1544
1545 /// double complex csin(double complex z);
1546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csin.html
1547 pub const csin = @compileError("TODO csin");
1548
1549 /// float complex csinf(float complex z);
1550 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinf.html
1551 pub const csinf = @compileError("TODO csinf");
1552
1553 /// double complex csinh(double complex z);
1554 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinh.html
1555 pub const csinh = @compileError("TODO csinh");
1556
1557 /// float complex csinhf(float complex z);
1558 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinhf.html
1559 pub const csinhf = @compileError("TODO csinhf");
1560
1561 /// long double complex csinhl(long double complex z);
1562 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinhl.html
1563 pub const csinhl = @compileError("TODO csinhl");
1564
1565 /// long double complex csinl(long double complex z);
1566 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinl.html
1567 pub const csinl = @compileError("TODO csinl");
1568
1569 /// double complex csqrt(double complex z);
1570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrt.html
1571 pub const csqrt = @compileError("TODO csqrt");
1572
1573 /// float complex csqrtf(float complex z);
1574 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrtf.html
1575 pub const csqrtf = @compileError("TODO csqrtf");
1576
1577 /// long double complex csqrtl(long double complex z);
1578 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrtl.html
1579 pub const csqrtl = @compileError("TODO csqrtl");
1580
1581 /// double complex ctan(double complex z);
1582 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctan.html
1583 pub const ctan = @compileError("TODO ctan");
1584
1585 /// float complex ctanf(float complex z);
1586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanf.html
1587 pub const ctanf = @compileError("TODO ctanf");
1588
1589 /// double complex ctanh(double complex z);
1590 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanh.html
1591 pub const ctanh = @compileError("TODO ctanh");
1592
1593 /// float complex ctanhf(float complex z);
1594 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanhf.html
1595 pub const ctanhf = @compileError("TODO ctanhf");
1596
1597 /// long double complex ctanhl(long double complex z);
1598 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanhl.html
1599 pub const ctanhl = @compileError("TODO ctanhl");
1600
1601 /// long double complex ctanl(long double complex z);
1602 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanl.html
1603 pub const ctanl = @compileError("TODO ctanl");
1604
1605 /// char *ctermid(char *s);
1606 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctermid.html
1607 pub extern fn ctermid(s: ?[*:0]u8) [*:0]u8;
1608
1609 /// char *ctime(const time_t *clock);
1610 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctime.html
1611 pub extern fn ctime(clock: *const time_t) ?[*:0]u8;
1612
1613 /// char *ctime_r(const time_t *clock, char *buf);
1614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctime_r.html
1615 pub extern fn ctime_r(noalias clock: [*c]const time_t, noalias buf: [*]u8) ?[*:0]u8;
1616
1617 /// int dbm_clearerr(DBM *db);
1618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_clearerr.html
1619 pub const dbm_clearerr = @compileError("TODO dbm_clearerr");
1620
1621 /// void dbm_close(DBM *db);
1622 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_close.html
1623 pub const dbm_close = @compileError("TODO dbm_close");
1624
1625 /// int dbm_delete(DBM *db, datum key);
1626 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_delete.html
1627 pub const dbm_delete = @compileError("TODO dbm_delete");
1628
1629 /// int dbm_error(DBM *db);
1630 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_error.html
1631 pub const dbm_error = @compileError("TODO dbm_error");
1632
1633 /// datum dbm_fetch(DBM *db, datum key);
1634 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_fetch.html
1635 pub const dbm_fetch = @compileError("TODO dbm_fetch");
1636
1637 /// datum dbm_firstkey(DBM *db);
1638 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_firstkey.html
1639 pub const dbm_firstkey = @compileError("TODO dbm_firstkey");
1640
1641 /// datum dbm_nextkey(DBM *db);
1642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_nextkey.html
1643 pub const dbm_nextkey = @compileError("TODO dbm_nextkey");
1644
1645 /// DBM *dbm_open(const char *file, int open_flags, mode_t file_mode);
1646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_open.html
1647 pub const dbm_open = @compileError("TODO dbm_open");
1648
1649 /// int dbm_store(DBM *db, datum key, datum content, int store_mode);
1650 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_store.html
1651 pub const dbm_store = @compileError("TODO dbm_store");
1652
1653 /// double difftime(time_t time1, time_t time0);
1654 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/difftime.html
1655 pub extern fn difftime(time1: time_t, time0: time_t) f64;
1656
1657 /// int dirfd(DIR *dirp);
1658 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dirfd.html
1659 pub extern fn dirfd(dirp: *DIR) c_int;
1660
1661 /// char *dirname(char *path);
1662 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dirname.html
1663 pub extern fn dirname(path: ?[*:0]u8) [*:0]u8;
1664
16651209 /// div_t div(int numer, int denom);
16661210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/div.html
16671211 pub extern fn div(numer: c_int, denom: c_int) div_t;
16681212
1669 /// int dlclose(void *handle);
1670 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlclose.html
1671 pub extern fn dlclose(handle: *anyopaque) c_int;
1672
16731213 /// char *dlerror(void);
16741214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlerror.html
16751215 pub extern fn dlerror() ?[*:0]u8;
16761216
1677 /// void *dlopen(const char *file, int mode);
1678 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlopen.html
1679 pub extern fn dlopen(file: [*:0]const u8, mode: c_int) ?*anyopaque;
1680
1681 /// void *dlsym(void *restrict handle, const char *restrict name);
1682 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlsym.html
1683 pub extern fn dlsym(noalias handle: *anyopaque, noalias name: [*:0]const u8) ?*anyopaque;
1684
1685 /// int dprintf(int fildes, const char *restrict format, ...);
1686 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dprintf.html
1687 pub extern fn dprintf(__fd: c_int, noalias __fmt: [*c]const u8, ...) c_int;
1688
16891217 /// double drand48(void);
16901218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/drand48.html
16911219 pub extern fn drand48() f64;
......@@ -1698,14 +1226,6 @@ pub const libc = struct {
16981226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dup2.html
16991227 pub extern fn dup2(fildes: c_int, fildes2: c_int) c_int;
17001228
1701 /// locale_t duplocale(locale_t locobj);
1702 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/duplocale.html
1703 pub extern fn duplocale(locobj: locale_t) ?locale_t;
1704
1705 /// void encrypt(char block[64], int edflag);
1706 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/encrypt.html
1707 pub const encrypt = @compileError("TODO encrypt");
1708
17091229 /// void endgrent(void);
17101230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endgrent.html
17111231 pub extern fn endgrent() void;
......@@ -1762,26 +1282,6 @@ pub const libc = struct {
17621282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erfl.html
17631283 pub extern fn erfl(x: c_longdouble) c_longdouble;
17641284
1765 /// int execl(const char *path, const char *arg0, ... /*, (char *)0 */);
1766 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execl.html
1767 pub extern fn execl(__path: [*c]const u8, __arg: [*c]const u8, ...) c_int;
1768
1769 /// int execle(const char *path, const char *arg0, ... /*, (char *)0, char *const envp[]*/);
1770 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execle.html
1771 pub extern fn execle(__path: [*c]const u8, __arg: [*c]const u8, ...) c_int;
1772
1773 /// int execlp(const char *file, const char *arg0, ... /*, (char *)0 */);
1774 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execlp.html
1775 pub extern fn execlp(__file: [*c]const u8, __arg: [*c]const u8, ...) c_int;
1776
1777 /// int execv(const char *path, char *const argv[]);
1778 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execv.html
1779 pub extern fn execv(__path: [*c]const u8, __argv: [*c]const [*c]u8) c_int;
1780
1781 /// int execve(const char *path, char *const argv[], char *const envp[]);
1782 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execve.html
1783 pub extern fn execve(__path: [*c]const u8, __argv: [*c]const [*c]u8, __envp: [*c]const [*c]u8) c_int;
1784
17851285 /// int execvp(const char *file, char *const argv[]);
17861286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execvp.html
17871287 pub extern fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int;
......@@ -1842,10 +1342,6 @@ pub const libc = struct {
18421342 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/faccessat.html
18431343 pub extern fn faccessat(fd: c_int, path: [*:0]const u8, amode: c_int, flag: c_int) c_int;
18441344
1845 /// int fattach(int fildes, const char *path);
1846 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fattach.html
1847 pub const fattach = @compileError("TODO fattach");
1848
18491345 /// int fchdir(int fildes);
18501346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchdir.html
18511347 pub extern fn fchdir(fildes: c_int) c_int;
......@@ -1866,22 +1362,10 @@ pub const libc = struct {
18661362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchownat.html
18671363 pub extern fn fchownat(fd: c_int, path: [*:0]const u8, owner: uid_t, group: gid_t, flag: c_int) c_int;
18681364
1869 /// int fclose(FILE *stream);
1870 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fclose.html
1871 pub extern fn fclose(stream: *FILE) c_int;
1872
1873 /// int fcntl(int fildes, int cmd, ...);
1874 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fcntl.html
1875 pub extern fn fcntl(__fd: c_int, __cmd: c_int, ...) c_int;
1876
18771365 /// int fdatasync(int fildes);
18781366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdatasync.html
18791367 pub extern fn fdatasync(fildes: c_int) c_int;
18801368
1881 /// int fdetach(const char *path);
1882 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdetach.html
1883 pub const fdetach = @compileError("TODO fdetach");
1884
18851369 /// double fdim(double x, double y);
18861370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdim.html
18871371 pub extern fn fdim(x: f64, y: f64) f64;
......@@ -1894,54 +1378,10 @@ pub const libc = struct {
18941378 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdiml.html
18951379 pub extern fn fdiml(x: c_longdouble, y: c_longdouble) c_longdouble;
18961380
1897 /// FILE *fdopen(int fildes, const char *mode);
1898 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdopen.html
1899 pub extern fn fdopen(__fd: c_int, __modes: [*c]const u8) [*c]FILE;
1900
1901 /// DIR *fdopendir(int fd);
1902 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdopendir.html
1903 pub extern fn fdopendir(__fd: c_int) ?*DIR;
1904
1905 /// int feclearexcept(int excepts);
1906 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feclearexcept.html
1907 pub extern fn feclearexcept(excepts: c_int) c_int;
1908
1909 /// int fegetenv(fenv_t *envp);
1910 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetenv.html
1911 // pub extern fn fegetenv(__envp: ?*fenv_t) c_int;
1912
1913 /// int fegetexceptflag(fexcept_t *flagp, int excepts);
1914 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetexceptflag.html
1915 // pub extern fn fegetexceptflag(__flagp: [*c]fexcept_t, __excepts: c_int) c_int;
1916
19171381 /// int fegetround(void);
19181382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetround.html
19191383 pub extern fn fegetround() c_int;
19201384
1921 /// int feholdexcept(fenv_t *envp);
1922 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feholdexcept.html
1923 // pub extern fn feholdexcept(__envp: ?*fenv_t) c_int;
1924
1925 /// int feof(FILE *stream);
1926 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feof.html
1927 pub extern fn feof(__stream: [*c]FILE) c_int;
1928
1929 /// int feraiseexcept(int excepts);
1930 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feraiseexcept.html
1931 pub extern fn feraiseexcept(excepts: c_int) c_int;
1932
1933 /// int ferror(FILE *stream);
1934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ferror.html
1935 pub extern fn ferror(__stream: [*c]FILE) c_int;
1936
1937 /// int fesetenv(const fenv_t *envp);
1938 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetenv.html
1939 // pub extern fn fesetenv(__envp: ?*const fenv_t) c_int;
1940
1941 /// int fesetexceptflag(const fexcept_t *flagp, int excepts);
1942 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetexceptflag.html
1943 // pub extern fn fesetexceptflag(__flagp: [*c]const fexcept_t, __excepts: c_int) c_int;
1944
19451385 /// int fesetround(int round);
19461386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetround.html
19471387 pub extern fn fesetround(round: c_int) c_int;
......@@ -1950,50 +1390,10 @@ pub const libc = struct {
19501390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fetestexcept.html
19511391 pub extern fn fetestexcept(excepts: c_int) c_int;
19521392
1953 /// int feupdateenv(const fenv_t *envp);
1954 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feupdateenv.html
1955 // pub extern fn feupdateenv(__envp: ?*const fenv_t) c_int;
1956
1957 /// int fexecve(int fd, char *const argv[], char *const envp[]);
1958 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fexecve.html
1959 pub extern fn fexecve(__fd: c_int, __argv: [*c]const [*c]u8, __envp: [*c]const [*c]u8) c_int;
1960
1961 /// int fflush(FILE *stream);
1962 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fflush.html
1963 pub extern fn fflush(__stream: [*c]FILE) c_int;
1964
19651393 /// int ffs(int i);
19661394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ffs.html
19671395 pub extern fn ffs(i: c_int) c_int;
19681396
1969 /// int fgetc(FILE *stream);
1970 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetc.html
1971 pub extern fn fgetc(__stream: [*c]FILE) c_int;
1972
1973 /// int fgetpos(FILE *restrict stream, fpos_t *restrict pos);
1974 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetpos.html
1975 // pub extern fn fgetpos(noalias __stream: [*c]FILE, noalias __pos: [*c]fpos_t) c_int;
1976
1977 /// char *fgets(char *restrict s, int n, FILE *restrict stream);
1978 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgets.html
1979 pub extern fn fgets(noalias __s: [*c]u8, __n: c_int, noalias __stream: [*c]FILE) [*c]u8;
1980
1981 /// wint_t fgetwc(FILE *stream);
1982 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetwc.html
1983 // pub extern fn fgetwc(__stream: [*c]__FILE) wint_t;
1984
1985 /// wchar_t *fgetws(wchar_t *restrict ws, int n, FILE *restrict stream);
1986 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetws.html
1987 // pub extern fn fgetws(noalias __ws: [*c]wchar_t, __n: c_int, noalias __stream: [*c]__FILE) [*c]wchar_t;
1988
1989 /// int fileno(FILE *stream);
1990 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fileno.html
1991 pub extern fn fileno(__stream: [*c]FILE) c_int;
1992
1993 /// void flockfile(FILE *file);
1994 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/flockfile.html
1995 pub extern fn flockfile(__stream: [*c]FILE) void;
1996
19971397 /// double floor(double x);
19981398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/floor.html
19991399 pub extern fn floor(x: f64) f64;
......@@ -2030,10 +1430,6 @@ pub const libc = struct {
20301430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmaxl.html
20311431 pub extern fn fmaxl(x: c_longdouble, y: c_longdouble) c_longdouble;
20321432
2033 /// FILE *fmemopen(void *restrict buf, size_t size, const char *restrict mode);
2034 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmemopen.html
2035 pub extern fn fmemopen(__s: ?*anyopaque, __len: usize, __modes: [*c]const u8) [*c]FILE;
2036
20371433 /// double fmin(double x, double y);
20381434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmin.html
20391435 pub extern fn fmin(x: f64, y: f64) f64;
......@@ -2058,18 +1454,6 @@ pub const libc = struct {
20581454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmodl.html
20591455 pub extern fn fmodl(x: c_longdouble, y: c_longdouble) c_longdouble;
20601456
2061 /// int fmtmsg(long classification, const char *label, int severity, const char *text, const char *action, const char *tag);
2062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmtmsg.html
2063 pub extern fn fmtmsg(__classification: c_long, __label: [*c]const u8, __severity: c_int, __text: [*c]const u8, __action: [*c]const u8, __tag: [*c]const u8) c_int;
2064
2065 /// int fnmatch(const char *pattern, const char *string, int flags);
2066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fnmatch.html
2067 pub extern fn fnmatch(__pattern: [*c]const u8, __name: [*c]const u8, __flags: c_int) c_int;
2068
2069 /// FILE *fopen(const char *restrict filename, const char *restrict mode);
2070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fopen.html
2071 pub extern fn fopen(__filename: [*c]const u8, __modes: [*c]const u8) [*c]FILE;
2072
20731457 /// pid_t fork(void);
20741458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fork.html
20751459 pub extern fn fork() pid_t;
......@@ -2078,30 +1462,6 @@ pub const libc = struct {
20781462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html
20791463 pub extern fn fpathconf(fildes: c_int, name: c_int) c_long;
20801464
2081 /// int fprintf(FILE *restrict stream, const char *restrict format, ...);
2082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fprintf.html
2083 pub extern fn fprintf(__stream: [*c]FILE, __format: [*c]const u8, ...) c_int;
2084
2085 /// int fputc(int c, FILE *stream);
2086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputc.html
2087 pub extern fn fputc(__c: c_int, __stream: [*c]FILE) c_int;
2088
2089 /// int fputs(const char *restrict s, FILE *restrict stream);
2090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputs.html
2091 pub extern fn fputs(noalias __s: [*c]const u8, noalias __stream: [*c]FILE) c_int;
2092
2093 /// wint_t fputwc(wchar_t wc, FILE *stream);
2094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputwc.html
2095 // pub extern fn fputwc(__wc: wchar_t, __stream: [*c]__FILE) wint_t;
2096
2097 /// int fputws(const wchar_t *restrict ws, FILE *restrict stream);
2098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputws.html
2099 // pub extern fn fputws(noalias __ws: [*c]const wchar_t, noalias __stream: [*c]__FILE) c_int;
2100
2101 /// size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
2102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fread.html
2103 pub extern fn fread(__ptr: ?*anyopaque, __size: c_ulong, __n: c_ulong, __stream: [*c]FILE) c_ulong;
2104
21051465 /// void free(void *ptr);
21061466 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/free.html
21071467 pub extern fn free(ptr: ?*anyopaque) void;
......@@ -2114,10 +1474,6 @@ pub const libc = struct {
21141474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/freelocale.html
21151475 pub extern fn freelocale(locobj: locale_t) void;
21161476
2117 /// FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict stream);
2118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/freopen.html
2119 pub extern fn freopen(noalias __filename: [*c]const u8, noalias __modes: [*c]const u8, noalias __stream: [*c]FILE) [*c]FILE;
2120
21211477 /// double frexp(double num, int *exp);
21221478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexp.html
21231479 pub extern fn frexp(x: f64, exp: *c_int) f64;
......@@ -2130,22 +1486,6 @@ pub const libc = struct {
21301486 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexpl.html
21311487 pub extern fn frexpl(x: c_longdouble, exp: *c_int) c_longdouble;
21321488
2133 /// int fscanf(FILE *restrict stream, const char *restrict format, ...);
2134 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fscanf.html
2135 pub extern fn fscanf(noalias __stream: [*c]FILE, noalias __format: [*c]const u8, ...) c_int;
2136
2137 /// int fseek(FILE *stream, long offset, int whence);
2138 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fseek.html
2139 pub extern fn fseek(__stream: [*c]FILE, __off: c_long, __whence: c_int) c_int;
2140
2141 /// int fseeko(FILE *stream, off_t offset, int whence);
2142 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fseeko.html
2143 // pub extern fn fseeko(__stream: [*c]FILE, __off: off_t, __whence: c_int) c_int;
2144
2145 /// int fsetpos(FILE *stream, const fpos_t *pos);
2146 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsetpos.html
2147 // pub extern fn fsetpos(__stream: [*c]FILE, __pos: [*c]const fpos_t) c_int;
2148
21491489 /// int fstat(int fildes, struct stat *buf);
21501490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html
21511491 pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int;
......@@ -2154,78 +1494,18 @@ pub const libc = struct {
21541494 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstatat.html
21551495 pub extern fn fstatat(fd: c_int, noalias path: [*:0]const u8, noalias buf: *struct_stat, flag: c_int) c_int;
21561496
2157 /// int fstatvfs(int fildes, struct statvfs *buf);
2158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstatvfs.html
2159 // pub extern fn fstatvfs(__fildes: c_int, __buf: [*c]struct_statvfs) c_int;
2160
21611497 /// int fsync(int fildes);
21621498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsync.html
21631499 pub extern fn fsync(fd: c_int) c_int;
21641500
2165 /// long ftell(FILE *stream);
2166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftell.html
2167 pub extern fn ftell(__stream: [*c]FILE) c_long;
2168
2169 /// off_t ftello(FILE *stream);
2170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftello.html
2171 // pub extern fn ftello(__stream: [*c]FILE) off_t;
2172
2173 /// key_t ftok(const char *path, int id);
2174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftok.html
2175 // pub extern fn ftok(__pathname: [*c]const u8, __proj_id: c_int) key_t;
2176
2177 /// int ftruncate(int fildes, off_t length);
2178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftruncate.html
2179 // pub extern fn ftruncate(__fd: c_int, __length: off_t) c_int;
2180
2181 /// int ftrylockfile(FILE *file);
2182 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftrylockfile.html
2183 pub extern fn ftrylockfile(__stream: [*c]FILE) c_int;
2184
2185 /// int ftw(const char *path, int (*fn)(const char *, const struct stat *ptr, int flag), int ndirs);
2186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftw.html
2187 // pub extern fn ftw(__dir: [*c]const u8, __func: __ftw_func_t, __descriptors: c_int) c_int;
2188
2189 /// void funlockfile(FILE *file);
2190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/funlockfile.html
2191 pub extern fn funlockfile(__stream: [*c]FILE) void;
2192
21931501 /// int futimens(int fd, const struct timespec times[2]);
21941502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/futimens.html
21951503 pub extern fn futimens(fd: c_int, times: *const [2]struct_timespec) c_int;
21961504
2197 /// int fwide(FILE *stream, int mode);
2198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwide.html
2199 // pub extern fn fwide(__fp: [*c]__FILE, __mode: c_int) c_int;
2200
2201 /// int fwprintf(FILE *restrict stream, const wchar_t *restrict format, ...);
2202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwprintf.html
2203 // pub extern fn fwprintf(noalias __stream: [*c]__FILE, noalias __format: [*c]const wchar_t, ...) c_int;
2204
2205 /// size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream);
2206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwrite.html
2207 pub extern fn fwrite(__ptr: ?*const anyopaque, __size: c_ulong, __n: c_ulong, __s: [*c]FILE) c_ulong;
2208
2209 /// int fwscanf(FILE *restrict stream, const wchar_t *restrict format, ...);
2210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwscanf.html
2211 // pub extern fn fwscanf(noalias __stream: [*c]__FILE, noalias __format: [*c]const wchar_t, ...) c_int;
2212
2213 /// const char *gai_strerror(int ecode);
2214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gai_strerror.html
2215 pub extern fn gai_strerror(__ecode: c_int) [*c]const u8;
2216
22171505 /// int getaddrinfo(const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res);
22181506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getaddrinfo.html
22191507 pub extern fn getaddrinfo(noalias nodename: ?[*:0]const u8, noalias servname: ?[*:0]const u8, noalias req: ?*const struct_addrinfo, noalias pai: **const struct_addrinfo) c_int;
22201508
2221 /// int getc(FILE *stream);
2222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getc.html
2223 pub extern fn getc(__stream: [*c]FILE) c_int;
2224
2225 /// int getc_unlocked(FILE *stream);
2226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getc_unlocked.html
2227 pub extern fn getc_unlocked(__stream: [*c]FILE) c_int;
2228
22291509 /// int getchar(void);
22301510 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html
22311511 pub extern fn getchar() c_int;
......@@ -2238,14 +1518,6 @@ pub const libc = struct {
22381518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getcwd.html
22391519 pub extern fn getcwd(buf: [*]u8, size: usize) ?[*:0]u8;
22401520
2241 /// struct tm *getdate(const char *string);
2242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getdate.html
2243 pub const getdate = @compileError("TODO getdate");
2244
2245 /// ssize_t getdelim(char **restrict lineptr, size_t *restrict n, int delimiter, FILE *restrict stream);
2246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getdelim.html
2247 pub extern fn getdelim(noalias __lineptr: [*c][*c]u8, noalias __n: [*c]usize, __delimiter: c_int, noalias __stream: [*c]FILE) isize;
2248
22491521 /// gid_t getegid(void);
22501522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getegid.html
22511523 pub extern fn getegid() gid_t;
......@@ -2270,22 +1542,10 @@ pub const libc = struct {
22701542 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrgid.html
22711543 pub extern fn getgrgid(gid: gid_t) ?*struct_group;
22721544
2273 /// int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struct group **result);
2274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrgid_r.html
2275 pub extern fn getgrgid_r(__gid: gid_t, noalias __resultbuf: [*c]struct_group, noalias __buffer: [*c]u8, __buflen: usize, noalias __result: [*c][*c]struct_group) c_int;
2276
22771545 /// struct group *getgrnam(const char *name);
22781546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrnam.html
22791547 pub extern fn getgrnam(name: [*:0]const u8) ?*struct_group;
22801548
2281 /// int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result);
2282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrnam_r.html
2283 pub extern fn getgrnam_r(noalias __name: [*c]const u8, noalias __resultbuf: [*c]struct_group, noalias __buffer: [*c]u8, __buflen: usize, noalias __result: [*c][*c]struct_group) c_int;
2284
2285 /// int getgroups(int gidsetsize, gid_t grouplist[]);
2286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgroups.html
2287 pub extern fn getgroups(__size: c_int, __list: [*c]gid_t) c_int;
2288
22891549 /// struct hostent *gethostent(void);
22901550 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostent.html
22911551 pub extern fn gethostent() ?*struct_hostent;
......@@ -2298,30 +1558,6 @@ pub const libc = struct {
22981558 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostname.html
22991559 pub extern fn gethostname(name: [*:0]u8, len: usize) c_int;
23001560
2301 /// int getitimer(int which, struct itimerval *value);
2302 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getitimer.html
2303 // pub extern fn getitimer(__which: __itimer_which_t, __value: [*c]struct_itimerval) c_int;
2304
2305 /// ssize_t getline(char **restrict lineptr, size_t *restrict n, FILE *restrict stream);
2306 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getline.html
2307 pub extern fn getline(noalias __lineptr: [*c][*c]u8, noalias __n: [*c]usize, noalias __stream: [*c]FILE) isize;
2308
2309 /// char *getlogin(void);
2310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getlogin.html
2311 pub extern fn getlogin() ?[*:0]u8;
2312
2313 /// int getlogin_r(char *name, size_t namesize);
2314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getlogin_r.html
2315 pub extern fn getlogin_r(__name: [*c]u8, __name_len: usize) c_int;
2316
2317 /// int getmsg(int fildes, struct strbuf *restrict ctlptr, struct strbuf *restrict dataptr, int *restrict flagsp);
2318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getmsg.html
2319 pub const getmsg = @compileError("TODO getmsg");
2320
2321 /// int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags);
2322 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnameinfo.html
2323 pub extern fn getnameinfo(noalias __sa: [*c]const struct_sockaddr, __salen: socklen_t, noalias __host: [*c]u8, __hostlen: socklen_t, noalias __serv: [*c]u8, __servlen: socklen_t, __flags: c_int) c_int;
2324
23251561 /// struct netent *getnetbyaddr(uint32_t net, int type);
23261562 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetbyaddr.html
23271563 pub extern fn getnetbyaddr(net: u32, type: c_int) ?*struct_netent;
......@@ -2334,14 +1570,6 @@ pub const libc = struct {
23341570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetent.html
23351571 pub extern fn getnetent() ?*struct_netent;
23361572
2337 /// int getopt(int argc, char * const argv[], const char *optstring);
2338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getopt.html
2339 pub extern fn getopt(___argc: c_int, ___argv: [*c]const [*c]u8, __shortopts: [*c]const u8) c_int;
2340
2341 /// int getpeername(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len);
2342 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpeername.html
2343 pub extern fn getpeername(__fd: c_int, noalias __addr: [*c]struct_sockaddr, noalias __len: [*c]socklen_t) c_int;
2344
23451573 /// pid_t getpgid(pid_t pid);
23461574 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpgid.html
23471575 pub extern fn getpgid(pid: pid_t) pid_t;
......@@ -2354,18 +1582,10 @@ pub const libc = struct {
23541582 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpid.html
23551583 pub extern fn getpid() pid_t;
23561584
2357 /// int getpmsg(int fildes, struct strbuf *restrict ctlptr, struct strbuf *restrict dataptr, int *restrict bandp, int *restrict flagsp);
2358 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpmsg.html
2359 pub const getpmsg = @compileError("TODO getpmsg");
2360
23611585 /// pid_t getppid(void);
23621586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html
23631587 pub extern fn getppid() pid_t;
23641588
2365 /// int getpriority(int which, id_t who);
2366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpriority.html
2367 // pub extern fn getpriority(__which: __priority_which_t, __who: id_t) c_int;
2368
23691589 /// struct protoent *getprotobyname(const char *name);
23701590 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotobyname.html
23711591 pub extern fn getprotobyname(name: [*:0]const u8) ?*struct_protoent;
......@@ -2386,38 +1606,14 @@ pub const libc = struct {
23861606 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwnam.html
23871607 pub extern fn getpwnam(name: [*:0]const u8) ?*struct_passwd;
23881608
2389 /// int getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result);
2390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwnam_r.html
2391 pub extern fn getpwnam_r(noalias __name: [*c]const u8, noalias __resultbuf: [*c]struct_passwd, noalias __buffer: [*c]u8, __buflen: usize, noalias __result: [*c][*c]struct_passwd) c_int;
2392
23931609 /// struct passwd *getpwuid(uid_t uid);
23941610 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwuid.html
23951611 pub extern fn getpwuid(uid: uid_t) ?*struct_passwd;
23961612
2397 /// int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result);
2398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwuid_r.html
2399 pub extern fn getpwuid_r(__uid: uid_t, noalias __resultbuf: [*c]struct_passwd, noalias __buffer: [*c]u8, __buflen: usize, noalias __result: [*c][*c]struct_passwd) c_int;
2400
2401 /// int getrlimit(int resource, struct rlimit *rlp);
2402 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getrlimit.html
2403 // pub extern fn getrlimit(__resource: __rlimit_resource_t, __rlimits: [*c]struct_rlimit) c_int;
2404
2405 /// int getrusage(int who, struct rusage *r_usage);
2406 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getrusage.html
2407 // pub extern fn getrusage(__who: __rusage_who_t, __usage: [*c]struct_rusage) c_int;
2408
24091613 /// char *gets(char *s);
24101614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gets.html
24111615 pub extern fn gets(s: [*]u8) [*:0]u8;
24121616
2413 /// struct servent *getservbyname(const char *name, const char *proto);
2414 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservbyname.html
2415 pub extern fn getservbyname(__name: [*c]const u8, __proto: [*c]const u8) [*c]struct_servent;
2416
2417 /// struct servent *getservbyport(int port, const char *proto);
2418 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservbyport.html
2419 pub extern fn getservbyport(__port: c_int, __proto: [*c]const u8) [*c]struct_servent;
2420
24211617 /// struct servent *getservent(void);
24221618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservent.html
24231619 pub extern fn getservent() ?*struct_servent;
......@@ -2430,18 +1626,6 @@ pub const libc = struct {
24301626 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsockname.html
24311627 pub extern fn getsockname(fd: c_int, noalias addr: *struct_sockaddr, noalias len: *socklen_t) c_int;
24321628
2433 /// int getsockopt(int socket, int level, int option_name, void *restrict option_value, socklen_t *restrict option_len);
2434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsockopt.html
2435 pub extern fn getsockopt(__fd: c_int, __level: c_int, __optname: c_int, noalias __optval: ?*anyopaque, noalias __optlen: [*c]socklen_t) c_int;
2436
2437 /// int getsubopt(char **optionp, char * const *keylistp, char **valuep);
2438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsubopt.html
2439 pub extern fn getsubopt(noalias __optionp: [*c][*c]u8, noalias __tokens: [*c]const [*c]u8, noalias __valuep: [*c][*c]u8) c_int;
2440
2441 /// int gettimeofday(struct timeval *restrict tp, void *restrict tzp);
2442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gettimeofday.html
2443 // pub extern fn gettimeofday(noalias __tv: [*c]struct_timeval, noalias __tz: ?*anyopaque) c_int;
2444
24451629 /// uid_t getuid(void);
24461630 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
24471631 pub extern fn getuid() uid_t;
......@@ -2450,54 +1634,18 @@ pub const libc = struct {
24501634 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxent.html
24511635 pub extern fn getutxent() ?*struct_utmpx;
24521636
2453 /// struct utmpx *getutxid(const struct utmpx *id);
2454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxid.html
2455 pub extern fn getutxid(__id: [*c]const struct_utmpx) [*c]struct_utmpx;
2456
2457 /// struct utmpx *getutxline(const struct utmpx *line);
2458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxline.html
2459 pub extern fn getutxline(__line: [*c]const struct_utmpx) [*c]struct_utmpx;
2460
2461 /// wint_t getwc(FILE *stream);
2462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getwc.html
2463 // pub extern fn getwc(__stream: [*c]__FILE) wint_t;
2464
24651637 /// wint_t getwchar(void);
24661638 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getwchar.html
24671639 pub extern fn getwchar() wint_t;
24681640
2469 /// int glob(const char *restrict pattern, int flags, int(*errfunc)(const char *epath, int eerrno), glob_t *restrict pglob);
2470 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/glob.html
2471 // pub extern fn glob(noalias __pattern: [*c]const u8, __flags: c_int, __errfunc: ?*const fn ([*c]const u8, c_int) callconv(.C) c_int, noalias __pglob: [*c]glob_t) c_int;
2472
2473 /// void globfree(glob_t *pglob);
2474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/globfree.html
2475 // pub extern fn globfree(__pglob: [*c]glob_t) void;
2476
2477 /// struct tm *gmtime(const time_t *timer);
2478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gmtime.html
2479 // pub extern fn gmtime(__timer: [*c]const time_t) [*c]struct_tm;
2480
2481 /// struct tm *gmtime_r(const time_t *restrict timer, struct tm *restrict result);
2482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gmtime_r.html
2483 // pub extern fn gmtime_r(noalias __timer: [*c]const time_t, noalias __tp: [*c]struct_tm) [*c]struct_tm;
2484
24851641 /// int grantpt(int fildes);
24861642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/grantpt.html
24871643 pub extern fn grantpt(fd: c_int) c_int;
24881644
2489 /// int hcreate(size_t nel);
2490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hcreate.html
2491 pub extern fn hcreate(nel: usize) c_int;
2492
24931645 /// void hdestroy(void);
24941646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hdestroy.html
24951647 pub extern fn hdestroy() void;
24961648
2497 /// ENTRY *hsearch(ENTRY item, ACTION action);
2498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hsearch.html
2499 // pub extern fn hsearch(__item: ENTRY, __action: ACTION) [*c]ENTRY;
2500
25011649 /// uint32_t htonl(uint32_t hostlong);
25021650 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/htonl.html
25031651 pub extern fn htonl(hostlong: u32) u32;
......@@ -2518,26 +1666,10 @@ pub const libc = struct {
25181666 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hypotl.html
25191667 pub extern fn hypotl(x: c_longdouble, y: c_longdouble) c_longdouble;
25201668
2521 /// size_t iconv(iconv_t cd, char **restrict inbuf, size_t *restrict inbytesleft, char **restrict outbuf, size_t *restrict outbytesleft);
2522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv.html
2523 // pub extern fn iconv(__cd: iconv_t, noalias __inbuf: [*c][*c]u8, noalias __inbytesleft: [*c]usize, noalias __outbuf: [*c][*c]u8, noalias __outbytesleft: [*c]usize) usize;
2524
2525 /// int iconv_close(iconv_t cd);
2526 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv_close.html
2527 // pub extern fn iconv_close(__cd: iconv_t) c_int;
2528
2529 /// iconv_t iconv_open(const char *tocode, const char *fromcode);
2530 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv_open.html
2531 // pub extern fn iconv_open(__tocode: [*c]const u8, __fromcode: [*c]const u8) iconv_t;
2532
25331669 /// void if_freenameindex(struct if_nameindex *ptr);
25341670 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_freenameindex.html
25351671 pub extern fn if_freenameindex(ptr: *struct_if_nameindex) void;
25361672
2537 /// char *if_indextoname(unsigned ifindex, char *ifname);
2538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_indextoname.html
2539 pub extern fn if_indextoname(__ifindex: c_uint, __ifname: [*c]u8) [*c]u8;
2540
25411673 /// struct if_nameindex *if_nameindex(void);
25421674 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_nameindex.html
25431675 pub extern fn if_nameindex() ?*struct_if_nameindex;
......@@ -2562,38 +1694,10 @@ pub const libc = struct {
25621694 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/imaxabs.html
25631695 pub extern fn imaxabs(j: intmax_t) intmax_t;
25641696
2565 /// imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
2566 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/imaxdiv.html
2567 // pub extern fn imaxdiv(__numer: intmax_t, __denom: intmax_t) imaxdiv_t;
2568
2569 /// in_addr_t inet_addr(const char *cp);
2570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_addr.html
2571 // pub extern fn inet_addr(__cp: [*c]const u8) in_addr_t;
2572
2573 /// char *inet_ntoa(struct in_addr in);
2574 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_ntoa.html
2575 // pub extern fn inet_ntoa(__in: struct_in_addr) [*c]u8;
2576
2577 /// const char *inet_ntop(int af, const void *restrict src, char *restrict dst, socklen_t size);
2578 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_ntop.html
2579 pub extern fn inet_ntop(__af: c_int, noalias __cp: ?*const anyopaque, noalias __buf: [*c]u8, __len: socklen_t) [*c]const u8;
2580
2581 /// int inet_pton(int af, const char *restrict src, void *restrict dst);
2582 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_pton.html
2583 pub extern fn inet_pton(__af: c_int, noalias __cp: [*c]const u8, noalias __buf: ?*anyopaque) c_int;
2584
2585 /// char *initstate(unsigned seed, char *state, size_t size);
2586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/initstate.html
2587 pub extern fn initstate(__seed: c_uint, __statebuf: [*c]u8, __statelen: usize) [*c]u8;
2588
25891697 /// void insque(void *element, void *pred);
25901698 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/insque.html
25911699 pub extern fn insque(elem: *anyopaque, prev: ?*anyopaque) void;
25921700
2593 /// int ioctl(int fildes, int request, ... /* arg */);
2594 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ioctl.html
2595 pub const ioctl = @compileError("TODO ioctl");
2596
25971701 /// int isalnum(int c);
25981702 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalnum.html
25991703 pub extern fn isalnum(c: c_int) c_int;
......@@ -2726,14 +1830,6 @@ pub const libc = struct {
27261830 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswcntrl_l.html
27271831 pub extern fn iswcntrl_l(wc: wint_t, locale: locale_t) c_int;
27281832
2729 /// int iswctype(wint_t wc, wctype_t charclass);
2730 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswctype.html
2731 // pub extern fn iswctype(__wc: wint_t, __desc: wctype_t) c_int;
2732
2733 /// int iswctype_l(wint_t wc, wctype_t charclass, locale_t locale);
2734 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswctype_l.html
2735 // pub extern fn iswctype_l(__wc: wint_t, __desc: wctype_t, __locale: locale_t) c_int;
2736
27371833 /// int iswdigit(wint_t wc);
27381834 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswdigit.html
27391835 pub extern fn iswdigit(wc: wint_t) c_int;
......@@ -2818,34 +1914,14 @@ pub const libc = struct {
28181914 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/jn.html
28191915 pub extern fn jn(n: c_int, x: f64) f64;
28201916
2821 /// long jrand48(unsigned short xsubi[3]);
2822 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/jrand48.html
2823 pub extern fn jrand48(__xsubi: [*c]c_ushort) c_long;
2824
28251917 /// int kill(pid_t pid, int sig);
28261918 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/kill.html
28271919 pub extern fn kill(pid: pid_t, sig: c_int) c_int;
28281920
2829 /// int killpg(pid_t pgrp, int sig);
2830 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/killpg.html
2831 // pub extern fn killpg(__pgrp: __pid_t, __sig: c_int) c_int;
2832
2833 /// char *l64a(long value);
2834 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/l64a.html
2835 pub extern fn l64a(__n: c_long) [*c]u8;
2836
28371921 /// long labs(long i);
28381922 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/labs.html
28391923 pub extern fn labs(i: c_long) c_long;
28401924
2841 /// int lchown(const char *path, uid_t owner, gid_t group);
2842 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lchown.html
2843 pub extern fn lchown(__file: [*c]const u8, __owner: uid_t, __group: gid_t) c_int;
2844
2845 /// void lcong48(unsigned short param[7]);
2846 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lcong48.html
2847 pub extern fn lcong48(__param: [*c]c_ushort) void;
2848
28491925 /// double ldexp(double x, int exp);
28501926 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexp.html
28511927 pub extern fn ldexp(x: f64, exp: c_int) f64;
......@@ -2854,18 +1930,6 @@ pub const libc = struct {
28541930 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexpf.html
28551931 pub extern fn ldexpf(x: f32, exp: c_int) f32;
28561932
2857 /// long double ldexpl(long double x, int exp);
2858 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexpl.html
2859 pub extern fn ldexpl(__x: c_longdouble, __exponent: c_int) c_longdouble;
2860
2861 /// ldiv_t ldiv(long numer, long denom);
2862 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldiv.html
2863 // pub extern fn ldiv(__numer: c_long, __denom: c_long) ldiv_t;
2864
2865 /// void *lfind(const void *key, const void *base, size_t *nelp, size_t width, int (*compar)(const void *, const void *));
2866 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lfind.html
2867 // pub extern fn lfind(__key: ?*const anyopaque, __base: ?*const anyopaque, __nmemb: [*c]usize, __size: usize, __compar: __compar_fn_t) ?*anyopaque;
2868
28691933 /// double lgamma(double x);
28701934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgamma.html
28711935 pub extern fn lgamma(x: f64) f64;
......@@ -2878,18 +1942,6 @@ pub const libc = struct {
28781942 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgammal.html
28791943 pub extern fn lgammal(x: c_longdouble) c_longdouble;
28801944
2881 /// int link(const char *path1, const char *path2);
2882 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/link.html
2883 pub extern fn link(__from: [*c]const u8, __to: [*c]const u8) c_int;
2884
2885 /// int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag);
2886 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/linkat.html
2887 pub extern fn linkat(__fromfd: c_int, __from: [*c]const u8, __tofd: c_int, __to: [*c]const u8, __flags: c_int) c_int;
2888
2889 /// int lio_listio(int mode, struct aiocb *restrict const list[restrict], int nent, struct sigevent *restrict sig);
2890 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lio_listio.html
2891 // pub extern fn lio_listio(__mode: c_int, noalias __list: [*c]const [*c]struct_aiocb, __nent: c_int, noalias __sig: [*c]struct_sigevent) c_int;
2892
28931945 /// int listen(int socket, int backlog);
28941946 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/listen.html
28951947 pub extern fn listen(socket: c_int, backlog: c_int) c_int;
......@@ -2898,10 +1950,6 @@ pub const libc = struct {
28981950 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llabs.html
28991951 pub extern fn llabs(x: c_longlong) c_longlong;
29001952
2901 /// lldiv_t lldiv(long long numer, long long denom);
2902 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lldiv.html
2903 // pub extern fn lldiv(__numer: c_longlong, __denom: c_longlong) lldiv_t;
2904
29051953 /// long long llrint(double x);
29061954 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llrint.html
29071955 pub extern fn llrint(x: f64) c_longlong;
......@@ -2930,18 +1978,6 @@ pub const libc = struct {
29301978 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localeconv.html
29311979 pub extern fn localeconv() *struct_lconv;
29321980
2933 /// struct tm *localtime(const time_t *timer);
2934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localtime.html
2935 // pub extern fn localtime(__timer: [*c]const time_t) [*c]struct_tm;
2936
2937 /// struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result);
2938 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localtime_r.html
2939 // pub extern fn localtime_r(noalias __timer: [*c]const time_t, noalias __tp: [*c]struct_tm) [*c]struct_tm;
2940
2941 /// int lockf(int fildes, int function, off_t size);
2942 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lockf.html
2943 // pub extern fn lockf(__fd: c_int, __cmd: c_int, __len: off_t) c_int;
2944
29451981 /// double log(double x);
29461982 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log.html
29471983 pub extern fn log(x: f64) f64;
......@@ -3030,118 +2066,38 @@ pub const libc = struct {
30302066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lroundl.html
30312067 pub extern fn lroundl(x: c_longdouble) c_long;
30322068
3033 /// void *lsearch(const void *key, void *base, size_t *nelp, size_t width, int (*compar)(const void *, const void *));
3034 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lsearch.html
3035 // pub extern fn lsearch(__key: ?*const anyopaque, __base: ?*anyopaque, __nmemb: [*c]usize, __size: usize, __compar: __compar_fn_t) ?*anyopaque;
3036
30372069 /// off_t lseek(int fildes, off_t offset, int whence);
30382070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lseek.html
30392071 pub extern fn lseek(fd: c_int, offset: off_t, whence: c_int) off_t;
30402072
3041 /// int lstat(const char *restrict path, struct stat *restrict buf);
3042 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lstat.html
3043 // pub extern fn lstat(noalias __file: [*c]const u8, noalias __buf: [*c]struct_stat) c_int;
3044
30452073 /// void *malloc(size_t size);
30462074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/malloc.html
30472075 pub extern fn malloc(size: usize) ?*anyopaque;
30482076
3049 /// int mblen(const char *s, size_t n);
3050 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mblen.html
3051 pub extern fn mblen(__s: [*c]const u8, __n: usize) c_int;
3052
3053 /// size_t mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps);
3054 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbrlen.html
3055 // pub extern fn mbrlen(noalias __s: [*c]const u8, __n: usize, noalias __ps: [*c]mbstate_t) usize;
2077 /// int mkdir(const char *path, mode_t mode);
2078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdir.html
2079 pub extern fn mkdir(path: [*:0]const u8, __mode: mode_t) c_int;
30562080
3057 /// size_t mbrtowc(wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps);
3058 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbrtowc.html
3059 // pub extern fn mbrtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize, noalias __p: [*c]mbstate_t) usize;
2081 /// int mkdirat(int fd, const char *path, mode_t mode);
2082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html
2083 pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
30602084
3061 /// int mbsinit(const mbstate_t *ps);
3062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsinit.html
3063 // pub extern fn mbsinit(__ps: [*c]const mbstate_t) c_int;
2085 /// char *mkdtemp(char *template);
2086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdtemp.html
2087 pub extern fn mkdtemp(template: [*:0]u8) ?[*:0]u8;
30642088
3065 /// size_t mbsnrtowcs(wchar_t *restrict dst, const char **restrict src, size_t nmc, size_t len, mbstate_t *restrict ps);
3066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsnrtowcs.html
3067 // pub extern fn mbsnrtowcs(noalias __dst: [*c]wchar_t, noalias __src: [*c][*c]const u8, __nmc: usize, __len: usize, noalias __ps: [*c]mbstate_t) usize;
3068
3069 /// size_t mbsrtowcs(wchar_t *restrict dst, const char **restrict src, size_t len, mbstate_t *restrict ps);
3070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsrtowcs.html
3071 // pub extern fn mbsrtowcs(noalias __dst: [*c]wchar_t, noalias __src: [*c][*c]const u8, __len: usize, noalias __ps: [*c]mbstate_t) usize;
3072
3073 /// size_t mbstowcs(wchar_t *restrict pwcs, const char *restrict s, size_t n);
3074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbstowcs.html
3075 pub extern fn mbstowcs(noalias __pwcs: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) usize;
3076
3077 /// int mbtowc(wchar_t *restrict pwc, const char *restrict s, size_t n);
3078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbtowc.html
3079 pub extern fn mbtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) c_int;
3080
3081 /// void *memccpy(void *restrict s1, const void *restrict s2, int c, size_t n);
3082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memccpy.html
3083 pub extern fn memccpy(__dest: ?*anyopaque, __src: ?*const anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque;
3084
3085 /// void *memchr(const void *s, int c, size_t n);
3086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memchr.html
3087 pub extern fn memchr(__s: ?*const anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque;
3088
3089 /// int memcmp(const void *s1, const void *s2, size_t n);
3090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memcmp.html
3091 pub extern fn memcmp(__s1: ?*const anyopaque, __s2: ?*const anyopaque, __n: c_ulong) c_int;
3092
3093 /// void *memcpy(void *restrict s1, const void *restrict s2, size_t n);
3094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memcpy.html
3095 pub extern fn memcpy(__dest: ?*anyopaque, __src: ?*const anyopaque, __n: c_ulong) ?*anyopaque;
3096
3097 /// void *memmove(void *s1, const void *s2, size_t n);
3098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memmove.html
3099 pub extern fn memmove(__dest: ?*anyopaque, __src: ?*const anyopaque, __n: c_ulong) ?*anyopaque;
3100
3101 /// void *memset(void *s, int c, size_t n);
3102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memset.html
3103 pub extern fn memset(__s: ?*anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque;
3104
3105 /// int mkdir(const char *path, mode_t mode);
3106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdir.html
3107 pub extern fn mkdir(path: [*:0]const u8, __mode: mode_t) c_int;
3108
3109 /// int mkdirat(int fd, const char *path, mode_t mode);
3110 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html
3111 pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
3112
3113 /// char *mkdtemp(char *template);
3114 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdtemp.html
3115 pub extern fn mkdtemp(template: [*:0]u8) ?[*:0]u8;
3116
3117 /// int mkfifo(const char *path, mode_t mode);
3118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifo.html
3119 pub extern fn mkfifo(path: [*:0]const u8, mode: mode_t) c_int;
2089 /// int mkfifo(const char *path, mode_t mode);
2090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifo.html
2091 pub extern fn mkfifo(path: [*:0]const u8, mode: mode_t) c_int;
31202092
31212093 /// int mkfifoat(int fd, const char *path, mode_t mode);
31222094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifoat.html
31232095 pub extern fn mkfifoat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
31242096
3125 /// int mknod(const char *path, mode_t mode, dev_t dev);
3126 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mknod.html
3127 // pub extern fn mknod(__path: [*c]const u8, __mode: mode_t, __dev: __dev_t) c_int;
3128
3129 /// int mknodat(int fd, const char *path, mode_t mode, dev_t dev);
3130 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mknodat.html
3131 // pub extern fn mknodat(__fd: c_int, __path: [*c]const u8, __mode: mode_t, __dev: __dev_t) c_int;
3132
31332097 /// int mkstemp(char *template);
31342098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkstemp.html
31352099 pub extern fn mkstemp(template: [*:0]u8) c_int;
31362100
3137 /// time_t mktime(struct tm *timeptr);
3138 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mktime.html
3139 // pub extern fn mktime(__tp: [*c]struct_tm) time_t;
3140
3141 /// int mlock(const void *addr, size_t len);
3142 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mlock.html
3143 pub extern fn mlock(__addr: ?*const anyopaque, __len: usize) c_int;
3144
31452101 /// int mlockall(int flags);
31462102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mlockall.html
31472103 pub extern fn mlockall(flags: c_int) c_int;
......@@ -3150,58 +2106,6 @@ pub const libc = struct {
31502106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mmap.html
31512107 pub extern fn mmap(addr: ?*anyopaque, len: usize, prot: c_int, flags: c_int, fd: c_int, offset: off_t) *allowzero anyopaque;
31522108
3153 /// double modf(double x, double *iptr);
3154 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modf.html
3155 pub extern fn modf(__x: f64, __iptr: [*c]f64) f64;
3156
3157 /// float modff(float value, float *iptr);
3158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modff.html
3159 pub extern fn modff(__x: f32, __iptr: [*c]f32) f32;
3160
3161 /// long double modfl(long double value, long double *iptr);
3162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modfl.html
3163 pub extern fn modfl(__x: c_longdouble, __iptr: [*c]c_longdouble) c_longdouble;
3164
3165 /// int mprotect(void *addr, size_t len, int prot);
3166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mprotect.html
3167 pub extern fn mprotect(__addr: ?*anyopaque, __len: usize, __prot: c_int) c_int;
3168
3169 /// int mq_close(mqd_t mqdes);
3170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_close.html
3171 // pub extern fn mq_close(__mqdes: mqd_t) c_int;
3172
3173 /// int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat);
3174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_getattr.html
3175 // pub extern fn mq_getattr(__mqdes: mqd_t, __mqstat: [*c]struct_mq_attr) c_int;
3176
3177 /// int mq_notify(mqd_t mqdes, const struct sigevent *notification);
3178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_notify.html
3179 // pub extern fn mq_notify(__mqdes: mqd_t, __notification: [*c]const struct_sigevent) c_int;
3180
3181 /// mqd_t mq_open(const char *name, int oflag, ...);
3182 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_open.html
3183 // pub extern fn mq_open(__name: [*c]const u8, __oflag: c_int, ...) mqd_t;
3184
3185 /// ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio);
3186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_receive.html
3187 // pub extern fn mq_receive(__mqdes: mqd_t, __msg_ptr: [*c]u8, __msg_len: usize, __msg_prio: [*c]c_uint) isize;
3188
3189 /// int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio);
3190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_send.html
3191 // pub extern fn mq_send(__mqdes: mqd_t, __msg_ptr: [*c]const u8, __msg_len: usize, __msg_prio: c_uint) c_int;
3192
3193 /// int mq_setattr(mqd_t mqdes, const struct mq_attr *restrict mqstat, struct mq_attr *restrict omqstat);
3194 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_setattr.html
3195 // pub extern fn mq_setattr(__mqdes: mqd_t, noalias __mqstat: [*c]const struct_mq_attr, noalias __omqstat: [*c]struct_mq_attr) c_int;
3196
3197 /// ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr, size_t msg_len, unsigned *restrict msg_prio, const struct timespec *restrict abstime);
3198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_timedreceive.html
3199 // pub extern fn mq_timedreceive(__mqdes: mqd_t, noalias __msg_ptr: [*c]u8, __msg_len: usize, noalias __msg_prio: [*c]c_uint, noalias __abs_timeout: [*c]const struct_timespec) isize;
3200
3201 /// int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abstime);
3202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_timedsend.html
3203 // pub extern fn mq_timedsend(__mqdes: mqd_t, __msg_ptr: [*c]const u8, __msg_len: usize, __msg_prio: c_uint, __abs_timeout: [*c]const struct_timespec) c_int;
3204
32052109 /// int mq_unlink(const char *name);
32062110 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_unlink.html
32072111 pub extern fn mq_unlink(name: [*:0]const u8) c_int;
......@@ -3210,30 +2114,6 @@ pub const libc = struct {
32102114 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mrand48.html
32112115 pub extern fn mrand48() c_long;
32122116
3213 /// int msgctl(int msqid, int cmd, struct msqid_ds *buf);
3214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgctl.html
3215 // pub extern fn msgctl(__msqid: c_int, __cmd: c_int, __buf: [*c]struct_msqid_ds) c_int;
3216
3217 /// int msgget(key_t key, int msgflg);
3218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgget.html
3219 // pub extern fn msgget(__key: key_t, __msgflg: c_int) c_int;
3220
3221 /// ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg);
3222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgrcv.html
3223 pub extern fn msgrcv(__msqid: c_int, __msgp: ?*anyopaque, __msgsz: usize, __msgtyp: c_long, __msgflg: c_int) isize;
3224
3225 /// int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg);
3226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgsnd.html
3227 pub extern fn msgsnd(__msqid: c_int, __msgp: ?*const anyopaque, __msgsz: usize, __msgflg: c_int) c_int;
3228
3229 /// int msync(void *addr, size_t len, int flags);
3230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msync.html
3231 pub extern fn msync(__addr: ?*anyopaque, __len: usize, __flags: c_int) c_int;
3232
3233 /// int munlock(const void *addr, size_t len);
3234 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munlock.html
3235 pub extern fn munlock(__addr: ?*const anyopaque, __len: usize) c_int;
3236
32372117 /// int munlockall(void);
32382118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munlockall.html
32392119 pub extern fn munlockall() void;
......@@ -3242,22 +2122,6 @@ pub const libc = struct {
32422122 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munmap.html
32432123 pub extern fn munmap(addr: *const anyopaque, len: usize) c_int;
32442124
3245 /// double nan(const char *tagp);
3246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nan.html
3247 pub extern fn nan(__tagb: [*c]const u8) f64;
3248
3249 /// float nanf(const char *tagp);
3250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanf.html
3251 pub extern fn nanf(__tagb: [*c]const u8) f32;
3252
3253 /// long double nanl(const char *tagp);
3254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanl.html
3255 pub extern fn nanl(__tagb: [*c]const u8) c_longdouble;
3256
3257 /// int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
3258 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanosleep.html
3259 pub extern fn nanosleep(__requested_time: [*c]const struct_timespec, __remaining: [*c]struct_timespec) c_int;
3260
32612125 /// double nearbyint(double x);
32622126 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyint.html
32632127 pub extern fn nearbyint(x: f64) f64;
......@@ -3270,10 +2134,6 @@ pub const libc = struct {
32702134 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyintl.html
32712135 pub extern fn nearbyintl(x: c_longdouble) c_longdouble;
32722136
3273 /// locale_t newlocale(int category_mask, const char *locale, locale_t base);
3274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/newlocale.html
3275 pub extern fn newlocale(__category_mask: c_int, __locale: [*c]const u8, __base: locale_t) locale_t;
3276
32772137 /// double nextafter(double x, double y);
32782138 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nextafter.html
32792139 pub extern fn nextafter(x: f64, y: f64) f64;
......@@ -3298,26 +2158,10 @@ pub const libc = struct {
32982158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nexttowardl.html
32992159 pub extern fn nexttowardl(x: c_longdouble, y: c_longdouble) c_longdouble;
33002160
3301 /// int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags);
3302 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nftw.html
3303 pub const nftw = @compileError("TODO nftw");
3304
33052161 /// int nice(int incr);
33062162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nice.html
33072163 pub extern fn nice(incr: c_int) c_int;
33082164
3309 /// char *nl_langinfo(nl_item item);
3310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nl_langinfo.html
3311 // pub extern fn nl_langinfo(__item: nl_item) [*c]u8;
3312
3313 /// char *nl_langinfo_l(nl_item item, locale_t locale);
3314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nl_langinfo_l.html
3315 // pub extern fn nl_langinfo_l(__item: nl_item, __l: locale_t) [*c]u8;
3316
3317 /// long nrand48(unsigned short xsubi[3]);
3318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nrand48.html
3319 pub extern fn nrand48(__xsubi: [*c]c_ushort) c_long;
3320
33212165 /// uint32_t ntohl(uint32_t netlong);
33222166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohl.html
33232167 pub extern fn ntohl(netlong: u32) u32;
......@@ -3326,50 +2170,14 @@ pub const libc = struct {
33262170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohs.html
33272171 pub extern fn ntohs(netshort: u16) u16;
33282172
3329 /// int open(const char *path, int oflag, ...);
3330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open.html
3331 pub extern fn open(__file: [*c]const u8, __oflag: c_int, ...) c_int;
3332
3333 /// FILE *open_memstream(char **bufp, size_t *sizep);
3334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open_memstream.html
3335 pub extern fn open_memstream(__bufloc: [*c][*c]u8, __sizeloc: [*c]usize) [*c]FILE;
3336
3337 /// FILE *open_wmemstream(wchar_t **bufp, size_t *sizep);
3338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open_wmemstream.html
3339 // pub extern fn open_wmemstream(__bufloc: [*c][*c]wchar_t, __sizeloc: [*c]usize) [*c]__FILE;
3340
33412173 /// int openat(int fd, const char *path, int oflag, ...);
33422174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html
33432175 pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int;
33442176
3345 /// DIR *opendir(const char *dirname);
3346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/opendir.html
3347 pub extern fn opendir(__name: [*c]const u8) ?*DIR;
3348
3349 /// void openlog(const char *ident, int logopt, int facility);
3350 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openlog.html
3351 pub extern fn openlog(__ident: [*c]const u8, __option: c_int, __facility: c_int) void;
3352
3353 /// long pathconf(const char *path, int name);
3354 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pathconf.html
3355 pub extern fn pathconf(__path: [*c]const u8, __name: c_int) c_long;
3356
33572177 /// int pause(void);
33582178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pause.html
33592179 pub extern fn pause() c_int;
33602180
3361 /// int pclose(FILE *stream);
3362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pclose.html
3363 pub extern fn pclose(__stream: [*c]FILE) c_int;
3364
3365 /// void perror(const char *s);
3366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/perror.html
3367 pub extern fn perror(__s: [*c]const u8) void;
3368
3369 /// int pipe(int fildes[2]);
3370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pipe.html
3371 pub extern fn pipe(pipefd: *[2]c_int) c_int;
3372
33732181 /// int pipe2(int fildes[2], int flag);
33742182 /// https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html
33752183 pub extern fn pipe2(pipefd: *[2]c_int, flag: c_int) c_int;
......@@ -3378,126 +2186,6 @@ pub const libc = struct {
33782186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/poll.html
33792187 pub extern fn poll(fds: [*]struct_pollfd, nfds: nfds_t, timeout: c_int) c_int;
33802188
3381 /// FILE *popen(const char *command, const char *mode);
3382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/popen.html
3383 pub extern fn popen(__command: [*c]const u8, __modes: [*c]const u8) [*c]FILE;
3384
3385 /// int posix_fadvise(int fd, off_t offset, off_t len, int advice);
3386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_fadvise.html
3387 pub extern fn posix_fadvise(__fd: c_int, __offset: off_t, __len: off_t, __advise: c_int) c_int;
3388
3389 /// int posix_fallocate(int fd, off_t offset, off_t len);
3390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_fallocate.html
3391 pub extern fn posix_fallocate(__fd: c_int, __offset: off_t, __len: off_t) c_int;
3392
3393 /// int posix_madvise(void *addr, size_t len, int advice);
3394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_madvise.html
3395 pub extern fn posix_madvise(__addr: ?*anyopaque, __len: usize, __advice: c_int) c_int;
3396
3397 /// int posix_mem_offset(const void *restrict addr, size_t len, off_t *restrict off, size_t *restrict contig_len, int *restrict fildes);
3398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_mem_offset.html
3399 pub const posix_mem_offset = @compileError("TODO posix_mem_offset");
3400
3401 /// int posix_memalign(void **memptr, size_t alignment, size_t size);
3402 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_memalign.html
3403 pub extern fn posix_memalign(__memptr: [*c]?*anyopaque, __alignment: usize, __size: usize) c_int;
3404
3405 /// int posix_openpt(int oflag);
3406 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_openpt.html
3407 pub const posix_openpt = @compileError("TODO posix_openpt");
3408
3409 /// int posix_spawn(pid_t *restrict pid, const char *restrict path, const posix_spawn_file_actions_t *file_actions, const posix_spawnattr_t *restrict attrp, char *const argv[restrict], char *const envp[restrict]);
3410 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn.html
3411 // pub extern fn posix_spawn(noalias __pid: [*c]pid_t, noalias __path: [*c]const u8, noalias __file_actions: [*c]const posix_spawn_file_actions_t, noalias __attrp: [*c]const posix_spawnattr_t, noalias __argv: [*c]const [*c]u8, noalias __envp: [*c]const [*c]u8) c_int;
3412
3413 /// int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions, int fildes);
3414 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_addclose.html
3415 // pub extern fn posix_spawn_file_actions_addclose(__file_actions: [*c]posix_spawn_file_actions_t, __fd: c_int) c_int;
3416
3417 /// int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions, int fildes, int newfildes);
3418 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_adddup2.html
3419 // pub extern fn posix_spawn_file_actions_adddup2(__file_actions: [*c]posix_spawn_file_actions_t, __fd: c_int, __newfd: c_int) c_int;
3420
3421 /// int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *restrict file_actions, int fildes, const char *restrict path, int oflag, mode_t mode);
3422 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_addopen.html
3423 // pub extern fn posix_spawn_file_actions_addopen(noalias __file_actions: [*c]posix_spawn_file_actions_t, __fd: c_int, noalias __path: [*c]const u8, __oflag: c_int, __mode: mode_t) c_int;
3424
3425 /// int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *file_actions);
3426 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_destroy.html
3427 // pub extern fn posix_spawn_file_actions_destroy(__file_actions: [*c]posix_spawn_file_actions_t) c_int;
3428
3429 /// int posix_spawn_file_actions_init(posix_spawn_file_actions_t *file_actions);
3430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_init.html
3431 // pub extern fn posix_spawn_file_actions_init(__file_actions: [*c]posix_spawn_file_actions_t) c_int;
3432
3433 /// int posix_spawnattr_destroy(posix_spawnattr_t *attr);
3434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_destroy.html
3435 // pub extern fn posix_spawnattr_destroy(__attr: [*c]posix_spawnattr_t) c_int;
3436
3437 /// int posix_spawnattr_getflags(const posix_spawnattr_t *restrict attr, short *restrict flags);
3438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getflags.html
3439 // pub extern fn posix_spawnattr_getflags(noalias __attr: [*c]const posix_spawnattr_t, noalias __flags: [*c]c_short) c_int;
3440
3441 /// int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr, pid_t *restrict pgroup);
3442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getpgroup.html
3443 // pub extern fn posix_spawnattr_getpgroup(noalias __attr: [*c]const posix_spawnattr_t, noalias __pgroup: [*c]pid_t) c_int;
3444
3445 /// int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict attr, struct sched_param *restrict schedparam);
3446 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getschedparam.html
3447 // pub extern fn posix_spawnattr_getschedparam(noalias __attr: [*c]const posix_spawnattr_t, noalias __schedparam: [*c]struct_sched_param) c_int;
3448
3449 /// int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict attr, int *restrict schedpolicy);
3450 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getschedpolicy.html
3451 // pub extern fn posix_spawnattr_getschedpolicy(noalias __attr: [*c]const posix_spawnattr_t, noalias __schedpolicy: [*c]c_int) c_int;
3452
3453 /// int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigdefault);
3454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getsigdefault.html
3455 // pub extern fn posix_spawnattr_getsigdefault(noalias __attr: [*c]const posix_spawnattr_t, noalias __sigdefault: [*c]sigset_t) c_int;
3456
3457 /// int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigmask);
3458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getsigmask.html
3459 // pub extern fn posix_spawnattr_getsigmask(noalias __attr: [*c]const posix_spawnattr_t, noalias __sigmask: [*c]sigset_t) c_int;
3460
3461 /// int posix_spawnattr_init(posix_spawnattr_t *attr);
3462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_init.html
3463 // pub extern fn posix_spawnattr_init(__attr: [*c]posix_spawnattr_t) c_int;
3464
3465 /// int posix_spawnattr_setflags(posix_spawnattr_t *attr, short flags);
3466 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setflags.html
3467 // pub extern fn posix_spawnattr_setflags(_attr: [*c]posix_spawnattr_t, __flags: c_short) c_int;
3468
3469 /// int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
3470 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setpgroup.html
3471 // pub extern fn posix_spawnattr_setpgroup(__attr: [*c]posix_spawnattr_t, __pgroup: pid_t) c_int;
3472
3473 /// int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr, const struct sched_param *restrict schedparam);
3474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setschedparam.html
3475 // pub extern fn posix_spawnattr_setschedparam(noalias __attr: [*c]posix_spawnattr_t, noalias __schedparam: [*c]const struct_sched_param) c_int;
3476
3477 /// int posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr, int schedpolicy);
3478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setschedpolicy.html
3479 // pub extern fn posix_spawnattr_setschedpolicy(__attr: [*c]posix_spawnattr_t, __schedpolicy: c_int) c_int;
3480
3481 /// int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict attr, const sigset_t *restrict sigdefault);
3482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setsigdefault.html
3483 // pub extern fn posix_spawnattr_setsigdefault(noalias __attr: [*c]posix_spawnattr_t, noalias __sigdefault: [*c]const sigset_t) c_int;
3484
3485 /// int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict attr, const sigset_t *restrict sigmask);
3486 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setsigmask.html
3487 // pub extern fn posix_spawnattr_setsigmask(noalias __attr: [*c]posix_spawnattr_t, noalias __sigmask: [*c]const sigset_t) c_int;
3488
3489 /// int posix_spawnp(pid_t *restrict pid, const char *restrict file, const posix_spawn_file_actions_t *file_actions, const posix_spawnattr_t *restrict attrp, char *const argv[restrict], char *const envp[restrict]);
3490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnp.html
3491 // pub extern fn posix_spawnp(__pid: [*c]pid_t, __file: [*c]const u8, __file_actions: [*c]const posix_spawn_file_actions_t, __attrp: [*c]const posix_spawnattr_t, __argv: [*c]const [*c]u8, __envp: [*c]const [*c]u8) c_int;
3492
3493 /// int posix_typed_mem_get_info(int fildes, struct posix_typed_mem_info *info);
3494 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_typed_mem_get_info.html
3495 pub const posix_typed_mem_get_info = @compileError("TODO posix_typed_mem_get_info");
3496
3497 /// int posix_typed_mem_open(const char *name, int oflag, int tflag);
3498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_typed_mem_open.html
3499 pub const posix_typed_mem_open = @compileError("TODO posix_typed_mem_open");
3500
35012189 /// double pow(double x, double y);
35022190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pow.html
35032191 pub extern fn pow(x: f64, y: f64) f64;
......@@ -3510,142 +2198,26 @@ pub const libc = struct {
35102198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/powl.html
35112199 pub extern fn powl(x: c_longdouble, y: c_longdouble) c_longdouble;
35122200
3513 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
3514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pread.html
3515 pub extern fn pread(__fd: c_int, __buf: ?*anyopaque, __nbytes: usize, __offset: off_t) isize;
3516
3517 /// int printf(const char *restrict format, ...);
3518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/printf.html
3519 pub extern fn printf(__format: [*c]const u8, ...) c_int;
3520
3521 /// int pselect(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict errorfds, const struct timespec *restrict timeout, const sigset_t *restrict sigmask);
3522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pselect.html
3523 // pub extern fn pselect(__nfds: c_int, noalias __readfds: [*c]fd_set, noalias __writefds: [*c]fd_set, noalias __exceptfds: [*c]fd_set, noalias __timeout: [*c]const struct_timespec, noalias __sigmask: [*c]const __sigset_t) c_int;
3524
3525 /// void psiginfo(const siginfo_t *pinfo, const char *message);
3526 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/psiginfo.html
3527 // pub extern fn psiginfo(__pinfo: [*c]const siginfo_t, __s: [*c]const u8) void;
3528
3529 /// void psignal(int signum, const char *message);
3530 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/psignal.html
3531 pub extern fn psignal(__sig: c_int, __s: [*c]const u8) void;
3532
3533 /// int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
3534 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_atfork.html
3535 pub extern fn pthread_atfork(__prepare: ?*const fn () callconv(.C) void, __parent: ?*const fn () callconv(.C) void, __child: ?*const fn () callconv(.C) void) c_int;
3536
35372201 /// int pthread_attr_destroy(pthread_attr_t *attr);
35382202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_destroy.html
35392203 pub extern fn pthread_attr_destroy(attr: *pthread_attr_t) c_int;
35402204
3541 /// int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate);
3542 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getdetachstate.html
3543 // pub extern fn pthread_attr_getdetachstate(__attr: [*c]const pthread_attr_t, __detachstate: [*c]c_int) c_int;
3544
3545 /// int pthread_attr_getguardsize(const pthread_attr_t *restrict attr, size_t *restrict guardsize);
3546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getguardsize.html
3547 // pub extern fn pthread_attr_getguardsize(__attr: [*c]const pthread_attr_t, __guardsize: [*c]usize) c_int;
3548
3549 /// int pthread_attr_getinheritsched(const pthread_attr_t *restrict attr, int *restrict inheritsched);
3550 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getinheritsched.html
3551 // pub extern fn pthread_attr_getinheritsched(noalias __attr: [*c]const pthread_attr_t, noalias __inherit: [*c]c_int) c_int;
3552
3553 /// int pthread_attr_getschedparam(const pthread_attr_t *restrict attr, struct sched_param *restrict param);
3554 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getschedparam.html
3555 // pub extern fn pthread_attr_getschedparam(noalias __attr: [*c]const pthread_attr_t, noalias __param: [*c]struct_sched_param) c_int;
3556
3557 /// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict attr, int *restrict policy);
3558 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getschedpolicy.html
3559 // pub extern fn pthread_attr_getschedpolicy(noalias __attr: [*c]const pthread_attr_t, noalias __policy: [*c]c_int) c_int;
3560
3561 /// int pthread_attr_getscope(const pthread_attr_t *restrict attr, int *restrict contentionscope);
3562 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getscope.html
3563 // pub extern fn pthread_attr_getscope(noalias __attr: [*c]const pthread_attr_t, noalias __scope: [*c]c_int) c_int;
3564
3565 /// int pthread_attr_getstack(const pthread_attr_t *restrict attr, void **restrict stackaddr, size_t *restrict stacksize);
3566 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getstack.html
3567 // pub extern fn pthread_attr_getstack(noalias __attr: [*c]const pthread_attr_t, noalias __stackaddr: [*c]?*anyopaque, noalias __stacksize: [*c]usize) c_int;
3568
3569 /// int pthread_attr_getstacksize(const pthread_attr_t *restrict attr, size_t *restrict stacksize);
3570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getstacksize.html
3571 // pub extern fn pthread_attr_getstacksize(noalias __attr: [*c]const pthread_attr_t, noalias __stacksize: [*c]usize) c_int;
3572
35732205 /// int pthread_attr_init(pthread_attr_t *attr);
35742206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_init.html
35752207 pub extern fn pthread_attr_init(attr: *pthread_attr_t) c_int;
35762208
3577 /// int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate);
3578 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setdetachstate.html
3579 // pub extern fn pthread_attr_setdetachstate(__attr: [*c]pthread_attr_t, __detachstate: c_int) c_int;
3580
35812209 /// int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);
35822210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setguardsize.html
35832211 pub extern fn pthread_attr_setguardsize(attr: *pthread_attr_t, guardsize: usize) c_int;
35842212
3585 /// int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);
3586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setinheritsched.html
3587 // pub extern fn pthread_attr_setinheritsched(__attr: [*c]pthread_attr_t, __inherit: c_int) c_int;
3588
3589 /// int pthread_attr_setschedparam(pthread_attr_t *restrict attr, const struct sched_param *restrict param);
3590 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setschedparam.html
3591 // pub extern fn pthread_attr_setschedparam(noalias __attr: [*c]pthread_attr_t, noalias __param: [*c]const struct_sched_param) c_int;
3592
3593 /// int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
3594 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setschedpolicy.html
3595 // pub extern fn pthread_attr_setschedpolicy(__attr: [*c]pthread_attr_t, __policy: c_int) c_int;
3596
3597 /// int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope);
3598 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setscope.html
3599 // pub extern fn pthread_attr_setscope(__attr: [*c]pthread_attr_t, __scope: c_int) c_int;
3600
3601 /// int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksize);
3602 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setstack.html
3603 // pub extern fn pthread_attr_setstack(__attr: [*c]pthread_attr_t, __stackaddr: ?*anyopaque, __stacksize: usize) c_int;
3604
36052213 /// int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize);
36062214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setstacksize.html
36072215 pub extern fn pthread_attr_setstacksize(attr: *pthread_attr_t, stacksize: usize) c_int;
36082216
3609 /// int pthread_barrier_destroy(pthread_barrier_t *barrier);
3610 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_destroy.html
3611 // pub extern fn pthread_barrier_destroy(__barrier: [*c]pthread_barrier_t) c_int;
3612
3613 /// int pthread_barrier_init(pthread_barrier_t *restrict barrier, const pthread_barrierattr_t *restrict attr, unsigned count);
3614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_init.html
3615 // pub extern fn pthread_barrier_init(noalias __barrier: [*c]pthread_barrier_t, noalias __attr: [*c]const pthread_barrierattr_t, __count: c_uint) c_int;
3616
3617 /// int pthread_barrier_wait(pthread_barrier_t *barrier);
3618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_wait.html
3619 // pub extern fn pthread_barrier_wait(__barrier: [*c]pthread_barrier_t) c_int;
3620
3621 /// int pthread_barrierattr_destroy(pthread_barrierattr_t *attr);
3622 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_destroy.html
3623 // pub extern fn pthread_barrierattr_destroy(__attr: [*c]pthread_barrierattr_t) c_int;
3624
3625 /// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict attr, int *restrict pshared);
3626 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_getpshared.html
3627 // pub extern fn pthread_barrierattr_getpshared(noalias __attr: [*c]const pthread_barrierattr_t, noalias __pshared: [*c]c_int) c_int;
3628
3629 /// int pthread_barrierattr_init(pthread_barrierattr_t *attr);
3630 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_init.html
3631 // pub extern fn pthread_barrierattr_init(__attr: [*c]pthread_barrierattr_t) c_int;
3632
3633 /// int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared);
3634 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_setpshared.html
3635 // pub extern fn pthread_barrierattr_setpshared(__attr: [*c]pthread_barrierattr_t, __pshared: c_int) c_int;
3636
36372217 /// int pthread_cancel(pthread_t thread);
36382218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cancel.html
36392219 pub extern fn pthread_cancel(thread: pthread_t) c_int;
36402220
3641 /// void pthread_cleanup_pop(int execute);
3642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cleanup_pop.html
3643 pub const pthread_cleanup_pop = @compileError("TODO pthread_cleanup_pop");
3644
3645 /// void pthread_cleanup_push(void (*routine)(void*), void *arg);
3646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cleanup_push.html
3647 pub const pthread_cleanup_push = @compileError("TODO pthread_cleanup_push");
3648
36492221 /// int pthread_cond_broadcast(pthread_cond_t *cond);
36502222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cond_broadcast.html
36512223 pub extern fn pthread_cond_broadcast(cond: *pthread_cond_t) c_int;
......@@ -3674,26 +2246,10 @@ pub const libc = struct {
36742246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_destroy.html
36752247 pub extern fn pthread_condattr_destroy(attr: *pthread_condattr_t) c_int;
36762248
3677 /// int pthread_condattr_getclock(const pthread_condattr_t *restrict attr, clockid_t *restrict clock_id);
3678 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_getclock.html
3679 // pub extern fn pthread_condattr_getclock(noalias __attr: [*c]const pthread_condattr_t, noalias __clock_id: [*c]__clockid_t) c_int;
3680
3681 /// int pthread_condattr_getpshared(const pthread_condattr_t *restrict attr, int *restrict pshared);
3682 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_getpshared.html
3683 // pub extern fn pthread_condattr_getpshared(noalias __attr: [*c]const pthread_condattr_t, noalias __pshared: [*c]c_int) c_int;
3684
36852249 /// int pthread_condattr_init(pthread_condattr_t *attr);
36862250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_init.html
36872251 pub extern fn pthread_condattr_init(attr: *pthread_condattr_t) c_int;
36882252
3689 /// int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id);
3690 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_setclock.html
3691 // pub extern fn pthread_condattr_setclock(__attr: [*c]pthread_condattr_t, __clock_id: __clockid_t) c_int;
3692
3693 /// int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared);
3694 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_setpshared.html
3695 // pub extern fn pthread_condattr_setpshared(__attr: [*c]pthread_condattr_t, __pshared: c_int) c_int;
3696
36972253 /// int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);
36982254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_create.html
36992255 pub extern fn pthread_create(noalias newthread: *pthread_t, noalias attr: *const pthread_attr_t, start_routine: *const fn (*anyopaque) callconv(.c) ?*anyopaque, noalias arg: *anyopaque) c_int;
......@@ -3706,54 +2262,22 @@ pub const libc = struct {
37062262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_equal.html
37072263 pub extern fn pthread_equal(thread1: pthread_t, thread2: pthread_t) c_int;
37082264
3709 /// void pthread_exit(void *value_ptr);
3710 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_exit.html
3711 pub extern fn pthread_exit(__retval: ?*anyopaque) noreturn;
3712
37132265 /// int pthread_getconcurrency(void);
37142266 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getconcurrency.html
37152267 pub extern fn pthread_getconcurrency() c_int;
37162268
3717 /// int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id);
3718 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getcpuclockid.html
3719 // pub extern fn pthread_getcpuclockid(__thread_id: pthread_t, __clock_id: [*c]__clockid_t) c_int;
3720
3721 /// int pthread_getschedparam(pthread_t thread, int *restrict policy, struct sched_param *restrict param);
3722 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getschedparam.html
3723 // pub extern fn pthread_getschedparam(__target_thread: pthread_t, noalias __policy: [*c]c_int, noalias __param: [*c]struct_sched_param) c_int;
3724
3725 /// void *pthread_getspecific(pthread_key_t key);
3726 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getspecific.html
3727 // pub extern fn pthread_getspecific(__key: pthread_key_t) ?*anyopaque;
3728
37292269 /// int pthread_join(pthread_t thread, void **value_ptr);
37302270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_join.html
37312271 pub extern fn pthread_join(thread: pthread_t, retval: ?*?*anyopaque) c_int;
37322272
3733 /// int pthread_key_create(pthread_key_t *key, void (*destructor)(void*));
3734 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_key_create.html
3735 // pub extern fn pthread_key_create(__key: [*c]pthread_key_t, __destr_function: ?*const fn (?*anyopaque) callconv(.C) void) c_int;
3736
3737 /// int pthread_key_delete(pthread_key_t key);
3738 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_key_delete.html
3739 // pub extern fn pthread_key_delete(__key: pthread_key_t) c_int;
3740
37412273 /// int pthread_kill(pthread_t thread, int sig);
37422274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_kill.html
37432275 pub extern fn pthread_kill(thread: pthread_t, sig: c_int) c_int;
37442276
3745 /// int pthread_mutex_consistent(pthread_mutex_t *mutex);
3746 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_consistent.html
3747 // pub extern fn pthread_mutex_consistent(__mutex: [*c]pthread_mutex_t) c_int;
3748
37492277 /// int pthread_mutex_destroy(pthread_mutex_t *mutex);
37502278 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_destroy.html
37512279 pub extern fn pthread_mutex_destroy(mutex: *pthread_mutex_t) c_int;
37522280
3753 /// int pthread_mutex_getprioceiling(const pthread_mutex_t *restrict mutex, int *restrict prioceiling);
3754 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_getprioceiling.html
3755 // pub extern fn pthread_mutex_getprioceiling(noalias __mutex: [*c]const pthread_mutex_t, noalias __prioceiling: [*c]c_int) c_int;
3756
37572281 /// int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr);
37582282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_init.html
37592283 pub extern fn pthread_mutex_init(mutex: *pthread_mutex_t, attr: ?*const pthread_mutexattr_t) c_int;
......@@ -3762,14 +2286,6 @@ pub const libc = struct {
37622286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_lock.html
37632287 pub extern fn pthread_mutex_lock(mutex: *pthread_mutex_t) c_int;
37642288
3765 /// int pthread_mutex_setprioceiling(pthread_mutex_t *restrict mutex, int prioceiling, int *restrict old_ceiling);
3766 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_setprioceiling.html
3767 // pub extern fn pthread_mutex_setprioceiling(noalias __mutex: [*c]pthread_mutex_t, __prioceiling: c_int, noalias __old_ceiling: [*c]c_int) c_int;
3768
3769 /// int pthread_mutex_timedlock(pthread_mutex_t *restrict mutex, const struct timespec *restrict abstime);
3770 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_timedlock.html
3771 // pub extern fn pthread_mutex_timedlock(noalias __mutex: [*c]pthread_mutex_t, noalias __abstime: [*c]const struct_timespec) c_int;
3772
37732289 /// int pthread_mutex_trylock(pthread_mutex_t *mutex);
37742290 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_trylock.html
37752291 pub extern fn pthread_mutex_trylock(mutex: *pthread_mutex_t) c_int;
......@@ -3782,54 +2298,10 @@ pub const libc = struct {
37822298 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_destroy.html
37832299 pub extern fn pthread_mutexattr_destroy(attr: *pthread_mutexattr_t) c_int;
37842300
3785 /// int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *restrict attr, int *restrict prioceiling);
3786 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getprioceiling.html
3787 // pub extern fn pthread_mutexattr_getprioceiling(noalias __attr: [*c]const pthread_mutexattr_t, noalias __prioceiling: [*c]c_int) c_int;
3788
3789 /// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict attr, int *restrict protocol);
3790 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getprotocol.html
3791 // pub extern fn pthread_mutexattr_getprotocol(noalias __attr: [*c]const pthread_mutexattr_t, noalias __protocol: [*c]c_int) c_int;
3792
3793 /// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict attr, int *restrict pshared);
3794 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getpshared.html
3795 // pub extern fn pthread_mutexattr_getpshared(noalias __attr: [*c]const pthread_mutexattr_t, noalias __pshared: [*c]c_int) c_int;
3796
3797 /// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict attr, int *restrict robust);
3798 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getrobust.html
3799 // pub extern fn pthread_mutexattr_getrobust(__attr: [*c]const pthread_mutexattr_t, __robustness: [*c]c_int) c_int;
3800
3801 /// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict attr, int *restrict type);
3802 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_gettype.html
3803 // pub extern fn pthread_mutexattr_gettype(noalias __attr: [*c]const pthread_mutexattr_t, noalias __kind: [*c]c_int) c_int;
3804
38052301 /// int pthread_mutexattr_init(pthread_mutexattr_t *attr);
38062302 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_init.html
38072303 pub extern fn pthread_mutexattr_init(attr: *pthread_mutexattr_t) c_int;
38082304
3809 /// int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling);
3810 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setprioceiling.html
3811 // pub extern fn pthread_mutexattr_setprioceiling(__attr: [*c]pthread_mutexattr_t, __prioceiling: c_int) c_int;
3812
3813 /// int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol);
3814 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setprotocol.html
3815 // pub extern fn pthread_mutexattr_setprotocol(__attr: [*c]pthread_mutexattr_t, __protocol: c_int) c_int;
3816
3817 /// int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared);
3818 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setpshared.html
3819 // pub extern fn pthread_mutexattr_setpshared(__attr: [*c]pthread_mutexattr_t, __pshared: c_int) c_int;
3820
3821 /// int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr, int robust);
3822 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setrobust.html
3823 // pub extern fn pthread_mutexattr_setrobust(__attr: [*c]pthread_mutexattr_t, __robustness: c_int) c_int;
3824
3825 /// int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type);
3826 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_settype.html
3827 // pub extern fn pthread_mutexattr_settype(__attr: [*c]pthread_mutexattr_t, __kind: c_int) c_int;
3828
3829 /// int pthread_once(pthread_once_t *once_control, void (*init_routine)(void));
3830 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_once.html
3831 // // pub extern fn pthread_once(__once_control: [*c]pthread_once_t, __init_routine: ?*const fn () callconv(.C) void) c_int;
3832
38332305 /// int pthread_rwlock_destroy(pthread_rwlock_t *rwlock);
38342306 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_destroy.html
38352307 pub extern fn pthread_rwlock_destroy(rwlock: *pthread_rwlock_t) c_int;
......@@ -3842,14 +2314,6 @@ pub const libc = struct {
38422314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_rdlock.html
38432315 pub extern fn pthread_rwlock_rdlock(rwlock: *pthread_rwlock_t) c_int;
38442316
3845 /// int pthread_rwlock_timedrdlock(pthread_rwlock_t *restrict rwlock, const struct timespec *restrict abstime);
3846 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_timedrdlock.html
3847 pub extern fn pthread_rwlock_timedrdlock(noalias rwlock: *pthread_rwlock_t, noalias abstime: *const struct_timespec) c_int;
3848
3849 /// int pthread_rwlock_timedwrlock(pthread_rwlock_t *restrict rwlock, const struct timespec *restrict abstime);
3850 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_timedwrlock.html
3851 pub extern fn pthread_rwlock_timedwrlock(noalias rwlock: *pthread_rwlock_t, noalias abstime: *const struct_timespec) c_int;
3852
38532317 /// int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);
38542318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_tryrdlock.html
38552319 pub extern fn pthread_rwlock_tryrdlock(rwlock: *pthread_rwlock_t) c_int;
......@@ -3866,90 +2330,14 @@ pub const libc = struct {
38662330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_wrlock.html
38672331 pub extern fn pthread_rwlock_wrlock(rwlock: *pthread_rwlock_t) c_int;
38682332
3869 /// int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
3870 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_destroy.html
3871 // pub extern fn pthread_rwlockattr_destroy(__attr: [*c]pthread_rwlockattr_t) c_int;
3872
3873 /// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict attr, int *restrict pshared);
3874 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_getpshared.html
3875 // pub extern fn pthread_rwlockattr_getpshared(noalias __attr: [*c]const pthread_rwlockattr_t, noalias __pshared: [*c]c_int) c_int;
3876
3877 /// int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);
3878 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_init.html
3879 // pub extern fn pthread_rwlockattr_init(__attr: [*c]pthread_rwlockattr_t) c_int;
3880
3881 /// int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared);
3882 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_setpshared.html
3883 // pub extern fn pthread_rwlockattr_setpshared(__attr: [*c]pthread_rwlockattr_t, __pshared: c_int) c_int;
3884
38852333 /// pthread_t pthread_self(void);
38862334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_self.html
38872335 pub extern fn pthread_self() pthread_t;
38882336
3889 /// int pthread_setcancelstate(int state, int *oldstate);
3890 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setcancelstate.html
3891 pub extern fn pthread_setcancelstate(__state: c_int, __oldstate: [*c]c_int) c_int;
3892
3893 /// int pthread_setcanceltype(int type, int *oldtype);
3894 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setcanceltype.html
3895 pub extern fn pthread_setcanceltype(__type: c_int, __oldtype: [*c]c_int) c_int;
3896
3897 /// int pthread_setconcurrency(int new_level);
3898 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setconcurrency.html
3899 pub const pthread_setconcurrency = @compileError("TODO pthread_setconcurrency");
3900
3901 /// int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param);
3902 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setschedparam.html
3903 // pub extern fn pthread_setschedparam(__target_thread: pthread_t, __policy: c_int, __param: [*c]const struct_sched_param) c_int;
3904
3905 /// int pthread_setschedprio(pthread_t thread, int prio);
3906 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setschedprio.html
3907 pub extern fn pthread_setschedprio(__target_thread: pthread_t, __prio: c_int) c_int;
3908
3909 /// int pthread_setspecific(pthread_key_t key, const void *value);
3910 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setspecific.html
3911 // pub extern fn pthread_setspecific(__key: pthread_key_t, __pointer: ?*const anyopaque) c_int;
3912
3913 /// int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict oset);
3914 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_sigmask.html
3915 // pub extern fn pthread_sigmask(__how: c_int, noalias __newmask: [*c]const __sigset_t, noalias __oldmask: [*c]__sigset_t) c_int;
3916
3917 /// int pthread_spin_destroy(pthread_spinlock_t *lock);
3918 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_destroy.html
3919 // pub extern fn pthread_spin_destroy(__lock: [*c]volatile pthread_spinlock_t) c_int;
3920
3921 /// int pthread_spin_init(pthread_spinlock_t *lock, int pshared);
3922 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_init.html
3923 // pub extern fn pthread_spin_init(__lock: [*c]volatile pthread_spinlock_t, __pshared: c_int) c_int;
3924
3925 /// int pthread_spin_lock(pthread_spinlock_t *lock);
3926 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_lock.html
3927 // pub extern fn pthread_spin_lock(__lock: [*c]volatile pthread_spinlock_t) c_int;
3928
3929 /// int pthread_spin_trylock(pthread_spinlock_t *lock);
3930 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_trylock.html
3931 // pub extern fn pthread_spin_trylock(__lock: [*c]volatile pthread_spinlock_t) c_int;
3932
3933 /// int pthread_spin_unlock(pthread_spinlock_t *lock);
3934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_unlock.html
3935 // pub extern fn pthread_spin_unlock(__lock: [*c]volatile pthread_spinlock_t) c_int;
3936
39372337 /// void pthread_testcancel(void);
39382338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_testcancel.html
39392339 pub extern fn pthread_testcancel() void;
39402340
3941 /// char *ptsname(int fildes);
3942 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ptsname.html
3943 pub const ptsname = @compileError("TODO ptsname");
3944
3945 /// int putc(int c, FILE *stream);
3946 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putc.html
3947 pub extern fn putc(__c: c_int, __stream: [*c]FILE) c_int;
3948
3949 /// int putc_unlocked(int c, FILE *stream);
3950 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putc_unlocked.html
3951 pub extern fn putc_unlocked(__c: c_int, __stream: [*c]FILE) c_int;
3952
39532341 /// int putchar(int c);
39542342 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar.html
39552343 pub extern fn putchar(c: c_int) c_int;
......@@ -3958,42 +2346,10 @@ pub const libc = struct {
39582346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar_unlocked.html
39592347 pub extern fn putchar_unlocked(c: c_int) c_int;
39602348
3961 /// int putenv(char *string);
3962 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putenv.html
3963 pub extern fn putenv(__string: [*c]u8) c_int;
3964
3965 /// int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags);
3966 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putmsg.html
3967 pub const putmsg = @compileError("TODO putmsg");
3968
3969 /// int putpmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags);
3970 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putpmsg.html
3971 pub const putpmsg = @compileError("TODO putpmsg");
3972
3973 /// int puts(const char *s);
3974 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/puts.html
3975 pub extern fn puts(__s: [*c]const u8) c_int;
3976
3977 /// struct utmpx *pututxline(const struct utmpx *utmpx);
3978 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pututxline.html
3979 pub extern fn pututxline(__utmpx: [*c]const struct_utmpx) [*c]struct_utmpx;
3980
3981 /// wint_t putwc(wchar_t wc, FILE *stream);
3982 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putwc.html
3983 // pub extern fn putwc(__wc: wchar_t, __stream: [*c]__FILE) wint_t;
3984
39852349 /// wint_t putwchar(wchar_t wc);
39862350 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putwchar.html
39872351 pub extern fn putwchar(wc: wchar_t) wint_t;
39882352
3989 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
3990 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pwrite.html
3991 pub extern fn pwrite(__fd: c_int, __buf: ?*const anyopaque, __n: usize, __offset: off_t) isize;
3992
3993 /// void qsort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *));
3994 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/qsort.html
3995 // pub extern fn qsort(__base: ?*anyopaque, __nmemb: usize, __size: usize, __compar: __compar_fn_t) void;
3996
39972353 /// int raise(int sig);
39982354 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/raise.html
39992355 pub extern fn raise(sig: c_int) c_int;
......@@ -4002,10 +2358,6 @@ pub const libc = struct {
40022358 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rand.html
40032359 pub extern fn rand() c_int;
40042360
4005 /// int rand_r(unsigned *seed);
4006 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rand_r.html
4007 pub extern fn rand_r(__seed: [*c]c_uint) c_int;
4008
40092361 /// long random(void);
40102362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/random.html
40112363 pub extern fn random() c_long;
......@@ -4014,14 +2366,6 @@ pub const libc = struct {
40142366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html
40152367 pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize;
40162368
4017 /// struct dirent *readdir(DIR *dirp);
4018 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readdir.html
4019 // pub extern fn readdir(__dirp: ?*DIR) [*c]struct_dirent;
4020
4021 /// int readdir_r(DIR *restrict dirp, struct dirent *restrict entry, struct dirent **restrict result);
4022 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readdir_r.html
4023 // pub extern fn readdir_r(noalias __dirp: ?*DIR, noalias __entry: [*c]struct_dirent, noalias __result: [*c][*c]struct_dirent) c_int;
4024
40252369 /// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize);
40262370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readlink.html
40272371 pub extern fn readlink(noalias path: [*:0]const u8, noalias buf: [*]u8, len: usize) isize;
......@@ -4034,42 +2378,10 @@ pub const libc = struct {
40342378 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readv.html
40352379 pub extern fn readv(fd: c_int, iovec: [*]const struct_iovec, count: c_int) isize;
40362380
4037 /// void *realloc(void *ptr, size_t size);
4038 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/realloc.html
4039 pub extern fn realloc(__ptr: ?*anyopaque, __size: c_ulong) ?*anyopaque;
4040
4041 /// char *realpath(const char *restrict file_name, char *restrict resolved_name);
4042 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/realpath.html
4043 pub extern fn realpath(noalias __name: [*c]const u8, noalias __resolved: [*c]u8) [*c]u8;
4044
40452381 /// ssize_t recv(int socket, void *buffer, size_t length, int flags);
40462382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recv.html
40472383 pub extern fn recv(fd: c_int, buffer: [*]u8, length: usize, flags: c_int) isize;
40482384
4049 /// ssize_t recvfrom(int socket, void *restrict buffer, size_t length, int flags, struct sockaddr *restrict address, socklen_t *restrict address_len);
4050 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recvfrom.html
4051 pub extern fn recvfrom(__fd: c_int, noalias __buf: ?*anyopaque, __n: usize, __flags: c_int, noalias __addr: [*c]struct_sockaddr, noalias __addr_len: [*c]socklen_t) isize;
4052
4053 /// ssize_t recvmsg(int socket, struct msghdr *message, int flags);
4054 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recvmsg.html
4055 // pub extern fn recvmsg(__fd: c_int, __message: [*c]struct_msghdr, __flags: c_int) isize;
4056
4057 /// int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags);
4058 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regcomp.html
4059 // pub extern fn regcomp(noalias __preg: ?*regex_t, noalias __pattern: [*c]const u8, __cflags: c_int) c_int;
4060
4061 /// size_t regerror(int errcode, const regex_t *restrict preg, char *restrict errbuf, size_t errbuf_size);
4062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regerror.html
4063 // pub extern fn regerror(__errcode: c_int, noalias __preg: ?*const regex_t, noalias __errbuf: [*c]u8, __errbuf_size: usize) usize;
4064
4065 /// int regexec(const regex_t *restrict preg, const char *restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags);
4066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regexec.html
4067 // pub extern fn regexec(noalias __preg: ?*const regex_t, noalias __String: [*c]const u8, __nmatch: usize, noalias __pmatch: [*c]regmatch_t, __eflags: c_int) c_int;
4068
4069 /// void regfree(regex_t *preg);
4070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regfree.html
4071 // pub extern fn regfree(__preg: ?*regex_t) void;
4072
40732385 /// double remainder(double x, double y);
40742386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainder.html
40752387 pub extern fn remainder(x: f64, y: f64) f64;
......@@ -4082,42 +2394,10 @@ pub const libc = struct {
40822394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainderl.html
40832395 pub extern fn remainderl(x: c_longdouble, y: c_longdouble) c_longdouble;
40842396
4085 /// int remove(const char *path);
4086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remove.html
4087 pub extern fn remove(__filename: [*c]const u8) c_int;
4088
4089 /// void remque(void *element);
4090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remque.html
4091 pub extern fn remque(__elem: ?*anyopaque) void;
4092
4093 /// double remquo(double x, double y, int *quo);
4094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquo.html
4095 pub extern fn remquo(__x: f64, __y: f64, __quo: [*c]c_int) f64;
4096
4097 /// float remquof(float x, float y, int *quo);
4098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquof.html
4099 pub extern fn remquof(__x: f32, __y: f32, __quo: [*c]c_int) f32;
4100
4101 /// long double remquol(long double x, long double y, int *quo);
4102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquol.html
4103 pub extern fn remquol(__x: c_longdouble, __y: c_longdouble, __quo: [*c]c_int) c_longdouble;
4104
4105 /// int rename(const char *old, const char *new);
4106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rename.html
4107 pub extern fn rename(__old: [*c]const u8, __new: [*c]const u8) c_int;
4108
41092397 /// int renameat(int oldfd, const char *old, int newfd, const char *new);
41102398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/renameat.html
41112399 pub extern fn renameat(oldfd: c_int, old: [*:0]const u8, newfd: c_int, new: [*:0]const u8) c_int;
41122400
4113 /// void rewind(FILE *stream);
4114 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rewind.html
4115 pub extern fn rewind(__stream: [*c]FILE) void;
4116
4117 /// void rewinddir(DIR *dirp);
4118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rewinddir.html
4119 pub extern fn rewinddir(__dirp: ?*DIR) void;
4120
41212401 /// double rint(double x);
41222402 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rint.html
41232403 pub extern fn rint(x: f64) f64;
......@@ -4170,14 +2450,6 @@ pub const libc = struct {
41702450 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbnl.html
41712451 pub extern fn scalbnl(x: c_longdouble, n: c_int) c_longdouble;
41722452
4173 /// int scandir(const char *dir, struct dirent ***namelist, int (*sel)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **));
4174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scandir.html
4175 // pub extern fn scandir(noalias __dir: [*c]const u8, noalias __namelist: [*c][*c][*c]struct_dirent, __selector: ?*const fn ([*c]const struct_dirent) callconv(.C) c_int, __cmp: ?*const fn ([*c][*c]const struct_dirent, [*c][*c]const struct_dirent) callconv(.C) c_int) c_int;
4176
4177 /// int scanf(const char *restrict format, ...);
4178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scanf.html
4179 pub extern fn scanf(noalias __format: [*c]const u8, ...) c_int;
4180
41812453 /// int sched_get_priority_max(int policy);
41822454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_max.html
41832455 pub extern fn sched_get_priority_max(policy: c_int) c_int;
......@@ -4186,118 +2458,30 @@ pub const libc = struct {
41862458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_min.html
41872459 pub extern fn sched_get_priority_min(policy: c_int) c_int;
41882460
4189 /// int sched_getparam(pid_t pid, struct sched_param *param);
4190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_getparam.html
4191 // pub extern fn sched_getparam(__pid: __pid_t, __param: [*c]struct_sched_param) c_int;
4192
41932461 /// int sched_getscheduler(pid_t pid);
41942462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_getscheduler.html
41952463 pub extern fn sched_getscheduler(pid: pid_t) c_int;
41962464
4197 /// int sched_rr_get_interval(pid_t pid, struct timespec *interval);
4198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_rr_get_interval.html
4199 // pub extern fn sched_rr_get_interval(__pid: __pid_t, __t: [*c]struct_timespec) c_int;
4200
4201 /// int sched_setparam(pid_t pid, const struct sched_param *param);
4202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_setparam.html
4203 // pub extern fn sched_setparam(__pid: __pid_t, __param: [*c]const struct_sched_param) c_int;
4204
4205 /// int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param);
4206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_setscheduler.html
4207 // pub extern fn sched_setscheduler(__pid: __pid_t, __policy: c_int, __param: [*c]const struct_sched_param) c_int;
4208
42092465 /// int sched_yield(void);
42102466 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_yield.html
42112467 pub extern fn sched_yield() c_int;
42122468
4213 /// unsigned short *seed48(unsigned short seed16v[3]);
4214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seed48.html
4215 pub extern fn seed48(__seed16v: [*c]c_ushort) [*c]c_ushort;
4216
4217 /// void seekdir(DIR *dirp, long loc);
4218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seekdir.html
4219 pub extern fn seekdir(__dirp: ?*DIR, __pos: c_long) void;
4220
4221 /// int select(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict errorfds, struct timeval *restrict timeout);
4222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/select.html
4223 // pub extern fn select(__nfds: c_int, noalias __readfds: [*c]fd_set, noalias __writefds: [*c]fd_set, noalias __exceptfds: [*c]fd_set, noalias __timeout: [*c]struct_timeval) c_int;
4224
4225 /// int sem_close(sem_t *sem);
4226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_close.html
4227 // pub extern fn sem_close(__sem: [*c]sem_t) c_int;
4228
4229 /// int sem_destroy(sem_t *sem);
4230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_destroy.html
4231 // pub extern fn sem_destroy(__sem: [*c]sem_t) c_int;
4232
4233 /// int sem_getvalue(sem_t *restrict sem, int *restrict sval);
4234 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_getvalue.html
4235 // pub extern fn sem_getvalue(noalias __sem: [*c]sem_t, noalias __sval: [*c]c_int) c_int;
4236
4237 /// int sem_init(sem_t *sem, int pshared, unsigned value);
4238 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_init.html
4239 // pub extern fn sem_init(__sem: [*c]sem_t, __pshared: c_int, __value: c_uint) c_int;
4240
4241 /// sem_t *sem_open(const char *name, int oflag, ...);
4242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_open.html
4243 // pub extern fn sem_open(__name: [*c]const u8, __oflag: c_int, ...) [*c]sem_t;
4244
4245 /// int sem_post(sem_t *sem);
4246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_post.html
4247 // pub extern fn sem_post(__sem: [*c]sem_t) c_int;
4248
4249 /// int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict abstime);
4250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_timedwait.html
4251 // pub extern fn sem_timedwait(noalias __sem: [*c]sem_t, noalias __abstime: [*c]const struct_timespec) c_int;
4252
4253 /// int sem_trywait(sem_t *sem);
4254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_trywait.html
4255 // pub extern fn sem_trywait(__sem: [*c]sem_t) c_int;
4256
42572469 /// int sem_unlink(const char *name);
42582470 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_unlink.html
42592471 pub extern fn sem_unlink(name: [*:0]const u8) c_int;
42602472
4261 /// int sem_wait(sem_t *sem);
4262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_wait.html
4263 // pub extern fn sem_wait(__sem: [*c]sem_t) c_int;
4264
42652473 /// int semctl(int semid, int semnum, int cmd, ...);
42662474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semctl.html
42672475 pub extern fn semctl(semid: c_int, semnum: c_int, cmd: c_int, ...) c_int;
42682476
4269 /// int semget(key_t key, int nsems, int semflg);
4270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semget.html
4271 // pub extern fn semget(__key: key_t, __nsems: c_int, __semflg: c_int) c_int;
4272
4273 /// int semop(int semid, struct sembuf *sops, size_t nsops);
4274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semop.html
4275 // pub extern fn semop(__semid: c_int, __sops: [*c]struct_sembuf, __nsops: usize) c_int;
4276
42772477 /// ssize_t send(int socket, const void *buffer, size_t length, int flags);
42782478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/send.html
42792479 pub extern fn send(fd: c_int, buffer: [*]const u8, length: usize, flags: c_int) isize;
42802480
4281 /// ssize_t sendmsg(int socket, const struct msghdr *message, int flags);
4282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sendmsg.html
4283 // pub extern fn sendmsg(__fd: c_int, __message: [*c]const struct_msghdr, __flags: c_int) isize;
4284
4285 /// ssize_t sendto(int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len);
4286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sendto.html
4287 pub extern fn sendto(__fd: c_int, __buf: ?*const anyopaque, __n: usize, __flags: c_int, __addr: [*c]const struct_sockaddr, __addr_len: socklen_t) isize;
4288
4289 /// void setbuf(FILE *restrict stream, char *restrict buf);
4290 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setbuf.html
4291 pub extern fn setbuf(noalias __stream: [*c]FILE, noalias __buf: [*c]u8) void;
4292
42932481 /// int setegid(gid_t gid);
42942482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setegid.html
42952483 pub extern fn setegid(gid: gid_t) c_int;
42962484
4297 /// int setenv(const char *envname, const char *envval, int overwrite);
4298 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setenv.html
4299 pub extern fn setenv(__name: [*c]const u8, __value: [*c]const u8, __replace: c_int) c_int;
4300
43012485 /// int seteuid(uid_t uid);
43022486 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seteuid.html
43032487 pub extern fn seteuid(uid: uid_t) c_int;
......@@ -4314,18 +2498,6 @@ pub const libc = struct {
43142498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sethostent.html
43152499 pub extern fn sethostent(stayopen: c_int) void;
43162500
4317 /// int setitimer(int which, const struct itimerval *restrict value, struct itimerval *restrict ovalue);
4318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setitimer.html
4319 // pub extern fn setitimer(__which: __itimer_which_t, noalias __new: [*c]const struct_itimerval, noalias __old: [*c]struct_itimerval) c_int;
4320
4321 /// void setkey(const char *key);
4322 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setkey.html
4323 pub const setkey = @compileError("TODO setkey");
4324
4325 /// char *setlocale(int category, const char *locale);
4326 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setlocale.html
4327 pub extern fn setlocale(category: c_int, locale: [*:0]const u8) [*c]u8;
4328
43292501 /// int setlogmask(int maskpri);
43302502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setlogmask.html
43312503 pub extern fn setlogmask(maskpri: c_int) c_int;
......@@ -4334,18 +2506,10 @@ pub const libc = struct {
43342506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setnetent.html
43352507 pub extern fn setnetent(stayopen: c_int) void;
43362508
4337 /// int setpgid(pid_t pid, pid_t pgid);
4338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpgid.html
4339 // pub extern fn setpgid(__pid: __pid_t, __pgid: __pid_t) c_int;
4340
43412509 /// pid_t setpgrp(void);
43422510 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpgrp.html
43432511 pub extern fn setpgrp() pid_t;
43442512
4345 /// int setpriority(int which, id_t who, int value);
4346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpriority.html
4347 // pub extern fn setpriority(__which: __priority_which_t, __who: id_t, __prio: c_int) c_int;
4348
43492513 /// void setprotoent(int stayopen);
43502514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setprotoent.html
43512515 pub extern fn setprotoent(stayopen: c_int) void;
......@@ -4362,10 +2526,6 @@ pub const libc = struct {
43622526 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setreuid.html
43632527 pub extern fn setreuid(ruid: uid_t, euid: uid_t) c_int;
43642528
4365 /// int setrlimit(int resource, const struct rlimit *rlp);
4366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setrlimit.html
4367 // pub extern fn setrlimit(__resource: __rlimit_resource_t, __rlimits: [*c]const struct_rlimit) c_int;
4368
43692529 /// void setservent(int stayopen);
43702530 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setservent.html
43712531 pub extern fn setservent(stayopen: c_int) void;
......@@ -4378,10 +2538,6 @@ pub const libc = struct {
43782538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setsockopt.html
43792539 pub extern fn setsockopt(fd: c_int, level: c_int, optname: c_int, optval: *const anyopaque, optlen: socklen_t) c_int;
43802540
4381 /// char *setstate(char *state);
4382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setstate.html
4383 pub extern fn setstate(__statebuf: [*c]u8) [*c]u8;
4384
43852541 /// int setuid(uid_t uid);
43862542 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setuid.html
43872543 pub extern fn setuid(uid: uid_t) c_int;
......@@ -4390,62 +2546,14 @@ pub const libc = struct {
43902546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setutxent.html
43912547 pub extern fn setutxent() void;
43922548
4393 /// int setvbuf(FILE *restrict stream, char *restrict buf, int type, size_t size);
4394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setvbuf.html
4395 pub extern fn setvbuf(noalias __stream: [*c]FILE, noalias __buf: [*c]u8, __modes: c_int, __n: usize) c_int;
4396
4397 /// int shm_open(const char *name, int oflag, mode_t mode);
4398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shm_open.html
4399 pub extern fn shm_open(__name: [*c]const u8, __oflag: c_int, __mode: mode_t) c_int;
4400
44012549 /// int shm_unlink(const char *name);
44022550 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shm_unlink.html
44032551 pub extern fn shm_unlink(name: [*:0]const u8) c_int;
44042552
4405 /// void *shmat(int shmid, const void *shmaddr, int shmflg);
4406 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmat.html
4407 pub extern fn shmat(__shmid: c_int, __shmaddr: ?*const anyopaque, __shmflg: c_int) ?*anyopaque;
4408
4409 /// int shmctl(int shmid, int cmd, struct shmid_ds *buf);
4410 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmctl.html
4411 // pub extern fn shmctl(__shmid: c_int, __cmd: c_int, __buf: [*c]struct_shmid_ds) c_int;
4412
4413 /// int shmdt(const void *shmaddr);
4414 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmdt.html
4415 pub extern fn shmdt(__shmaddr: ?*const anyopaque) c_int;
4416
4417 /// int shmget(key_t key, size_t size, int shmflg);
4418 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmget.html
4419 // pub extern fn shmget(__key: key_t, __size: usize, __shmflg: c_int) c_int;
4420
44212553 /// int shutdown(int socket, int how);
44222554 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shutdown.html
44232555 pub extern fn shutdown(socket: c_int, how: c_int) c_int;
44242556
4425 /// int sigaction(int sig, const struct sigaction *restrict act, struct sigaction *restrict oact);
4426 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaction.html
4427 // pub extern fn sigaction(__sig: c_int, noalias __act: [*c]const struct_sigaction, noalias __oact: [*c]struct_sigaction) c_int;
4428
4429 /// int sigaddset(sigset_t *set, int signo);
4430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaddset.html
4431 // pub extern fn sigaddset(__set: [*c]sigset_t, __signo: c_int) c_int;
4432
4433 /// int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss);
4434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaltstack.html
4435 // pub extern fn sigaltstack(noalias __ss: [*c]const stack_t, noalias __oss: [*c]stack_t) c_int;
4436
4437 /// int sigdelset(sigset_t *set, int signo);
4438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigdelset.html
4439 // pub extern fn sigdelset(__set: [*c]sigset_t, __signo: c_int) c_int;
4440
4441 /// int sigemptyset(sigset_t *set);
4442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigemptyset.html
4443 // pub extern fn sigemptyset(__set: [*c]sigset_t) c_int;
4444
4445 /// int sigfillset(sigset_t *set);
4446 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigfillset.html
4447 // pub extern fn sigfillset(__set: [*c]sigset_t) c_int;
4448
44492557 /// int sighold(int sig);
44502558 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sighold.html
44512559 pub extern fn sighold(sig: c_int) c_int;
......@@ -4458,54 +2566,14 @@ pub const libc = struct {
44582566 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/siginterrupt.html
44592567 pub extern fn siginterrupt(sig: c_int, flag: c_int) c_int;
44602568
4461 /// int sigismember(const sigset_t *set, int signo);
4462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigismember.html
4463 // pub extern fn sigismember(__set: [*c]const sigset_t, __signo: c_int) c_int;
4464
4465 /// void (*signal(int sig, void (*func)(int)))(int);
4466 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/signal.html
4467 // pub extern fn signal(__sig: c_int, __handler: __sighandler_t) __sighandler_t;
4468
44692569 /// int sigpause(int sig);
44702570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigpause.html
44712571 pub extern fn sigpause(sig: c_int) c_int;
44722572
4473 /// int sigpending(sigset_t *set);
4474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigpending.html
4475 // pub extern fn sigpending(__set: [*c]sigset_t) c_int;
4476
4477 /// int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict oset);
4478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigprocmask.html
4479 // pub extern fn sigprocmask(__how: c_int, noalias __set: [*c]const sigset_t, noalias __oset: [*c]sigset_t) c_int;
4480
4481 /// int sigqueue(pid_t pid, int signo, const union sigval value);
4482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigqueue.html
4483 // pub extern fn sigqueue(__pid: __pid_t, __sig: c_int, __val: union_sigval) c_int;
4484
44852573 /// int sigrelse(int sig);
44862574 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigrelse.html
44872575 pub extern fn sigrelse(sig: c_int) c_int;
44882576
4489 /// void (*sigset(int sig, void (*disp)(int)))(int);
4490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigset.html
4491 pub const sigset = @compileError("TODO sigset");
4492
4493 /// int sigsuspend(const sigset_t *sigmask);
4494 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigsuspend.html
4495 // pub extern fn sigsuspend(__set: [*c]const sigset_t) c_int;
4496
4497 /// int sigtimedwait(const sigset_t *restrict set, siginfo_t *restrict info, const struct timespec *restrict timeout);
4498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigtimedwait.html
4499 // pub extern fn sigtimedwait(noalias __set: [*c]const sigset_t, noalias __info: [*c]siginfo_t, noalias __timeout: [*c]const struct_timespec) c_int;
4500
4501 /// int sigwait(const sigset_t *restrict set, int *restrict sig);
4502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigwait.html
4503 // pub extern fn sigwait(noalias __set: [*c]const sigset_t, noalias __sig: [*c]c_int) c_int;
4504
4505 /// int sigwaitinfo(const sigset_t *restrict set, siginfo_t *restrict info);
4506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigwaitinfo.html
4507 // pub extern fn sigwaitinfo(noalias __set: [*c]const sigset_t, noalias __info: [*c]siginfo_t) c_int;
4508
45092577 /// double sin(double x);
45102578 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sin.html
45112579 pub extern fn sin(x: f64) f64;
......@@ -4534,10 +2602,6 @@ pub const libc = struct {
45342602 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sleep.html
45352603 pub extern fn sleep(seconds: c_uint) c_uint;
45362604
4537 /// int snprintf(char *restrict s, size_t n, const char *restrict format, ...);
4538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/snprintf.html
4539 pub extern fn snprintf(__s: [*c]u8, __maxlen: c_ulong, __format: [*c]const u8, ...) c_int;
4540
45412605 /// int sockatmark(int s);
45422606 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sockatmark.html
45432607 pub extern fn sockatmark(s: c_int) c_int;
......@@ -4550,10 +2614,6 @@ pub const libc = struct {
45502614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/socketpair.html
45512615 pub extern fn socketpair(domain: c_int, type: c_int, protocol: c_int, fds: *[2]c_int) c_int;
45522616
4553 /// int sprintf(char *restrict s, const char *restrict format, ...);
4554 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sprintf.html
4555 pub extern fn sprintf(__s: [*c]u8, __format: [*c]const u8, ...) c_int;
4556
45572617 /// double sqrt(double x);
45582618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sqrt.html
45592619 pub extern fn sqrt(x: f64) f64;
......@@ -4578,222 +2638,10 @@ pub const libc = struct {
45782638 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/srandom.html
45792639 pub extern fn srandom(seed: c_uint) void;
45802640
4581 /// int sscanf(const char *restrict s, const char *restrict format, ...);
4582 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sscanf.html
4583 pub extern fn sscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, ...) c_int;
4584
4585 /// int stat(const char *restrict path, struct stat *restrict buf);
4586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stat.html
4587 // pub extern fn stat(noalias __file: [*c]const u8, noalias __buf: [*c]struct_stat) c_int;
4588
4589 /// int statvfs(const char *restrict path, struct statvfs *restrict buf);
4590 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/statvfs.html
4591 // pub extern fn statvfs(noalias __file: [*c]const u8, noalias __buf: [*c]struct_statvfs) c_int;
4592
4593 /// char *stpcpy(char *restrict s1, const char *restrict s2);
4594 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stpcpy.html
4595 pub extern fn stpcpy(__dest: [*c]u8, __src: [*c]const u8) [*c]u8;
4596
4597 /// char *stpncpy(char *restrict s1, const char *restrict s2, size_t n);
4598 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stpncpy.html
4599 pub extern fn stpncpy(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8;
4600
4601 /// int strcasecmp(const char *s1, const char *s2);
4602 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcasecmp.html
4603 pub extern fn strcasecmp(__s1: [*c]const u8, __s2: [*c]const u8) c_int;
4604
4605 /// int strcasecmp_l(const char *s1, const char *s2, locale_t locale);
4606 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcasecmp_l.html
4607 pub extern fn strcasecmp_l(__s1: [*c]const u8, __s2: [*c]const u8, __loc: locale_t) c_int;
4608
4609 /// char *strcat(char *restrict s1, const char *restrict s2);
4610 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcat.html
4611 pub extern fn strcat(__dest: [*c]u8, __src: [*c]const u8) [*c]u8;
4612
4613 /// char *strchr(const char *s, int c);
4614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strchr.html
4615 pub extern fn strchr(__s: [*c]const u8, __c: c_int) [*c]u8;
4616
4617 /// int strcmp(const char *s1, const char *s2);
4618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcmp.html
4619 pub extern fn strcmp(__s1: [*c]const u8, __s2: [*c]const u8) c_int;
4620
4621 /// int strcoll(const char *s1, const char *s2);
4622 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcoll.html
4623 pub extern fn strcoll(__s1: [*c]const u8, __s2: [*c]const u8) c_int;
4624
4625 /// int strcoll_l(const char *s1, const char *s2, locale_t locale);
4626 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcoll_l.html
4627 pub extern fn strcoll_l(__s1: [*c]const u8, __s2: [*c]const u8, __l: locale_t) c_int;
4628
4629 /// char *strcpy(char *restrict s1, const char *restrict s2);
4630 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcpy.html
4631 pub extern fn strcpy(__dest: [*c]u8, __src: [*c]const u8) [*c]u8;
4632
4633 /// size_t strcspn(const char *s1, const char *s2);
4634 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcspn.html
4635 pub extern fn strcspn(__s: [*c]const u8, __reject: [*c]const u8) c_ulong;
4636
4637 /// char *strdup(const char *s);
4638 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strdup.html
4639 pub extern fn strdup(__s: [*c]const u8) [*c]u8;
4640
4641 /// char *strerror(int errnum);
4642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror.html
4643 pub extern fn strerror(__errnum: c_int) [*c]u8;
4644
4645 /// char *strerror_l(int errnum, locale_t locale);
4646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror_l.html
4647 pub extern fn strerror_l(__errnum: c_int, __l: locale_t) [*c]u8;
4648
4649 /// int strerror_r(int errnum, char *strerrbuf, size_t buflen);
4650 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror_r.html
4651 pub extern fn strerror_r(__errnum: c_int, __buf: [*c]u8, __buflen: usize) c_int;
4652
4653 /// ssize_t strfmon(char *restrict s, size_t maxsize, const char *restrict format, ...);
4654 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strfmon.html
4655 pub extern fn strfmon(noalias __s: [*c]u8, __maxsize: usize, noalias __format: [*c]const u8, ...) isize;
4656
4657 /// ssize_t strfmon_l(char *restrict s, size_t maxsize, locale_t locale, const char *restrict format, ...);
4658 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strfmon_l.html
4659 pub extern fn strfmon_l(noalias __s: [*c]u8, __maxsize: usize, __loc: locale_t, noalias __format: [*c]const u8, ...) isize;
4660
4661 /// size_t strftime(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr);
4662 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strftime.html
4663 // pub extern fn strftime(noalias __s: [*c]u8, __maxsize: usize, noalias __format: [*c]const u8, noalias __tp: [*c]const struct_tm) usize;
4664
4665 /// size_t strftime_l(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr, locale_t locale);
4666 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strftime_l.html
4667 // pub extern fn strftime_l(noalias __s: [*c]u8, __maxsize: usize, noalias __format: [*c]const u8, noalias __tp: [*c]const struct_tm, __loc: locale_t) usize;
4668
46692641 /// size_t strlen(const char *s);
46702642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strlen.html
46712643 pub extern fn strlen(s: [*:0]const u8) c_ulong;
46722644
4673 /// int strncasecmp(const char *s1, const char *s2, size_t n);
4674 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncasecmp.html
4675 pub extern fn strncasecmp(__s1: [*c]const u8, __s2: [*c]const u8, __n: c_ulong) c_int;
4676
4677 /// int strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale);
4678 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncasecmp_l.html
4679 pub extern fn strncasecmp_l(__s1: [*c]const u8, __s2: [*c]const u8, __n: usize, __loc: locale_t) c_int;
4680
4681 /// char *strncat(char *restrict s1, const char *restrict s2, size_t n);
4682 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncat.html
4683 pub extern fn strncat(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8;
4684
4685 /// int strncmp(const char *s1, const char *s2, size_t n);
4686 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncmp.html
4687 pub extern fn strncmp(__s1: [*c]const u8, __s2: [*c]const u8, __n: c_ulong) c_int;
4688
4689 /// char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
4690 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncpy.html
4691 pub extern fn strncpy(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8;
4692
4693 /// char *strndup(const char *s, size_t size);
4694 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strndup.html
4695 pub extern fn strndup(__string: [*c]const u8, __n: c_ulong) [*c]u8;
4696
4697 /// size_t strnlen(const char *s, size_t maxlen);
4698 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strnlen.html
4699 pub extern fn strnlen(__string: [*c]const u8, __maxlen: usize) usize;
4700
4701 /// char *strpbrk(const char *s1, const char *s2);
4702 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strpbrk.html
4703 pub extern fn strpbrk(__s: [*c]const u8, __accept: [*c]const u8) [*c]u8;
4704
4705 /// char *strptime(const char *restrict buf, const char *restrict format, struct tm *restrict tm);
4706 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strptime.html
4707 pub const strptime = @compileError("TODO strptime");
4708
4709 /// char *strrchr(const char *s, int c);
4710 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strrchr.html
4711 pub extern fn strrchr(__s: [*c]const u8, __c: c_int) [*c]u8;
4712
4713 /// char *strsignal(int signum);
4714 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strsignal.html
4715 pub extern fn strsignal(__sig: c_int) [*c]u8;
4716
4717 /// size_t strspn(const char *s1, const char *s2);
4718 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strspn.html
4719 pub extern fn strspn(__s: [*c]const u8, __accept: [*c]const u8) c_ulong;
4720
4721 /// char *strstr(const char *s1, const char *s2);
4722 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strstr.html
4723 pub extern fn strstr(__haystack: [*c]const u8, __needle: [*c]const u8) [*c]u8;
4724
4725 /// double strtod(const char *restrict nptr, char **restrict endptr);
4726 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtod.html
4727 pub extern fn strtod(__nptr: [*c]const u8, __endptr: [*c][*c]u8) f64;
4728
4729 /// float strtof(const char *restrict nptr, char **restrict endptr);
4730 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtof.html
4731 pub extern fn strtof(__nptr: [*c]const u8, __endptr: [*c][*c]u8) f32;
4732
4733 /// intmax_t strtoimax(const char *restrict nptr, char **restrict endptr, int base);
4734 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoimax.html
4735 pub extern fn strtoimax(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) intmax_t;
4736
4737 /// char *strtok(char *restrict s1, const char *restrict s2);
4738 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtok.html
4739 pub extern fn strtok(__s: [*c]u8, __delim: [*c]const u8) [*c]u8;
4740
4741 /// char *strtok_r(char *restrict s, const char *restrict sep, char **restrict lasts);
4742 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtok_r.html
4743 pub extern fn strtok_r(noalias __s: [*c]u8, noalias __delim: [*c]const u8, noalias __save_ptr: [*c][*c]u8) [*c]u8;
4744
4745 /// long strtol(const char *restrict str, char **restrict endptr, int base);
4746 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtol.html
4747 pub extern fn strtol(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_long;
4748
4749 /// long double strtold(const char *restrict nptr, char **restrict endptr);
4750 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtold.html
4751 pub extern fn strtold(__nptr: [*c]const u8, __endptr: [*c][*c]u8) c_longdouble;
4752
4753 /// long long strtoll(const char *restrict str, char **restrict endptr, int base)
4754 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoll.html
4755 pub extern fn strtoll(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_longlong;
4756
4757 /// unsigned long strtoul(const char *restrict str, char **restrict endptr, int base);
4758 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoul.html
4759 pub extern fn strtoul(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_ulong;
4760
4761 /// unsigned long long strtoull(const char *restrict str, char **restrict endptr, int base);
4762 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoull.html
4763 pub extern fn strtoull(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_ulonglong;
4764
4765 /// uintmax_t strtoumax(const char *restrict nptr, char **restrict endptr, int base);
4766 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoumax.html
4767 // pub extern fn strtoumax(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) uintmax_t;
4768
4769 /// size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n);
4770 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strxfrm.html
4771 pub extern fn strxfrm(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) c_ulong;
4772
4773 /// size_t strxfrm_l(char *restrict s1, const char *restrict s2, size_t n, locale_t locale);
4774 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strxfrm_l.html
4775 pub extern fn strxfrm_l(__dest: [*c]u8, __src: [*c]const u8, __n: usize, __l: locale_t) usize;
4776
4777 /// void swab(const void *restrict src, void *restrict dest, ssize_t nbytes);
4778 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swab.html
4779 pub const swab = @compileError("TODO swab");
4780
4781 /// int swprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, ...);
4782 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swprintf.html
4783 pub extern fn swprintf(noalias __s: [*c]wchar_t, __n: usize, noalias __format: [*c]const wchar_t, ...) c_int;
4784
4785 /// int swscanf(const wchar_t *restrict ws, const wchar_t *restrict format, ...);
4786 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swscanf.html
4787 pub extern fn swscanf(noalias __s: [*c]const wchar_t, noalias __format: [*c]const wchar_t, ...) c_int;
4788
4789 /// int symlink(const char *path1, const char *path2);
4790 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/symlink.html
4791 pub extern fn symlink(__from: [*c]const u8, __to: [*c]const u8) c_int;
4792
4793 /// int symlinkat(const char *path1, int fd, const char *path2);
4794 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/symlinkat.html
4795 pub extern fn symlinkat(__from: [*c]const u8, __tofd: c_int, __to: [*c]const u8) c_int;
4796
47972645 /// void sync(void);
47982646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sync.html
47992647 pub extern fn sync() void;
......@@ -4802,14 +2650,6 @@ pub const libc = struct {
48022650 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sysconf.html
48032651 pub extern fn sysconf(name: c_int) c_long;
48042652
4805 /// void syslog(int priority, const char *message, ... /* arguments */);
4806 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/syslog.html
4807 pub extern fn syslog(__pri: c_int, __fmt: [*c]const u8, ...) void;
4808
4809 /// int system(const char *command);
4810 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/system.html
4811 pub extern fn system(__command: [*c]const u8) c_int;
4812
48132653 /// double tan(double x);
48142654 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tan.html
48152655 pub extern fn tan(x: f64) f64;
......@@ -4846,10 +2686,6 @@ pub const libc = struct {
48462686 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcflush.html
48472687 pub extern fn tcflush(fd: c_int, queue_selector: c_int) c_int;
48482688
4849 /// int tcgetattr(int fildes, struct termios *termios_p);
4850 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetattr.html
4851 pub extern fn tcgetattr(fd: c_int, termios_p: *struct_termios) c_int;
4852
48532689 /// pid_t tcgetpgrp(int fildes);
48542690 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetpgrp.html
48552691 pub extern fn tcgetpgrp(fd: c_int) pid_t;
......@@ -4862,30 +2698,6 @@ pub const libc = struct {
48622698 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsendbreak.html
48632699 pub extern fn tcsendbreak(fd: c_int, duration: c_int) c_int;
48642700
4865 /// int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p);
4866 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsetattr.html
4867 pub extern fn tcsetattr(fd: c_int, optional_actions: c_int, termios_p: *const struct_termios) c_int;
4868
4869 /// int tcsetpgrp(int fildes, pid_t pgid_id);
4870 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsetpgrp.html
4871 // pub extern fn tcsetpgrp(__fd: c_int, __pgrp_id: __pid_t) c_int;
4872
4873 /// void *tdelete(const void *restrict key, void **restrict rootp, int(*compar)(const void *, const void *));
4874 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tdelete.html
4875 // pub extern fn tdelete(noalias __key: ?*const anyopaque, noalias __rootp: [*c]?*anyopaque, __compar: __compar_fn_t) ?*anyopaque;
4876
4877 /// long telldir(DIR *dirp);
4878 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/telldir.html
4879 pub extern fn telldir(__dirp: ?*DIR) c_long;
4880
4881 /// char *tempnam(const char *dir, const char *pfx);
4882 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tempnam.html
4883 pub extern fn tempnam(__dir: [*c]const u8, __pfx: [*c]const u8) [*c]u8;
4884
4885 /// void *tfind(const void *key, void *const *rootp, int(*compar)(const void *, const void *));
4886 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tfind.html
4887 // pub extern fn tfind(__key: ?*const anyopaque, __rootp: [*c]const ?*anyopaque, __compar: __compar_fn_t) ?*anyopaque;
4888
48892701 /// double tgamma(double x);
48902702 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgamma.html
48912703 pub extern fn tgamma(x: f64) f64;
......@@ -4898,42 +2710,6 @@ pub const libc = struct {
48982710 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgammal.html
48992711 pub extern fn tgammal(x: c_longdouble) c_longdouble;
49002712
4901 /// time_t time(time_t *tloc);
4902 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/time.html
4903 pub extern fn time(__timer: [*c]time_t) time_t;
4904
4905 /// int timer_create(clockid_t clockid, struct sigevent *restrict evp, timer_t *restrict timerid);
4906 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_create.html
4907 // pub extern fn timer_create(__clock_id: clockid_t, noalias __evp: [*c]struct_sigevent, noalias __timerid: [*c]timer_t) c_int;
4908
4909 /// int timer_delete(timer_t timerid);
4910 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_delete.html
4911 // pub extern fn timer_delete(__timerid: timer_t) c_int;
4912
4913 /// int timer_getoverrun(timer_t timerid);
4914 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_getoverrun.html
4915 // pub extern fn timer_getoverrun(__timerid: timer_t) c_int;
4916
4917 /// int timer_gettime(timer_t timerid, struct itimerspec *value);
4918 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_gettime.html
4919 // pub extern fn timer_gettime(__timerid: timer_t, __value: [*c]struct_itimerspec) c_int;
4920
4921 /// int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict value, struct itimerspec *restrict ovalue);
4922 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_settime.html
4923 // pub extern fn timer_settime(__timerid: timer_t, __flags: c_int, noalias __value: [*c]const struct_itimerspec, noalias __ovalue: [*c]struct_itimerspec) c_int;
4924
4925 /// clock_t times(struct tms *buffer);
4926 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/times.html
4927 // pub extern fn times(__buffer: [*c]struct_tms) clock_t;
4928
4929 /// FILE *tmpfile(void);
4930 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tmpfile.html
4931 pub extern fn tmpfile() ?*FILE;
4932
4933 /// char *tmpnam(char *s);
4934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tmpnam.html
4935 pub extern fn tmpnam(s: [*c]u8) [*c]u8;
4936
49372713 /// int toascii(int c);
49382714 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toascii.html
49392715 pub extern fn toascii(c: c_int) c_int;
......@@ -4954,14 +2730,6 @@ pub const libc = struct {
49542730 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toupper_l.html
49552731 pub extern fn toupper_l(c: c_int, locale: locale_t) c_int;
49562732
4957 /// wint_t towctrans(wint_t wc, wctrans_t desc);
4958 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towctrans.html
4959 // pub extern fn towctrans(__wc: wint_t, __desc: wctrans_t) wint_t;
4960
4961 /// wint_t towctrans_l(wint_t wc, wctrans_t desc, locale_t locale);
4962 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towctrans_l.html
4963 // pub extern fn towctrans_l(__wc: wint_t, __desc: wctrans_t, __locale: locale_t) wint_t;
4964
49652733 /// wint_t towlower(wint_t wc);
49662734 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towlower.html
49672735 pub extern fn towlower(wc: wint_t) wint_t;
......@@ -4982,10 +2750,6 @@ pub const libc = struct {
49822750 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/trunc.html
49832751 pub extern fn trunc(x: f64) f64;
49842752
4985 /// int truncate(const char *path, off_t length);
4986 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncate.html
4987 pub extern fn truncate(__file: [*c]const u8, __length: off_t) c_int;
4988
49892753 /// float truncf(float x);
49902754 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncf.html
49912755 pub extern fn truncf(x: f32) f32;
......@@ -4994,22 +2758,6 @@ pub const libc = struct {
49942758 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncl.html
49952759 pub extern fn truncl(x: c_longdouble) c_longdouble;
49962760
4997 /// void *tsearch(const void *key, void **rootp, int (*compar)(const void *, const void *));
4998 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tsearch.html
4999 // pub extern fn tsearch(__key: ?*const anyopaque, __rootp: [*c]?*anyopaque, __compar: __compar_fn_t) ?*anyopaque;
5000
5001 /// char *ttyname(int fildes);
5002 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ttyname.html
5003 pub extern fn ttyname(__fd: c_int) [*c]u8;
5004
5005 /// int ttyname_r(int fildes, char *name, size_t namesize);
5006 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ttyname_r.html
5007 pub extern fn ttyname_r(__fd: c_int, __buf: [*c]u8, __buflen: usize) c_int;
5008
5009 /// void twalk(const void *root, void (*action)(const void *, VISIT, int));
5010 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/twalk.html
5011 // pub extern fn twalk(__root: ?*const anyopaque, __action: __action_fn_t) void;
5012
50132761 /// void tzset(void);
50142762 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tzset.html
50152763 pub extern fn tzset() void;
......@@ -5022,22 +2770,6 @@ pub const libc = struct {
50222770 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/umask.html
50232771 pub extern fn umask(cmask: mode_t) mode_t;
50242772
5025 /// int uname(struct utsname *name);
5026 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/uname.html
5027 // pub extern fn uname(__name: [*c]struct_utsname) c_int;
5028
5029 /// int ungetc(int c, FILE *stream);
5030 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ungetc.html
5031 pub extern fn ungetc(__c: c_int, __stream: [*c]FILE) c_int;
5032
5033 /// wint_t ungetwc(wint_t wc, FILE *stream);
5034 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ungetwc.html
5035 // pub extern fn ungetwc(__wc: wint_t, __stream: [*c]__FILE) wint_t;
5036
5037 /// int unlink(const char *path);
5038 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlink.html
5039 pub extern fn unlink(__name: [*c]const u8) c_int;
5040
50412773 /// int unlinkat(int fd, const char *path, int flag);
50422774 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlinkat.html
50432775 pub extern fn unlinkat(fd: c_int, name: [*:0]const u8, flag: c_int) c_int;
......@@ -5046,334 +2778,22 @@ pub const libc = struct {
50462778 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlockpt.html
50472779 pub extern fn unlockpt(fd: c_int) c_int;
50482780
5049 /// int unsetenv(const char *name);
5050 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unsetenv.html
5051 pub extern fn unsetenv(__name: [*c]const u8) c_int;
5052
50532781 /// locale_t uselocale(locale_t newloc);
50542782 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/uselocale.html
50552783 pub extern fn uselocale(newloc: locale_t) locale_t;
50562784
5057 /// int utime(const char *path, const struct utimbuf *times);
5058 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utime.html
5059 // pub extern fn utime(__file: [*c]const u8, __file_times: [*c]const struct_utimbuf) c_int;
5060
5061 /// int utimensat(int fd, const char *path, const struct timespec times[2], int flag);
5062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utimensat.html
5063 pub extern fn utimensat(__fd: c_int, __path: [*c]const u8, __times: [*c]const struct_timespec, __flags: c_int) c_int;
5064
5065 /// int utimes(const char *path, const struct timeval times[2]);
5066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utimes.html
5067 // pub extern fn utimes(__file: [*c]const u8, __tvp: [*c]const struct_timeval) c_int;
5068
5069 /// type va_arg(va_list ap, type);
5070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_arg.html
5071 pub const va_arg = @compileError("TODO va_arg");
5072
5073 /// void va_copy(va_list dest, va_list src);
5074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_copy.html
5075 pub const va_copy = @compileError("TODO va_copy");
5076
5077 /// void va_end(va_list ap);
5078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_end.html
5079 pub const va_end = @compileError("TODO va_end");
5080
5081 /// void va_start(va_list ap, argN);
5082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_start.html
5083 pub const va_start = @compileError("TODO va_start");
5084
5085 /// int vdprintf(int fildes, const char *restrict format, va_list ap);
5086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vdprintf.html
5087 // pub extern fn vdprintf(__fd: c_int, noalias __fmt: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5088
5089 /// int vfprintf(FILE *restrict stream, const char *restrict format, va_list ap);
5090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfprintf.html
5091 // pub extern fn vfprintf(__s: [*c]FILE, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5092
5093 /// int vfscanf(FILE *restrict stream, const char *restrict format, va_list arg);
5094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfscanf.html
5095 // pub extern fn vfscanf(noalias __s: [*c]FILE, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5096
5097 /// int vfwprintf(FILE *restrict stream, const wchar_t *restrict format, va_list arg);
5098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfwprintf.html
5099 // pub extern fn vfwprintf(noalias __s: [*c]__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5100
5101 /// int vfwscanf(FILE *restrict stream, const wchar_t *restrict format, va_list arg);
5102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfwscanf.html
5103 // pub extern fn vfwscanf(noalias __s: [*c]__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5104
5105 /// int vprintf(const char *restrict format, va_list ap);
5106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vprintf.html
5107 // pub extern fn vprintf(__format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5108
5109 /// int vscanf(const char *restrict format, va_list arg);
5110 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vscanf.html
5111 // pub extern fn vscanf(noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5112
5113 /// int vsnprintf(char *restrict s, size_t n, const char *restrict format, va_list ap);
5114 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsnprintf.html
5115 // pub extern fn vsnprintf(__s: [*c]u8, __maxlen: c_ulong, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5116
5117 /// int vsprintf(char *restrict s, const char *restrict format, va_list ap);
5118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsprintf.html
5119 // pub extern fn vsprintf(__s: [*c]u8, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5120
5121 /// int vsscanf(const char *restrict s, const char *restrict format, va_list arg);
5122 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsscanf.html
5123 // pub extern fn vsscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int;
5124
5125 /// int vswprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, va_list arg);
5126 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vswprintf.html
5127 // pub extern fn vswprintf(noalias __s: [*c]wchar_t, __n: usize, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5128
5129 /// int vswscanf(const wchar_t *restrict ws, const wchar_t *restrict format, va_list arg);
5130 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vswscanf.html
5131 // pub extern fn vswscanf(noalias __s: [*c]const wchar_t, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5132
5133 /// int vwprintf(const wchar_t *restrict format, va_list arg);
5134 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vwprintf.html
5135 // pub extern fn vwprintf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5136
5137 /// int vwscanf(const wchar_t *restrict format, va_list arg);
5138 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vwscanf.html
5139 // pub extern fn vwscanf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int;
5140
5141 /// pid_t wait(int *stat_loc);
5142 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wait.html
5143 // pub extern fn wait(__stat_loc: [*c]c_int) __pid_t;
5144
5145 /// int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options);
5146 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/waitid.html
5147 // pub extern fn waitid(__idtype: idtype_t, __id: __id_t, __infop: [*c]siginfo_t, __options: c_int) c_int;
5148
51492785 /// pid_t waitpid(pid_t pid, int *stat_loc, int options);
51502786 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/waitpid.html
51512787 pub extern fn waitpid(pid: pid_t, stat_loc: ?*c_int, options: c_int) pid_t;
51522788
5153 /// wchar_t *wcpcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
5154 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcpcpy.html
5155 pub extern fn wcpcpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t;
5156
5157 /// wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restrict ws2, size_t n);
5158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcpncpy.html
5159 pub extern fn wcpncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t;
5160
5161 /// size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps);
5162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcrtomb.html
5163 // pub extern fn wcrtomb(noalias __s: [*c]u8, __wc: wchar_t, noalias __ps: [*c]mbstate_t) usize;
5164
5165 /// int wcscasecmp(const wchar_t *ws1, const wchar_t *ws2);
5166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscasecmp.html
5167 pub extern fn wcscasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int;
5168
5169 /// int wcscasecmp_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale);
5170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscasecmp_l.html
5171 pub extern fn wcscasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int;
5172
5173 /// wchar_t *wcscat(wchar_t *restrict ws1, const wchar_t *restrict ws2);
5174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscat.html
5175 pub extern fn wcscat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t;
5176
5177 /// wchar_t *wcschr(const wchar_t *ws, wchar_t wc);
5178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcschr.html
5179 pub extern fn wcschr(__wcs: [*c]const c_int, __wc: c_int) [*c]c_int;
5180
5181 /// int wcscmp(const wchar_t *ws1, const wchar_t *ws2);
5182 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscmp.html
5183 pub extern fn wcscmp(__s1: [*c]const c_int, __s2: [*c]const c_int) c_int;
5184
5185 /// int wcscoll(const wchar_t *ws1, const wchar_t *ws2);
5186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscoll.html
5187 pub extern fn wcscoll(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int;
5188
5189 /// int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale);
5190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscoll_l.html
5191 pub extern fn wcscoll_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int;
5192
5193 /// wchar_t *wcscpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
5194 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscpy.html
5195 pub extern fn wcscpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t;
5196
5197 /// size_t wcscspn(const wchar_t *ws1, const wchar_t *ws2);
5198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscspn.html
5199 pub extern fn wcscspn(__wcs: [*c]const wchar_t, __reject: [*c]const wchar_t) usize;
5200
5201 /// wchar_t *wcsdup(const wchar_t *string);
5202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsdup.html
5203 pub extern fn wcsdup(__s: [*c]const wchar_t) [*c]wchar_t;
5204
5205 /// size_t wcsftime(wchar_t *restrict wcs, size_t maxsize, const wchar_t *restrict format, const struct tm *restrict timeptr);
5206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsftime.html
5207 // pub extern fn wcsftime(noalias __s: [*c]wchar_t, __maxsize: usize, noalias __format: [*c]const wchar_t, noalias __tp: [*c]const struct_tm) usize;
5208
5209 /// size_t wcslen(const wchar_t *ws);
5210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcslen.html
5211 pub extern fn wcslen(__s: [*c]const c_int) c_ulong;
5212
5213 /// int wcsncasecmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
5214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncasecmp.html
5215 pub extern fn wcsncasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize) c_int;
5216
5217 /// int wcsncasecmp_l(const wchar_t *ws1, const wchar_t *ws2, size_t n, locale_t locale);
5218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncasecmp_l.html
5219 pub extern fn wcsncasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) c_int;
5220
5221 /// wchar_t *wcsncat(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n);
5222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncat.html
5223 pub extern fn wcsncat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t;
5224
5225 /// int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
5226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncmp.html
5227 pub extern fn wcsncmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int;
5228
5229 /// wchar_t *wcsncpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n);
5230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncpy.html
5231 pub extern fn wcsncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t;
5232
5233 /// size_t wcsnlen(const wchar_t *ws, size_t maxlen);
5234 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsnlen.html
5235 pub extern fn wcsnlen(__s: [*c]const wchar_t, __maxlen: usize) usize;
5236
5237 /// size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict src, size_t nwc, size_t len, mbstate_t *restrict ps);
5238 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsnrtombs.html
5239 // pub extern fn wcsnrtombs(noalias __dst: [*c]u8, noalias __src: [*c][*c]const wchar_t, __nwc: usize, __len: usize, noalias __ps: [*c]mbstate_t) usize;
5240
5241 /// wchar_t *wcspbrk(const wchar_t *ws1, const wchar_t *ws2);
5242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcspbrk.html
5243 pub extern fn wcspbrk(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) [*c]wchar_t;
5244
5245 /// wchar_t *wcsrchr(const wchar_t *ws, wchar_t wc);
5246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsrchr.html
5247 pub extern fn wcsrchr(__wcs: [*c]const wchar_t, __wc: wchar_t) [*c]wchar_t;
5248
5249 /// size_t wcsrtombs(char *restrict dst, const wchar_t **restrict src, size_t len, mbstate_t *restrict ps);
5250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsrtombs.html
5251 // pub extern fn wcsrtombs(noalias __dst: [*c]u8, noalias __src: [*c][*c]const wchar_t, __len: usize, noalias __ps: [*c]mbstate_t) usize;
5252
5253 /// size_t wcsspn(const wchar_t *ws1, const wchar_t *ws2);
5254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsspn.html
5255 pub extern fn wcsspn(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) usize;
5256
5257 /// wchar_t *wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict ws2);
5258 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsstr.html
5259 pub extern fn wcsstr(__haystack: [*c]const wchar_t, __needle: [*c]const wchar_t) [*c]wchar_t;
5260
5261 /// double wcstod(const wchar_t *restrict nptr, wchar_t **restrict endptr);
5262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstod.html
5263 pub extern fn wcstod(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) f64;
5264
5265 /// float wcstof(const wchar_t *restrict nptr, wchar_t **restrict endptr);
5266 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstof.html
5267 pub extern fn wcstof(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) f32;
5268
5269 /// intmax_t wcstoimax(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoimax.html
5271 // pub extern fn wcstoimax(noalias __nptr: [*c]const __gwchar_t, noalias __endptr: [*c][*c]__gwchar_t, __base: c_int) intmax_t;
5272
5273 /// wchar_t *wcstok(wchar_t *restrict ws1, const wchar_t *restrict ws2, wchar_t **restrict ptr);
5274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstok.html
5275 pub extern fn wcstok(noalias __s: [*c]wchar_t, noalias __delim: [*c]const wchar_t, noalias __ptr: [*c][*c]wchar_t) [*c]wchar_t;
5276
5277 /// long wcstol(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5278 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstol.html
5279 pub extern fn wcstol(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_long;
5280
5281 /// long double wcstold(const wchar_t *restrict nptr, wchar_t **restrict endptr);
5282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstold.html
5283 pub extern fn wcstold(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) c_longdouble;
5284
5285 /// long long wcstoll(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoll.html
5287 pub extern fn wcstoll(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_longlong;
5288
5289 /// size_t wcstombs(char *restrict s, const wchar_t *restrict pwcs, size_t n);
5290 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstombs.html
5291 pub extern fn wcstombs(noalias __s: [*c]u8, noalias __pwcs: [*c]const wchar_t, __n: usize) usize;
5292
5293 /// unsigned long wcstoul(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5294 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoul.html
5295 pub extern fn wcstoul(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_ulong;
5296
5297 /// unsigned long long wcstoull(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5298 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoull.html
5299 pub extern fn wcstoull(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_ulonglong;
5300
5301 /// uintmax_t wcstoumax(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base);
5302 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoumax.html
5303 // pub extern fn wcstoumax(noalias __nptr: [*c]const __gwchar_t, noalias __endptr: [*c][*c]__gwchar_t, __base: c_int) uintmax_t;
5304
5305 /// int wcswidth(const wchar_t *pwcs, size_t n);
5306 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcswidth.html
5307 pub const wcswidth = @compileError("TODO wcswidth");
5308
5309 /// size_t wcsxfrm(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n);
5310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsxfrm.html
5311 pub extern fn wcsxfrm(noalias __s1: [*c]wchar_t, noalias __s2: [*c]const wchar_t, __n: usize) usize;
5312
5313 /// size_t wcsxfrm_l(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n, locale_t locale);
5314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsxfrm_l.html
5315 pub extern fn wcsxfrm_l(__s1: [*c]wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) usize;
5316
53172789 /// int wctob(wint_t c);
53182790 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctob.html
53192791 pub extern fn wctob(c: wint_t) c_int;
53202792
5321 /// int wctomb(char *s, wchar_t wchar);
5322 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctomb.html
5323 pub extern fn wctomb(__s: [*c]u8, __wchar: wchar_t) c_int;
5324
5325 /// wctrans_t wctrans(const char *charclass);
5326 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctrans.html
5327 // pub extern fn wctrans(__property: [*c]const u8) wctrans_t;
5328
5329 /// wctrans_t wctrans_l(const char *charclass, locale_t locale);
5330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctrans_l.html
5331 // pub extern fn wctrans_l(__property: [*c]const u8, __locale: locale_t) wctrans_t;
5332
5333 /// wctype_t wctype(const char *property);
5334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctype.html
5335 // pub extern fn wctype(__property: [*c]const u8) wctype_t;
5336
5337 /// wctype_t wctype_l(const char *property, locale_t locale);
5338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctype_l.html
5339 // pub extern fn wctype_l(__property: [*c]const u8, __locale: locale_t) wctype_t;
5340
53412793 /// int wcwidth(wchar_t wc);
53422794 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html
53432795 pub extern fn wcwidth(wc: wchar_t) c_int;
53442796
5345 /// wchar_t *wmemchr(const wchar_t *ws, wchar_t wc, size_t n);
5346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemchr.html
5347 pub extern fn wmemchr(__s: [*c]const c_int, __c: c_int, __n: c_ulong) [*c]c_int;
5348
5349 /// int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
5350 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemcmp.html
5351 pub extern fn wmemcmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int;
5352
5353 /// wchar_t *wmemcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n);
5354 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemcpy.html
5355 pub extern fn wmemcpy(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int;
5356
5357 /// wchar_t *wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n);
5358 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemmove.html
5359 pub extern fn wmemmove(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int;
5360
5361 /// wchar_t *wmemset(wchar_t *ws, wchar_t wc, size_t n);
5362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemset.html
5363 pub extern fn wmemset(__s: [*c]wchar_t, __c: wchar_t, __n: usize) [*c]wchar_t;
5364
5365 /// int wordexp(const char *restrict words, wordexp_t *restrict pwordexp, int flags);
5366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wordexp.html
5367 // pub extern fn wordexp(noalias __words: [*c]const u8, noalias __pwordexp: [*c]wordexp_t, __flags: c_int) c_int;
5368
5369 /// void wordfree(wordexp_t *pwordexp);
5370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wordfree.html
5371 // pub extern fn wordfree(__wordexp: [*c]wordexp_t) void;
5372
5373 /// int wprintf(const wchar_t *restrict format, ...);
5374 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wprintf.html
5375 pub extern fn wprintf(noalias __format: [*c]const wchar_t, ...) c_int;
5376
53772797 /// ssize_t write(int fildes, const void *buf, size_t nbyte);
53782798 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/write.html
53792799 pub extern fn write(fd: c_int, buf: *const anyopaque, n: usize) isize;
......@@ -5382,10 +2802,6 @@ pub const libc = struct {
53822802 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/writev.html
53832803 pub extern fn writev(fd: c_int, iovec: [*]const struct_iovec, count: c_int) isize;
53842804
5385 /// int wscanf(const wchar_t *restrict format, ...);
5386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wscanf.html
5387 pub extern fn wscanf(noalias __format: [*c]const wchar_t, ...) c_int;
5388
53892805 /// double y0(double x);
53902806 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html
53912807 pub extern fn y0(x: f64) f64;