diff --git a/linux.zig b/linux.zig index 17b8e6550bbf562ef28c11c695da16ead8b1b0cc..bea5a9174761ac53d75dcf59a5971781385960fd 100644 --- a/linux.zig +++ b/linux.zig @@ -1038,50 +1038,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/acosl.html pub extern fn acosl(x: c_longdouble) c_longdouble; - /// int aio_cancel(int fildes, struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_cancel.html - // pub extern fn aio_cancel(__fildes: c_int, __aiocbp: [*c]struct_aiocb) c_int; - - /// int aio_error(const struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_error.html - // pub extern fn aio_error(__aiocbp: [*c]const struct_aiocb) c_int; - - /// int aio_fsync(int op, struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_fsync.html - // pub extern fn aio_fsync(__operation: c_int, __aiocbp: [*c]struct_aiocb) c_int; - - /// int aio_read(struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_read.html - // pub extern fn aio_read(__aiocbp: [*c]struct_aiocb) c_int; - - /// ssize_t aio_return(struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_return.html - // pub extern fn aio_return(__aiocbp: [*c]struct_aiocb) isize; - - /// int aio_suspend(const struct aiocb *const list[], int nent, const struct timespec *timeout); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_suspend.html - // pub extern fn aio_suspend(__list: [*c]const [*c]const struct_aiocb, __nent: c_int, noalias __timeout: [*c]const struct_timespec) c_int; - - /// int aio_write(struct aiocb *aiocbp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/aio_write.html - // pub extern fn aio_write(__aiocbp: [*c]struct_aiocb) c_int; - /// unsigned alarm(unsigned seconds); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/alarm.html pub extern fn alarm(seconds: c_uint) c_uint; - /// int alphasort(const struct dirent **d1, const struct dirent **d2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/alphasort.html - // pub extern fn alphasort(__e1: [*c][*c]const struct_dirent, __e2: [*c][*c]const struct_dirent) c_int; - - /// char *asctime(const struct tm *timeptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asctime.html - // pub extern fn asctime(timeptr: *struct_tm) ?[*:0]u8; - - /// char *asctime_r(const struct tm *restrict tm, char *restrict buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asctime_r.html - // pub extern fn asctime_r(noalias tm: *const struct_tm, buf: *[26]u8) ?[25:0]u8; - /// double asin(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/asin.html pub extern fn asin(x: f64) f64; @@ -1142,154 +1102,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atanl.html pub extern fn atanl(x: c_longdouble) c_longdouble; - /// int atexit(void (*func)(void)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atexit.html - pub extern fn atexit(func: *const fn () callconv(.C) void) c_int; - - /// double atof(const char *str); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atof.html - pub extern fn atof(str: [*:0]const u8) f64; - - /// int atoi(const char *str); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atoi.html - pub extern fn atoi(str: [*:0]const u8) c_int; - - /// long atol(const char *str); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atol.html - pub extern fn atol(str: [*:0]const u8) c_long; - - /// long long atoll(const char *nptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/atoll.html - pub extern fn atoll(nptr: [*:0]const u8) c_longlong; - - /// char *basename(char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/basename.html - pub extern fn basename(path: [*:0]u8) [*:0]u8; - /// int bind(int socket, const struct sockaddr *address, socklen_t address_len); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/bind.html pub extern fn bind(socket: c_int, address: *const struct_sockaddr, address_len: socklen_t) c_int; - /// void *bsearch(const void *key, const void *base, size_t nel, size_t width, int (*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/bsearch.html - 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; - - /// wint_t btowc(int c); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/btowc.html - pub extern fn btowc(c: c_int) c_int; - - /// double cabs(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabs.html - pub const cabs = @compileError("TODO cabs"); - - /// float cabsf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabsf.html - pub const cabsf = @compileError("TODO cabsf"); - - /// long double cabsl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cabsl.html - pub const cabsl = @compileError("TODO cabsl"); - - /// double complex cacos(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacos.html - pub const cacos = @compileError("TODO cacos"); - - /// float complex cacosf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosf.html - pub const cacosf = @compileError("TODO cacosf"); - - /// double complex cacosh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosh.html - pub const cacosh = @compileError("TODO cacosh"); - - /// float complex cacoshf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacoshf.html - pub const cacoshf = @compileError("TODO cacoshf"); - - /// long double complex cacoshl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacoshl.html - pub const cacoshl = @compileError("TODO cacoshl"); - - /// long double complex cacosl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cacosl.html - pub const cacosl = @compileError("TODO cacosl"); - - /// void *calloc(size_t nelem, size_t elsize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/calloc.html - pub extern fn calloc(nelem: usize, elsize: usize) ?*anyopaque; - - /// double carg(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/carg.html - pub const carg = @compileError("TODO carg"); - - /// float cargf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cargf.html - pub const cargf = @compileError("TODO cargf"); - - /// long double cargl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cargl.html - pub const cargl = @compileError("TODO cargl"); - - /// double complex casin(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casin.html - pub const casin = @compileError("TODO casin"); - - /// float complex casinf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinf.html - pub const casinf = @compileError("TODO casinf"); - - /// double complex casinh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinh.html - pub const casinh = @compileError("TODO casinh"); - - /// float complex casinhf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinhf.html - pub const casinhf = @compileError("TODO casinhf"); - - /// long double complex casinhl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinhl.html - pub const casinhl = @compileError("TODO casinhl"); - - /// long double complex casinl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/casinl.html - pub const casinl = @compileError("TODO casinl"); - - /// double complex catan(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catan.html - pub const catan = @compileError("TODO catan"); - - /// float complex catanf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanf.html - pub const catanf = @compileError("TODO catanf"); - - /// double complex catanh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanh.html - pub const catanh = @compileError("TODO catanh"); - - /// float complex catanhf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanhf.html - pub const catanhf = @compileError("TODO catanhf"); - - /// long double complex catanhl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanhl.html - pub const catanhl = @compileError("TODO catanhl"); - - /// long double complex catanl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catanl.html - pub const catanl = @compileError("TODO catanl"); - - /// int catclose(nl_catd catd); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catclose.html - pub extern fn catclose(catd: nl_catd) c_int; - - /// char *catgets(nl_catd catd, int set_id, int msg_id, const char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catgets.html - pub extern fn catgets(catd: nl_catd, set_id: c_int, msg_id: c_int, s: [*:0]const u8) [*:0]u8; - - /// nl_catd catopen(const char *name, int oflag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/catopen.html - pub extern fn catopen(name: [*:0]const u8, oflag: c_int) nl_catd; - /// double cbrt(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cbrt.html pub extern fn cbrt(x: f64) f64; @@ -1302,30 +1118,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cbrtl.html pub extern fn cbrtl(x: c_longdouble) c_longdouble; - /// double complex ccos(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccos.html - pub const ccos = @compileError("TODO ccos"); - - /// float complex ccosf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosf.html - pub const ccosf = @compileError("TODO ccosf"); - - /// double complex ccosh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosh.html - pub const ccosh = @compileError("TODO ccosh"); - - /// float complex ccoshf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccoshf.html - pub const ccoshf = @compileError("TODO ccoshf"); - - /// long double complex ccoshl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccoshl.html - pub const ccoshl = @compileError("TODO ccoshl"); - - /// long double complex ccosl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ccosl.html - pub const ccosl = @compileError("TODO ccosl"); - /// double ceil(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceil.html pub extern fn ceil(x: f64) f64; @@ -1338,34 +1130,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ceill.html pub extern fn ceill(x: c_longdouble) c_longdouble; - /// double complex cexp(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexp.html - pub const cexp = @compileError("TODO cexp"); - - /// float complex cexpf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexpf.html - pub const cexpf = @compileError("TODO cexpf"); - - /// long double complex cexpl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cexpl.html - pub const cexpl = @compileError("TODO cexpl"); - - /// speed_t cfgetispeed(const struct termios *termios_p); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfgetispeed.html - // pub extern fn cfgetispeed(__termios_p: [*c]const struct_termios) speed_t; - - /// speed_t cfgetospeed(const struct termios *termios_p); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfgetospeed.html - // pub extern fn cfgetospeed(__termios_p: [*c]const struct_termios) speed_t; - - /// int cfsetispeed(struct termios *termios_p, speed_t speed); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfsetispeed.html - // pub extern fn cfsetispeed(__termios_p: [*c]struct_termios, __speed: speed_t) c_int; - - /// int cfsetospeed(struct termios *termios_p, speed_t speed); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cfsetospeed.html - // pub extern fn cfsetospeed(__termios_p: [*c]struct_termios, __speed: speed_t) c_int; - /// int chdir(const char *path); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chdir.html pub extern fn chdir(path: [*:0]const u8) c_int; @@ -1378,22 +1142,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/chown.html pub extern fn chown(path: [*:0]const u8, owner: uid_t, group: gid_t) c_int; - /// double cimag(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimag.html - pub const cimag = @compileError("TODO cimag"); - - /// float cimagf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimagf.html - pub const cimagf = @compileError("TODO cimagf"); - - /// long double cimagl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cimagl.html - pub const cimagl = @compileError("TODO cimagl"); - - /// void clearerr(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clearerr.html - pub extern fn clearerr(stream: *FILE) void; - /// clock_t clock(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock.html pub extern fn clock() clock_t; @@ -1410,54 +1158,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_gettime.html pub extern fn clock_gettime(clock_id: clockid_t, tp: *struct_timespec) c_int; - /// int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_nanosleep.html - pub extern fn clock_nanosleep(clock_id: clockid_t, flags: c_int, rqtp: *const struct_timespec, rmtp: ?*struct_timespec) c_int; - - /// int clock_settime(clockid_t clock_id, const struct timespec *tp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clock_settime.html - pub extern fn clock_settime(clock_id: clockid_t, tp: *const struct_timespec) c_int; - - /// double complex clog(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clog.html - pub const clog = @compileError("TODO clog"); - - /// float complex clogf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clogf.html - pub const clogf = @compileError("TODO clogf"); - - /// long double complex clogl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/clogl.html - pub const clogl = @compileError("TODO clogl"); - /// int close(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/close.html pub extern fn close(fildes: c_int) c_int; - /// int closedir(DIR *dirp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/closedir.html - pub extern fn closedir(dirp: *DIR) c_int; - /// void closelog(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/closelog.html pub extern fn closelog() void; - /// size_t confstr(int name, char *buf, size_t len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/confstr.html - pub extern fn confstr(name: c_int, buf: ?[*:0]u8, len: usize) usize; - - /// double complex conj(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conj.html - pub const conj = @compileError("TODO conj"); - - /// float complex conjf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conjf.html - pub const conjf = @compileError("TODO conjf"); - - /// long double complex conjl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/conjl.html - pub const conjl = @compileError("TODO conjl"); - /// int connect(int socket, const struct sockaddr *address, socklen_t address_len); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/connect.html 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 { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cosl.html pub extern fn cosl(x: c_longdouble) c_longdouble; - /// double complex cpow(double complex x, double complex y); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpow.html - pub const cpow = @compileError("TODO cpow"); - - /// float complex cpowf(float complex x, float complex y); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpowf.html - pub const cpowf = @compileError("TODO cpowf"); - - /// long double complex cpowl(long double complex x, long double complex y); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cpowl.html - pub const cpowl = @compileError("TODO cpowl"); - - /// double complex cproj(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cproj.html - pub const cproj = @compileError("TODO cproj"); - - /// float complex cprojf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cprojf.html - pub const cprojf = @compileError("TODO cprojf"); - - /// long double complex cprojl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/cprojl.html - pub const cprojl = @compileError("TODO cprojl"); - - /// double creal(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creal.html - pub const creal = @compileError("TODO creal"); - - /// float crealf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/crealf.html - pub const crealf = @compileError("TODO crealf"); - - /// long double creall(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creall.html - pub const creall = @compileError("TODO creall"); - - /// int creat(const char *path, mode_t mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/creat.html - pub extern fn creat(path: [*:0]const u8, mode: mode_t) c_int; - - /// char *crypt(const char *key, const char *salt); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/crypt.html - pub extern fn crypt(key: [*:0]const u8, salt: [*]const u8) ?[*:0]u8; - - /// double complex csin(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csin.html - pub const csin = @compileError("TODO csin"); - - /// float complex csinf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinf.html - pub const csinf = @compileError("TODO csinf"); - - /// double complex csinh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinh.html - pub const csinh = @compileError("TODO csinh"); - - /// float complex csinhf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinhf.html - pub const csinhf = @compileError("TODO csinhf"); - - /// long double complex csinhl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinhl.html - pub const csinhl = @compileError("TODO csinhl"); - - /// long double complex csinl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csinl.html - pub const csinl = @compileError("TODO csinl"); - - /// double complex csqrt(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrt.html - pub const csqrt = @compileError("TODO csqrt"); - - /// float complex csqrtf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrtf.html - pub const csqrtf = @compileError("TODO csqrtf"); - - /// long double complex csqrtl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/csqrtl.html - pub const csqrtl = @compileError("TODO csqrtl"); - - /// double complex ctan(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctan.html - pub const ctan = @compileError("TODO ctan"); - - /// float complex ctanf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanf.html - pub const ctanf = @compileError("TODO ctanf"); - - /// double complex ctanh(double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanh.html - pub const ctanh = @compileError("TODO ctanh"); - - /// float complex ctanhf(float complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanhf.html - pub const ctanhf = @compileError("TODO ctanhf"); - - /// long double complex ctanhl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanhl.html - pub const ctanhl = @compileError("TODO ctanhl"); - - /// long double complex ctanl(long double complex z); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctanl.html - pub const ctanl = @compileError("TODO ctanl"); - - /// char *ctermid(char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctermid.html - pub extern fn ctermid(s: ?[*:0]u8) [*:0]u8; - - /// char *ctime(const time_t *clock); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctime.html - pub extern fn ctime(clock: *const time_t) ?[*:0]u8; - - /// char *ctime_r(const time_t *clock, char *buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ctime_r.html - pub extern fn ctime_r(noalias clock: [*c]const time_t, noalias buf: [*]u8) ?[*:0]u8; - - /// int dbm_clearerr(DBM *db); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_clearerr.html - pub const dbm_clearerr = @compileError("TODO dbm_clearerr"); - - /// void dbm_close(DBM *db); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_close.html - pub const dbm_close = @compileError("TODO dbm_close"); - - /// int dbm_delete(DBM *db, datum key); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_delete.html - pub const dbm_delete = @compileError("TODO dbm_delete"); - - /// int dbm_error(DBM *db); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_error.html - pub const dbm_error = @compileError("TODO dbm_error"); - - /// datum dbm_fetch(DBM *db, datum key); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_fetch.html - pub const dbm_fetch = @compileError("TODO dbm_fetch"); - - /// datum dbm_firstkey(DBM *db); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_firstkey.html - pub const dbm_firstkey = @compileError("TODO dbm_firstkey"); - - /// datum dbm_nextkey(DBM *db); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_nextkey.html - pub const dbm_nextkey = @compileError("TODO dbm_nextkey"); - - /// DBM *dbm_open(const char *file, int open_flags, mode_t file_mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_open.html - pub const dbm_open = @compileError("TODO dbm_open"); - - /// int dbm_store(DBM *db, datum key, datum content, int store_mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dbm_store.html - pub const dbm_store = @compileError("TODO dbm_store"); - - /// double difftime(time_t time1, time_t time0); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/difftime.html - pub extern fn difftime(time1: time_t, time0: time_t) f64; - - /// int dirfd(DIR *dirp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dirfd.html - pub extern fn dirfd(dirp: *DIR) c_int; - - /// char *dirname(char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dirname.html - pub extern fn dirname(path: ?[*:0]u8) [*:0]u8; - /// div_t div(int numer, int denom); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/div.html pub extern fn div(numer: c_int, denom: c_int) div_t; - /// int dlclose(void *handle); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlclose.html - pub extern fn dlclose(handle: *anyopaque) c_int; - /// char *dlerror(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlerror.html pub extern fn dlerror() ?[*:0]u8; - /// void *dlopen(const char *file, int mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlopen.html - pub extern fn dlopen(file: [*:0]const u8, mode: c_int) ?*anyopaque; - - /// void *dlsym(void *restrict handle, const char *restrict name); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dlsym.html - pub extern fn dlsym(noalias handle: *anyopaque, noalias name: [*:0]const u8) ?*anyopaque; - - /// int dprintf(int fildes, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dprintf.html - pub extern fn dprintf(__fd: c_int, noalias __fmt: [*c]const u8, ...) c_int; - /// double drand48(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/drand48.html pub extern fn drand48() f64; @@ -1698,14 +1226,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/dup2.html pub extern fn dup2(fildes: c_int, fildes2: c_int) c_int; - /// locale_t duplocale(locale_t locobj); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/duplocale.html - pub extern fn duplocale(locobj: locale_t) ?locale_t; - - /// void encrypt(char block[64], int edflag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/encrypt.html - pub const encrypt = @compileError("TODO encrypt"); - /// void endgrent(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/endgrent.html pub extern fn endgrent() void; @@ -1762,26 +1282,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/erfl.html pub extern fn erfl(x: c_longdouble) c_longdouble; - /// int execl(const char *path, const char *arg0, ... /*, (char *)0 */); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execl.html - pub extern fn execl(__path: [*c]const u8, __arg: [*c]const u8, ...) c_int; - - /// int execle(const char *path, const char *arg0, ... /*, (char *)0, char *const envp[]*/); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execle.html - pub extern fn execle(__path: [*c]const u8, __arg: [*c]const u8, ...) c_int; - - /// int execlp(const char *file, const char *arg0, ... /*, (char *)0 */); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execlp.html - pub extern fn execlp(__file: [*c]const u8, __arg: [*c]const u8, ...) c_int; - - /// int execv(const char *path, char *const argv[]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execv.html - pub extern fn execv(__path: [*c]const u8, __argv: [*c]const [*c]u8) c_int; - - /// int execve(const char *path, char *const argv[], char *const envp[]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execve.html - pub extern fn execve(__path: [*c]const u8, __argv: [*c]const [*c]u8, __envp: [*c]const [*c]u8) c_int; - /// int execvp(const char *file, char *const argv[]); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/execvp.html pub extern fn execvp(file: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int; @@ -1842,10 +1342,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/faccessat.html pub extern fn faccessat(fd: c_int, path: [*:0]const u8, amode: c_int, flag: c_int) c_int; - /// int fattach(int fildes, const char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fattach.html - pub const fattach = @compileError("TODO fattach"); - /// int fchdir(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchdir.html pub extern fn fchdir(fildes: c_int) c_int; @@ -1866,22 +1362,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fchownat.html pub extern fn fchownat(fd: c_int, path: [*:0]const u8, owner: uid_t, group: gid_t, flag: c_int) c_int; - /// int fclose(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fclose.html - pub extern fn fclose(stream: *FILE) c_int; - - /// int fcntl(int fildes, int cmd, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fcntl.html - pub extern fn fcntl(__fd: c_int, __cmd: c_int, ...) c_int; - /// int fdatasync(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdatasync.html pub extern fn fdatasync(fildes: c_int) c_int; - /// int fdetach(const char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdetach.html - pub const fdetach = @compileError("TODO fdetach"); - /// double fdim(double x, double y); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdim.html pub extern fn fdim(x: f64, y: f64) f64; @@ -1894,54 +1378,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdiml.html pub extern fn fdiml(x: c_longdouble, y: c_longdouble) c_longdouble; - /// FILE *fdopen(int fildes, const char *mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdopen.html - pub extern fn fdopen(__fd: c_int, __modes: [*c]const u8) [*c]FILE; - - /// DIR *fdopendir(int fd); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fdopendir.html - pub extern fn fdopendir(__fd: c_int) ?*DIR; - - /// int feclearexcept(int excepts); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feclearexcept.html - pub extern fn feclearexcept(excepts: c_int) c_int; - - /// int fegetenv(fenv_t *envp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetenv.html - // pub extern fn fegetenv(__envp: ?*fenv_t) c_int; - - /// int fegetexceptflag(fexcept_t *flagp, int excepts); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetexceptflag.html - // pub extern fn fegetexceptflag(__flagp: [*c]fexcept_t, __excepts: c_int) c_int; - /// int fegetround(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fegetround.html pub extern fn fegetround() c_int; - /// int feholdexcept(fenv_t *envp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feholdexcept.html - // pub extern fn feholdexcept(__envp: ?*fenv_t) c_int; - - /// int feof(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feof.html - pub extern fn feof(__stream: [*c]FILE) c_int; - - /// int feraiseexcept(int excepts); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feraiseexcept.html - pub extern fn feraiseexcept(excepts: c_int) c_int; - - /// int ferror(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ferror.html - pub extern fn ferror(__stream: [*c]FILE) c_int; - - /// int fesetenv(const fenv_t *envp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetenv.html - // pub extern fn fesetenv(__envp: ?*const fenv_t) c_int; - - /// int fesetexceptflag(const fexcept_t *flagp, int excepts); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetexceptflag.html - // pub extern fn fesetexceptflag(__flagp: [*c]const fexcept_t, __excepts: c_int) c_int; - /// int fesetround(int round); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fesetround.html pub extern fn fesetround(round: c_int) c_int; @@ -1950,50 +1390,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fetestexcept.html pub extern fn fetestexcept(excepts: c_int) c_int; - /// int feupdateenv(const fenv_t *envp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/feupdateenv.html - // pub extern fn feupdateenv(__envp: ?*const fenv_t) c_int; - - /// int fexecve(int fd, char *const argv[], char *const envp[]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fexecve.html - pub extern fn fexecve(__fd: c_int, __argv: [*c]const [*c]u8, __envp: [*c]const [*c]u8) c_int; - - /// int fflush(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fflush.html - pub extern fn fflush(__stream: [*c]FILE) c_int; - /// int ffs(int i); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ffs.html pub extern fn ffs(i: c_int) c_int; - /// int fgetc(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetc.html - pub extern fn fgetc(__stream: [*c]FILE) c_int; - - /// int fgetpos(FILE *restrict stream, fpos_t *restrict pos); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetpos.html - // pub extern fn fgetpos(noalias __stream: [*c]FILE, noalias __pos: [*c]fpos_t) c_int; - - /// char *fgets(char *restrict s, int n, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgets.html - pub extern fn fgets(noalias __s: [*c]u8, __n: c_int, noalias __stream: [*c]FILE) [*c]u8; - - /// wint_t fgetwc(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetwc.html - // pub extern fn fgetwc(__stream: [*c]__FILE) wint_t; - - /// wchar_t *fgetws(wchar_t *restrict ws, int n, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fgetws.html - // pub extern fn fgetws(noalias __ws: [*c]wchar_t, __n: c_int, noalias __stream: [*c]__FILE) [*c]wchar_t; - - /// int fileno(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fileno.html - pub extern fn fileno(__stream: [*c]FILE) c_int; - - /// void flockfile(FILE *file); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/flockfile.html - pub extern fn flockfile(__stream: [*c]FILE) void; - /// double floor(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/floor.html pub extern fn floor(x: f64) f64; @@ -2030,10 +1430,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmaxl.html pub extern fn fmaxl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// FILE *fmemopen(void *restrict buf, size_t size, const char *restrict mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmemopen.html - pub extern fn fmemopen(__s: ?*anyopaque, __len: usize, __modes: [*c]const u8) [*c]FILE; - /// double fmin(double x, double y); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmin.html pub extern fn fmin(x: f64, y: f64) f64; @@ -2058,18 +1454,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmodl.html pub extern fn fmodl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// int fmtmsg(long classification, const char *label, int severity, const char *text, const char *action, const char *tag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fmtmsg.html - 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; - - /// int fnmatch(const char *pattern, const char *string, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fnmatch.html - pub extern fn fnmatch(__pattern: [*c]const u8, __name: [*c]const u8, __flags: c_int) c_int; - - /// FILE *fopen(const char *restrict filename, const char *restrict mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fopen.html - pub extern fn fopen(__filename: [*c]const u8, __modes: [*c]const u8) [*c]FILE; - /// pid_t fork(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fork.html pub extern fn fork() pid_t; @@ -2078,30 +1462,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html pub extern fn fpathconf(fildes: c_int, name: c_int) c_long; - /// int fprintf(FILE *restrict stream, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fprintf.html - pub extern fn fprintf(__stream: [*c]FILE, __format: [*c]const u8, ...) c_int; - - /// int fputc(int c, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputc.html - pub extern fn fputc(__c: c_int, __stream: [*c]FILE) c_int; - - /// int fputs(const char *restrict s, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputs.html - pub extern fn fputs(noalias __s: [*c]const u8, noalias __stream: [*c]FILE) c_int; - - /// wint_t fputwc(wchar_t wc, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputwc.html - // pub extern fn fputwc(__wc: wchar_t, __stream: [*c]__FILE) wint_t; - - /// int fputws(const wchar_t *restrict ws, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fputws.html - // pub extern fn fputws(noalias __ws: [*c]const wchar_t, noalias __stream: [*c]__FILE) c_int; - - /// size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fread.html - pub extern fn fread(__ptr: ?*anyopaque, __size: c_ulong, __n: c_ulong, __stream: [*c]FILE) c_ulong; - /// void free(void *ptr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/free.html pub extern fn free(ptr: ?*anyopaque) void; @@ -2114,10 +1474,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/freelocale.html pub extern fn freelocale(locobj: locale_t) void; - /// FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/freopen.html - pub extern fn freopen(noalias __filename: [*c]const u8, noalias __modes: [*c]const u8, noalias __stream: [*c]FILE) [*c]FILE; - /// double frexp(double num, int *exp); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexp.html pub extern fn frexp(x: f64, exp: *c_int) f64; @@ -2130,22 +1486,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexpl.html pub extern fn frexpl(x: c_longdouble, exp: *c_int) c_longdouble; - /// int fscanf(FILE *restrict stream, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fscanf.html - pub extern fn fscanf(noalias __stream: [*c]FILE, noalias __format: [*c]const u8, ...) c_int; - - /// int fseek(FILE *stream, long offset, int whence); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fseek.html - pub extern fn fseek(__stream: [*c]FILE, __off: c_long, __whence: c_int) c_int; - - /// int fseeko(FILE *stream, off_t offset, int whence); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fseeko.html - // pub extern fn fseeko(__stream: [*c]FILE, __off: off_t, __whence: c_int) c_int; - - /// int fsetpos(FILE *stream, const fpos_t *pos); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsetpos.html - // pub extern fn fsetpos(__stream: [*c]FILE, __pos: [*c]const fpos_t) c_int; - /// int fstat(int fildes, struct stat *buf); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int; @@ -2154,78 +1494,18 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstatat.html pub extern fn fstatat(fd: c_int, noalias path: [*:0]const u8, noalias buf: *struct_stat, flag: c_int) c_int; - /// int fstatvfs(int fildes, struct statvfs *buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstatvfs.html - // pub extern fn fstatvfs(__fildes: c_int, __buf: [*c]struct_statvfs) c_int; - /// int fsync(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsync.html pub extern fn fsync(fd: c_int) c_int; - /// long ftell(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftell.html - pub extern fn ftell(__stream: [*c]FILE) c_long; - - /// off_t ftello(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftello.html - // pub extern fn ftello(__stream: [*c]FILE) off_t; - - /// key_t ftok(const char *path, int id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftok.html - // pub extern fn ftok(__pathname: [*c]const u8, __proj_id: c_int) key_t; - - /// int ftruncate(int fildes, off_t length); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftruncate.html - // pub extern fn ftruncate(__fd: c_int, __length: off_t) c_int; - - /// int ftrylockfile(FILE *file); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftrylockfile.html - pub extern fn ftrylockfile(__stream: [*c]FILE) c_int; - - /// int ftw(const char *path, int (*fn)(const char *, const struct stat *ptr, int flag), int ndirs); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ftw.html - // pub extern fn ftw(__dir: [*c]const u8, __func: __ftw_func_t, __descriptors: c_int) c_int; - - /// void funlockfile(FILE *file); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/funlockfile.html - pub extern fn funlockfile(__stream: [*c]FILE) void; - /// int futimens(int fd, const struct timespec times[2]); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/futimens.html pub extern fn futimens(fd: c_int, times: *const [2]struct_timespec) c_int; - /// int fwide(FILE *stream, int mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwide.html - // pub extern fn fwide(__fp: [*c]__FILE, __mode: c_int) c_int; - - /// int fwprintf(FILE *restrict stream, const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwprintf.html - // pub extern fn fwprintf(noalias __stream: [*c]__FILE, noalias __format: [*c]const wchar_t, ...) c_int; - - /// size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwrite.html - pub extern fn fwrite(__ptr: ?*const anyopaque, __size: c_ulong, __n: c_ulong, __s: [*c]FILE) c_ulong; - - /// int fwscanf(FILE *restrict stream, const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fwscanf.html - // pub extern fn fwscanf(noalias __stream: [*c]__FILE, noalias __format: [*c]const wchar_t, ...) c_int; - - /// const char *gai_strerror(int ecode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gai_strerror.html - pub extern fn gai_strerror(__ecode: c_int) [*c]const u8; - /// int getaddrinfo(const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getaddrinfo.html 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; - /// int getc(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getc.html - pub extern fn getc(__stream: [*c]FILE) c_int; - - /// int getc_unlocked(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getc_unlocked.html - pub extern fn getc_unlocked(__stream: [*c]FILE) c_int; - /// int getchar(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html pub extern fn getchar() c_int; @@ -2238,14 +1518,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getcwd.html pub extern fn getcwd(buf: [*]u8, size: usize) ?[*:0]u8; - /// struct tm *getdate(const char *string); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getdate.html - pub const getdate = @compileError("TODO getdate"); - - /// ssize_t getdelim(char **restrict lineptr, size_t *restrict n, int delimiter, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getdelim.html - pub extern fn getdelim(noalias __lineptr: [*c][*c]u8, noalias __n: [*c]usize, __delimiter: c_int, noalias __stream: [*c]FILE) isize; - /// gid_t getegid(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getegid.html pub extern fn getegid() gid_t; @@ -2270,22 +1542,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrgid.html pub extern fn getgrgid(gid: gid_t) ?*struct_group; - /// int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, struct group **result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrgid_r.html - 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; - /// struct group *getgrnam(const char *name); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrnam.html pub extern fn getgrnam(name: [*:0]const u8) ?*struct_group; - /// int getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrnam_r.html - 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; - - /// int getgroups(int gidsetsize, gid_t grouplist[]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgroups.html - pub extern fn getgroups(__size: c_int, __list: [*c]gid_t) c_int; - /// struct hostent *gethostent(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostent.html pub extern fn gethostent() ?*struct_hostent; @@ -2298,30 +1558,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostname.html pub extern fn gethostname(name: [*:0]u8, len: usize) c_int; - /// int getitimer(int which, struct itimerval *value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getitimer.html - // pub extern fn getitimer(__which: __itimer_which_t, __value: [*c]struct_itimerval) c_int; - - /// ssize_t getline(char **restrict lineptr, size_t *restrict n, FILE *restrict stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getline.html - pub extern fn getline(noalias __lineptr: [*c][*c]u8, noalias __n: [*c]usize, noalias __stream: [*c]FILE) isize; - - /// char *getlogin(void); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getlogin.html - pub extern fn getlogin() ?[*:0]u8; - - /// int getlogin_r(char *name, size_t namesize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getlogin_r.html - pub extern fn getlogin_r(__name: [*c]u8, __name_len: usize) c_int; - - /// int getmsg(int fildes, struct strbuf *restrict ctlptr, struct strbuf *restrict dataptr, int *restrict flagsp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getmsg.html - pub const getmsg = @compileError("TODO getmsg"); - - /// int getnameinfo(const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnameinfo.html - 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; - /// struct netent *getnetbyaddr(uint32_t net, int type); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetbyaddr.html pub extern fn getnetbyaddr(net: u32, type: c_int) ?*struct_netent; @@ -2334,14 +1570,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetent.html pub extern fn getnetent() ?*struct_netent; - /// int getopt(int argc, char * const argv[], const char *optstring); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getopt.html - pub extern fn getopt(___argc: c_int, ___argv: [*c]const [*c]u8, __shortopts: [*c]const u8) c_int; - - /// int getpeername(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpeername.html - pub extern fn getpeername(__fd: c_int, noalias __addr: [*c]struct_sockaddr, noalias __len: [*c]socklen_t) c_int; - /// pid_t getpgid(pid_t pid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpgid.html pub extern fn getpgid(pid: pid_t) pid_t; @@ -2354,18 +1582,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpid.html pub extern fn getpid() pid_t; - /// int getpmsg(int fildes, struct strbuf *restrict ctlptr, struct strbuf *restrict dataptr, int *restrict bandp, int *restrict flagsp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpmsg.html - pub const getpmsg = @compileError("TODO getpmsg"); - /// pid_t getppid(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html pub extern fn getppid() pid_t; - /// int getpriority(int which, id_t who); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpriority.html - // pub extern fn getpriority(__which: __priority_which_t, __who: id_t) c_int; - /// struct protoent *getprotobyname(const char *name); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotobyname.html pub extern fn getprotobyname(name: [*:0]const u8) ?*struct_protoent; @@ -2386,38 +1606,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwnam.html pub extern fn getpwnam(name: [*:0]const u8) ?*struct_passwd; - /// int getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwnam_r.html - 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; - /// struct passwd *getpwuid(uid_t uid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwuid.html pub extern fn getpwuid(uid: uid_t) ?*struct_passwd; - /// int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwuid_r.html - 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; - - /// int getrlimit(int resource, struct rlimit *rlp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getrlimit.html - // pub extern fn getrlimit(__resource: __rlimit_resource_t, __rlimits: [*c]struct_rlimit) c_int; - - /// int getrusage(int who, struct rusage *r_usage); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getrusage.html - // pub extern fn getrusage(__who: __rusage_who_t, __usage: [*c]struct_rusage) c_int; - /// char *gets(char *s); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gets.html pub extern fn gets(s: [*]u8) [*:0]u8; - /// struct servent *getservbyname(const char *name, const char *proto); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservbyname.html - pub extern fn getservbyname(__name: [*c]const u8, __proto: [*c]const u8) [*c]struct_servent; - - /// struct servent *getservbyport(int port, const char *proto); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservbyport.html - pub extern fn getservbyport(__port: c_int, __proto: [*c]const u8) [*c]struct_servent; - /// struct servent *getservent(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservent.html pub extern fn getservent() ?*struct_servent; @@ -2430,18 +1626,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsockname.html pub extern fn getsockname(fd: c_int, noalias addr: *struct_sockaddr, noalias len: *socklen_t) c_int; - /// int getsockopt(int socket, int level, int option_name, void *restrict option_value, socklen_t *restrict option_len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsockopt.html - pub extern fn getsockopt(__fd: c_int, __level: c_int, __optname: c_int, noalias __optval: ?*anyopaque, noalias __optlen: [*c]socklen_t) c_int; - - /// int getsubopt(char **optionp, char * const *keylistp, char **valuep); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getsubopt.html - pub extern fn getsubopt(noalias __optionp: [*c][*c]u8, noalias __tokens: [*c]const [*c]u8, noalias __valuep: [*c][*c]u8) c_int; - - /// int gettimeofday(struct timeval *restrict tp, void *restrict tzp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gettimeofday.html - // pub extern fn gettimeofday(noalias __tv: [*c]struct_timeval, noalias __tz: ?*anyopaque) c_int; - /// uid_t getuid(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html pub extern fn getuid() uid_t; @@ -2450,54 +1634,18 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxent.html pub extern fn getutxent() ?*struct_utmpx; - /// struct utmpx *getutxid(const struct utmpx *id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxid.html - pub extern fn getutxid(__id: [*c]const struct_utmpx) [*c]struct_utmpx; - - /// struct utmpx *getutxline(const struct utmpx *line); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxline.html - pub extern fn getutxline(__line: [*c]const struct_utmpx) [*c]struct_utmpx; - - /// wint_t getwc(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getwc.html - // pub extern fn getwc(__stream: [*c]__FILE) wint_t; - /// wint_t getwchar(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getwchar.html pub extern fn getwchar() wint_t; - /// int glob(const char *restrict pattern, int flags, int(*errfunc)(const char *epath, int eerrno), glob_t *restrict pglob); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/glob.html - // 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; - - /// void globfree(glob_t *pglob); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/globfree.html - // pub extern fn globfree(__pglob: [*c]glob_t) void; - - /// struct tm *gmtime(const time_t *timer); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gmtime.html - // pub extern fn gmtime(__timer: [*c]const time_t) [*c]struct_tm; - - /// struct tm *gmtime_r(const time_t *restrict timer, struct tm *restrict result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gmtime_r.html - // pub extern fn gmtime_r(noalias __timer: [*c]const time_t, noalias __tp: [*c]struct_tm) [*c]struct_tm; - /// int grantpt(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/grantpt.html pub extern fn grantpt(fd: c_int) c_int; - /// int hcreate(size_t nel); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hcreate.html - pub extern fn hcreate(nel: usize) c_int; - /// void hdestroy(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hdestroy.html pub extern fn hdestroy() void; - /// ENTRY *hsearch(ENTRY item, ACTION action); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hsearch.html - // pub extern fn hsearch(__item: ENTRY, __action: ACTION) [*c]ENTRY; - /// uint32_t htonl(uint32_t hostlong); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/htonl.html pub extern fn htonl(hostlong: u32) u32; @@ -2518,26 +1666,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hypotl.html pub extern fn hypotl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// size_t iconv(iconv_t cd, char **restrict inbuf, size_t *restrict inbytesleft, char **restrict outbuf, size_t *restrict outbytesleft); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv.html - // 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; - - /// int iconv_close(iconv_t cd); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv_close.html - // pub extern fn iconv_close(__cd: iconv_t) c_int; - - /// iconv_t iconv_open(const char *tocode, const char *fromcode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iconv_open.html - // pub extern fn iconv_open(__tocode: [*c]const u8, __fromcode: [*c]const u8) iconv_t; - /// void if_freenameindex(struct if_nameindex *ptr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_freenameindex.html pub extern fn if_freenameindex(ptr: *struct_if_nameindex) void; - /// char *if_indextoname(unsigned ifindex, char *ifname); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_indextoname.html - pub extern fn if_indextoname(__ifindex: c_uint, __ifname: [*c]u8) [*c]u8; - /// struct if_nameindex *if_nameindex(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_nameindex.html pub extern fn if_nameindex() ?*struct_if_nameindex; @@ -2562,38 +1694,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/imaxabs.html pub extern fn imaxabs(j: intmax_t) intmax_t; - /// imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/imaxdiv.html - // pub extern fn imaxdiv(__numer: intmax_t, __denom: intmax_t) imaxdiv_t; - - /// in_addr_t inet_addr(const char *cp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_addr.html - // pub extern fn inet_addr(__cp: [*c]const u8) in_addr_t; - - /// char *inet_ntoa(struct in_addr in); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_ntoa.html - // pub extern fn inet_ntoa(__in: struct_in_addr) [*c]u8; - - /// const char *inet_ntop(int af, const void *restrict src, char *restrict dst, socklen_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_ntop.html - pub extern fn inet_ntop(__af: c_int, noalias __cp: ?*const anyopaque, noalias __buf: [*c]u8, __len: socklen_t) [*c]const u8; - - /// int inet_pton(int af, const char *restrict src, void *restrict dst); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/inet_pton.html - pub extern fn inet_pton(__af: c_int, noalias __cp: [*c]const u8, noalias __buf: ?*anyopaque) c_int; - - /// char *initstate(unsigned seed, char *state, size_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/initstate.html - pub extern fn initstate(__seed: c_uint, __statebuf: [*c]u8, __statelen: usize) [*c]u8; - /// void insque(void *element, void *pred); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/insque.html pub extern fn insque(elem: *anyopaque, prev: ?*anyopaque) void; - /// int ioctl(int fildes, int request, ... /* arg */); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ioctl.html - pub const ioctl = @compileError("TODO ioctl"); - /// int isalnum(int c); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalnum.html pub extern fn isalnum(c: c_int) c_int; @@ -2726,14 +1830,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswcntrl_l.html pub extern fn iswcntrl_l(wc: wint_t, locale: locale_t) c_int; - /// int iswctype(wint_t wc, wctype_t charclass); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswctype.html - // pub extern fn iswctype(__wc: wint_t, __desc: wctype_t) c_int; - - /// int iswctype_l(wint_t wc, wctype_t charclass, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswctype_l.html - // pub extern fn iswctype_l(__wc: wint_t, __desc: wctype_t, __locale: locale_t) c_int; - /// int iswdigit(wint_t wc); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswdigit.html pub extern fn iswdigit(wc: wint_t) c_int; @@ -2818,34 +1914,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/jn.html pub extern fn jn(n: c_int, x: f64) f64; - /// long jrand48(unsigned short xsubi[3]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/jrand48.html - pub extern fn jrand48(__xsubi: [*c]c_ushort) c_long; - /// int kill(pid_t pid, int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/kill.html pub extern fn kill(pid: pid_t, sig: c_int) c_int; - /// int killpg(pid_t pgrp, int sig); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/killpg.html - // pub extern fn killpg(__pgrp: __pid_t, __sig: c_int) c_int; - - /// char *l64a(long value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/l64a.html - pub extern fn l64a(__n: c_long) [*c]u8; - /// long labs(long i); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/labs.html pub extern fn labs(i: c_long) c_long; - /// int lchown(const char *path, uid_t owner, gid_t group); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lchown.html - pub extern fn lchown(__file: [*c]const u8, __owner: uid_t, __group: gid_t) c_int; - - /// void lcong48(unsigned short param[7]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lcong48.html - pub extern fn lcong48(__param: [*c]c_ushort) void; - /// double ldexp(double x, int exp); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexp.html pub extern fn ldexp(x: f64, exp: c_int) f64; @@ -2854,18 +1930,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexpf.html pub extern fn ldexpf(x: f32, exp: c_int) f32; - /// long double ldexpl(long double x, int exp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexpl.html - pub extern fn ldexpl(__x: c_longdouble, __exponent: c_int) c_longdouble; - - /// ldiv_t ldiv(long numer, long denom); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldiv.html - // pub extern fn ldiv(__numer: c_long, __denom: c_long) ldiv_t; - - /// void *lfind(const void *key, const void *base, size_t *nelp, size_t width, int (*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lfind.html - // pub extern fn lfind(__key: ?*const anyopaque, __base: ?*const anyopaque, __nmemb: [*c]usize, __size: usize, __compar: __compar_fn_t) ?*anyopaque; - /// double lgamma(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgamma.html pub extern fn lgamma(x: f64) f64; @@ -2878,18 +1942,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgammal.html pub extern fn lgammal(x: c_longdouble) c_longdouble; - /// int link(const char *path1, const char *path2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/link.html - pub extern fn link(__from: [*c]const u8, __to: [*c]const u8) c_int; - - /// int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/linkat.html - pub extern fn linkat(__fromfd: c_int, __from: [*c]const u8, __tofd: c_int, __to: [*c]const u8, __flags: c_int) c_int; - - /// int lio_listio(int mode, struct aiocb *restrict const list[restrict], int nent, struct sigevent *restrict sig); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lio_listio.html - // 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; - /// int listen(int socket, int backlog); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/listen.html pub extern fn listen(socket: c_int, backlog: c_int) c_int; @@ -2898,10 +1950,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llabs.html pub extern fn llabs(x: c_longlong) c_longlong; - /// lldiv_t lldiv(long long numer, long long denom); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lldiv.html - // pub extern fn lldiv(__numer: c_longlong, __denom: c_longlong) lldiv_t; - /// long long llrint(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llrint.html pub extern fn llrint(x: f64) c_longlong; @@ -2930,18 +1978,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localeconv.html pub extern fn localeconv() *struct_lconv; - /// struct tm *localtime(const time_t *timer); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localtime.html - // pub extern fn localtime(__timer: [*c]const time_t) [*c]struct_tm; - - /// struct tm *localtime_r(const time_t *restrict timer, struct tm *restrict result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localtime_r.html - // pub extern fn localtime_r(noalias __timer: [*c]const time_t, noalias __tp: [*c]struct_tm) [*c]struct_tm; - - /// int lockf(int fildes, int function, off_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lockf.html - // pub extern fn lockf(__fd: c_int, __cmd: c_int, __len: off_t) c_int; - /// double log(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log.html pub extern fn log(x: f64) f64; @@ -3030,78 +2066,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lroundl.html pub extern fn lroundl(x: c_longdouble) c_long; - /// void *lsearch(const void *key, void *base, size_t *nelp, size_t width, int (*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lsearch.html - // pub extern fn lsearch(__key: ?*const anyopaque, __base: ?*anyopaque, __nmemb: [*c]usize, __size: usize, __compar: __compar_fn_t) ?*anyopaque; - /// off_t lseek(int fildes, off_t offset, int whence); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lseek.html pub extern fn lseek(fd: c_int, offset: off_t, whence: c_int) off_t; - /// int lstat(const char *restrict path, struct stat *restrict buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lstat.html - // pub extern fn lstat(noalias __file: [*c]const u8, noalias __buf: [*c]struct_stat) c_int; - /// void *malloc(size_t size); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/malloc.html pub extern fn malloc(size: usize) ?*anyopaque; - /// int mblen(const char *s, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mblen.html - pub extern fn mblen(__s: [*c]const u8, __n: usize) c_int; - - /// size_t mbrlen(const char *restrict s, size_t n, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbrlen.html - // pub extern fn mbrlen(noalias __s: [*c]const u8, __n: usize, noalias __ps: [*c]mbstate_t) usize; - - /// size_t mbrtowc(wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbrtowc.html - // pub extern fn mbrtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize, noalias __p: [*c]mbstate_t) usize; - - /// int mbsinit(const mbstate_t *ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsinit.html - // pub extern fn mbsinit(__ps: [*c]const mbstate_t) c_int; - - /// size_t mbsnrtowcs(wchar_t *restrict dst, const char **restrict src, size_t nmc, size_t len, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsnrtowcs.html - // 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; - - /// size_t mbsrtowcs(wchar_t *restrict dst, const char **restrict src, size_t len, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbsrtowcs.html - // pub extern fn mbsrtowcs(noalias __dst: [*c]wchar_t, noalias __src: [*c][*c]const u8, __len: usize, noalias __ps: [*c]mbstate_t) usize; - - /// size_t mbstowcs(wchar_t *restrict pwcs, const char *restrict s, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbstowcs.html - pub extern fn mbstowcs(noalias __pwcs: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) usize; - - /// int mbtowc(wchar_t *restrict pwc, const char *restrict s, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mbtowc.html - pub extern fn mbtowc(noalias __pwc: [*c]wchar_t, noalias __s: [*c]const u8, __n: usize) c_int; - - /// void *memccpy(void *restrict s1, const void *restrict s2, int c, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memccpy.html - pub extern fn memccpy(__dest: ?*anyopaque, __src: ?*const anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque; - - /// void *memchr(const void *s, int c, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memchr.html - pub extern fn memchr(__s: ?*const anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque; - - /// int memcmp(const void *s1, const void *s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memcmp.html - pub extern fn memcmp(__s1: ?*const anyopaque, __s2: ?*const anyopaque, __n: c_ulong) c_int; - - /// void *memcpy(void *restrict s1, const void *restrict s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memcpy.html - pub extern fn memcpy(__dest: ?*anyopaque, __src: ?*const anyopaque, __n: c_ulong) ?*anyopaque; - - /// void *memmove(void *s1, const void *s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memmove.html - pub extern fn memmove(__dest: ?*anyopaque, __src: ?*const anyopaque, __n: c_ulong) ?*anyopaque; - - /// void *memset(void *s, int c, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/memset.html - pub extern fn memset(__s: ?*anyopaque, __c: c_int, __n: c_ulong) ?*anyopaque; - /// int mkdir(const char *path, mode_t mode); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdir.html pub extern fn mkdir(path: [*:0]const u8, __mode: mode_t) c_int; @@ -3122,26 +2094,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifoat.html pub extern fn mkfifoat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int; - /// int mknod(const char *path, mode_t mode, dev_t dev); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mknod.html - // pub extern fn mknod(__path: [*c]const u8, __mode: mode_t, __dev: __dev_t) c_int; - - /// int mknodat(int fd, const char *path, mode_t mode, dev_t dev); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mknodat.html - // pub extern fn mknodat(__fd: c_int, __path: [*c]const u8, __mode: mode_t, __dev: __dev_t) c_int; - /// int mkstemp(char *template); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkstemp.html pub extern fn mkstemp(template: [*:0]u8) c_int; - /// time_t mktime(struct tm *timeptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mktime.html - // pub extern fn mktime(__tp: [*c]struct_tm) time_t; - - /// int mlock(const void *addr, size_t len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mlock.html - pub extern fn mlock(__addr: ?*const anyopaque, __len: usize) c_int; - /// int mlockall(int flags); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mlockall.html pub extern fn mlockall(flags: c_int) c_int; @@ -3150,58 +2106,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mmap.html pub extern fn mmap(addr: ?*anyopaque, len: usize, prot: c_int, flags: c_int, fd: c_int, offset: off_t) *allowzero anyopaque; - /// double modf(double x, double *iptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modf.html - pub extern fn modf(__x: f64, __iptr: [*c]f64) f64; - - /// float modff(float value, float *iptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modff.html - pub extern fn modff(__x: f32, __iptr: [*c]f32) f32; - - /// long double modfl(long double value, long double *iptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/modfl.html - pub extern fn modfl(__x: c_longdouble, __iptr: [*c]c_longdouble) c_longdouble; - - /// int mprotect(void *addr, size_t len, int prot); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mprotect.html - pub extern fn mprotect(__addr: ?*anyopaque, __len: usize, __prot: c_int) c_int; - - /// int mq_close(mqd_t mqdes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_close.html - // pub extern fn mq_close(__mqdes: mqd_t) c_int; - - /// int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_getattr.html - // pub extern fn mq_getattr(__mqdes: mqd_t, __mqstat: [*c]struct_mq_attr) c_int; - - /// int mq_notify(mqd_t mqdes, const struct sigevent *notification); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_notify.html - // pub extern fn mq_notify(__mqdes: mqd_t, __notification: [*c]const struct_sigevent) c_int; - - /// mqd_t mq_open(const char *name, int oflag, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_open.html - // pub extern fn mq_open(__name: [*c]const u8, __oflag: c_int, ...) mqd_t; - - /// ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_receive.html - // pub extern fn mq_receive(__mqdes: mqd_t, __msg_ptr: [*c]u8, __msg_len: usize, __msg_prio: [*c]c_uint) isize; - - /// int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_send.html - // pub extern fn mq_send(__mqdes: mqd_t, __msg_ptr: [*c]const u8, __msg_len: usize, __msg_prio: c_uint) c_int; - - /// int mq_setattr(mqd_t mqdes, const struct mq_attr *restrict mqstat, struct mq_attr *restrict omqstat); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_setattr.html - // pub extern fn mq_setattr(__mqdes: mqd_t, noalias __mqstat: [*c]const struct_mq_attr, noalias __omqstat: [*c]struct_mq_attr) c_int; - - /// ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr, size_t msg_len, unsigned *restrict msg_prio, const struct timespec *restrict abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_timedreceive.html - // 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; - - /// int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_timedsend.html - // 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; - /// int mq_unlink(const char *name); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_unlink.html pub extern fn mq_unlink(name: [*:0]const u8) c_int; @@ -3210,30 +2114,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mrand48.html pub extern fn mrand48() c_long; - /// int msgctl(int msqid, int cmd, struct msqid_ds *buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgctl.html - // pub extern fn msgctl(__msqid: c_int, __cmd: c_int, __buf: [*c]struct_msqid_ds) c_int; - - /// int msgget(key_t key, int msgflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgget.html - // pub extern fn msgget(__key: key_t, __msgflg: c_int) c_int; - - /// ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgrcv.html - pub extern fn msgrcv(__msqid: c_int, __msgp: ?*anyopaque, __msgsz: usize, __msgtyp: c_long, __msgflg: c_int) isize; - - /// int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msgsnd.html - pub extern fn msgsnd(__msqid: c_int, __msgp: ?*const anyopaque, __msgsz: usize, __msgflg: c_int) c_int; - - /// int msync(void *addr, size_t len, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/msync.html - pub extern fn msync(__addr: ?*anyopaque, __len: usize, __flags: c_int) c_int; - - /// int munlock(const void *addr, size_t len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munlock.html - pub extern fn munlock(__addr: ?*const anyopaque, __len: usize) c_int; - /// int munlockall(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munlockall.html pub extern fn munlockall() void; @@ -3242,22 +2122,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munmap.html pub extern fn munmap(addr: *const anyopaque, len: usize) c_int; - /// double nan(const char *tagp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nan.html - pub extern fn nan(__tagb: [*c]const u8) f64; - - /// float nanf(const char *tagp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanf.html - pub extern fn nanf(__tagb: [*c]const u8) f32; - - /// long double nanl(const char *tagp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanl.html - pub extern fn nanl(__tagb: [*c]const u8) c_longdouble; - - /// int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nanosleep.html - pub extern fn nanosleep(__requested_time: [*c]const struct_timespec, __remaining: [*c]struct_timespec) c_int; - /// double nearbyint(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyint.html pub extern fn nearbyint(x: f64) f64; @@ -3270,10 +2134,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyintl.html pub extern fn nearbyintl(x: c_longdouble) c_longdouble; - /// locale_t newlocale(int category_mask, const char *locale, locale_t base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/newlocale.html - pub extern fn newlocale(__category_mask: c_int, __locale: [*c]const u8, __base: locale_t) locale_t; - /// double nextafter(double x, double y); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nextafter.html pub extern fn nextafter(x: f64, y: f64) f64; @@ -3298,26 +2158,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nexttowardl.html pub extern fn nexttowardl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nftw.html - pub const nftw = @compileError("TODO nftw"); - /// int nice(int incr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nice.html pub extern fn nice(incr: c_int) c_int; - /// char *nl_langinfo(nl_item item); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nl_langinfo.html - // pub extern fn nl_langinfo(__item: nl_item) [*c]u8; - - /// char *nl_langinfo_l(nl_item item, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nl_langinfo_l.html - // pub extern fn nl_langinfo_l(__item: nl_item, __l: locale_t) [*c]u8; - - /// long nrand48(unsigned short xsubi[3]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nrand48.html - pub extern fn nrand48(__xsubi: [*c]c_ushort) c_long; - /// uint32_t ntohl(uint32_t netlong); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohl.html pub extern fn ntohl(netlong: u32) u32; @@ -3326,50 +2170,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohs.html pub extern fn ntohs(netshort: u16) u16; - /// int open(const char *path, int oflag, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open.html - pub extern fn open(__file: [*c]const u8, __oflag: c_int, ...) c_int; - - /// FILE *open_memstream(char **bufp, size_t *sizep); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open_memstream.html - pub extern fn open_memstream(__bufloc: [*c][*c]u8, __sizeloc: [*c]usize) [*c]FILE; - - /// FILE *open_wmemstream(wchar_t **bufp, size_t *sizep); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/open_wmemstream.html - // pub extern fn open_wmemstream(__bufloc: [*c][*c]wchar_t, __sizeloc: [*c]usize) [*c]__FILE; - /// int openat(int fd, const char *path, int oflag, ...); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int; - /// DIR *opendir(const char *dirname); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/opendir.html - pub extern fn opendir(__name: [*c]const u8) ?*DIR; - - /// void openlog(const char *ident, int logopt, int facility); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openlog.html - pub extern fn openlog(__ident: [*c]const u8, __option: c_int, __facility: c_int) void; - - /// long pathconf(const char *path, int name); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pathconf.html - pub extern fn pathconf(__path: [*c]const u8, __name: c_int) c_long; - /// int pause(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pause.html pub extern fn pause() c_int; - /// int pclose(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pclose.html - pub extern fn pclose(__stream: [*c]FILE) c_int; - - /// void perror(const char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/perror.html - pub extern fn perror(__s: [*c]const u8) void; - - /// int pipe(int fildes[2]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pipe.html - pub extern fn pipe(pipefd: *[2]c_int) c_int; - /// int pipe2(int fildes[2], int flag); /// https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html pub extern fn pipe2(pipefd: *[2]c_int, flag: c_int) c_int; @@ -3378,126 +2186,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/poll.html pub extern fn poll(fds: [*]struct_pollfd, nfds: nfds_t, timeout: c_int) c_int; - /// FILE *popen(const char *command, const char *mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/popen.html - pub extern fn popen(__command: [*c]const u8, __modes: [*c]const u8) [*c]FILE; - - /// int posix_fadvise(int fd, off_t offset, off_t len, int advice); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_fadvise.html - pub extern fn posix_fadvise(__fd: c_int, __offset: off_t, __len: off_t, __advise: c_int) c_int; - - /// int posix_fallocate(int fd, off_t offset, off_t len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_fallocate.html - pub extern fn posix_fallocate(__fd: c_int, __offset: off_t, __len: off_t) c_int; - - /// int posix_madvise(void *addr, size_t len, int advice); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_madvise.html - pub extern fn posix_madvise(__addr: ?*anyopaque, __len: usize, __advice: c_int) c_int; - - /// int posix_mem_offset(const void *restrict addr, size_t len, off_t *restrict off, size_t *restrict contig_len, int *restrict fildes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_mem_offset.html - pub const posix_mem_offset = @compileError("TODO posix_mem_offset"); - - /// int posix_memalign(void **memptr, size_t alignment, size_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_memalign.html - pub extern fn posix_memalign(__memptr: [*c]?*anyopaque, __alignment: usize, __size: usize) c_int; - - /// int posix_openpt(int oflag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_openpt.html - pub const posix_openpt = @compileError("TODO posix_openpt"); - - /// 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]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn.html - // 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; - - /// int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions, int fildes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_addclose.html - // pub extern fn posix_spawn_file_actions_addclose(__file_actions: [*c]posix_spawn_file_actions_t, __fd: c_int) c_int; - - /// int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions, int fildes, int newfildes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_adddup2.html - // pub extern fn posix_spawn_file_actions_adddup2(__file_actions: [*c]posix_spawn_file_actions_t, __fd: c_int, __newfd: c_int) c_int; - - /// 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); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_addopen.html - // 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; - - /// int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *file_actions); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_destroy.html - // pub extern fn posix_spawn_file_actions_destroy(__file_actions: [*c]posix_spawn_file_actions_t) c_int; - - /// int posix_spawn_file_actions_init(posix_spawn_file_actions_t *file_actions); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawn_file_actions_init.html - // pub extern fn posix_spawn_file_actions_init(__file_actions: [*c]posix_spawn_file_actions_t) c_int; - - /// int posix_spawnattr_destroy(posix_spawnattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_destroy.html - // pub extern fn posix_spawnattr_destroy(__attr: [*c]posix_spawnattr_t) c_int; - - /// int posix_spawnattr_getflags(const posix_spawnattr_t *restrict attr, short *restrict flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getflags.html - // pub extern fn posix_spawnattr_getflags(noalias __attr: [*c]const posix_spawnattr_t, noalias __flags: [*c]c_short) c_int; - - /// int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr, pid_t *restrict pgroup); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getpgroup.html - // pub extern fn posix_spawnattr_getpgroup(noalias __attr: [*c]const posix_spawnattr_t, noalias __pgroup: [*c]pid_t) c_int; - - /// int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict attr, struct sched_param *restrict schedparam); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getschedparam.html - // pub extern fn posix_spawnattr_getschedparam(noalias __attr: [*c]const posix_spawnattr_t, noalias __schedparam: [*c]struct_sched_param) c_int; - - /// int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict attr, int *restrict schedpolicy); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getschedpolicy.html - // pub extern fn posix_spawnattr_getschedpolicy(noalias __attr: [*c]const posix_spawnattr_t, noalias __schedpolicy: [*c]c_int) c_int; - - /// int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigdefault); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getsigdefault.html - // pub extern fn posix_spawnattr_getsigdefault(noalias __attr: [*c]const posix_spawnattr_t, noalias __sigdefault: [*c]sigset_t) c_int; - - /// int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigmask); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_getsigmask.html - // pub extern fn posix_spawnattr_getsigmask(noalias __attr: [*c]const posix_spawnattr_t, noalias __sigmask: [*c]sigset_t) c_int; - - /// int posix_spawnattr_init(posix_spawnattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_init.html - // pub extern fn posix_spawnattr_init(__attr: [*c]posix_spawnattr_t) c_int; - - /// int posix_spawnattr_setflags(posix_spawnattr_t *attr, short flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setflags.html - // pub extern fn posix_spawnattr_setflags(_attr: [*c]posix_spawnattr_t, __flags: c_short) c_int; - - /// int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setpgroup.html - // pub extern fn posix_spawnattr_setpgroup(__attr: [*c]posix_spawnattr_t, __pgroup: pid_t) c_int; - - /// int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr, const struct sched_param *restrict schedparam); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setschedparam.html - // pub extern fn posix_spawnattr_setschedparam(noalias __attr: [*c]posix_spawnattr_t, noalias __schedparam: [*c]const struct_sched_param) c_int; - - /// int posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr, int schedpolicy); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setschedpolicy.html - // pub extern fn posix_spawnattr_setschedpolicy(__attr: [*c]posix_spawnattr_t, __schedpolicy: c_int) c_int; - - /// int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict attr, const sigset_t *restrict sigdefault); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setsigdefault.html - // pub extern fn posix_spawnattr_setsigdefault(noalias __attr: [*c]posix_spawnattr_t, noalias __sigdefault: [*c]const sigset_t) c_int; - - /// int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict attr, const sigset_t *restrict sigmask); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnattr_setsigmask.html - // pub extern fn posix_spawnattr_setsigmask(noalias __attr: [*c]posix_spawnattr_t, noalias __sigmask: [*c]const sigset_t) c_int; - - /// 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]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_spawnp.html - // 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; - - /// int posix_typed_mem_get_info(int fildes, struct posix_typed_mem_info *info); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_typed_mem_get_info.html - pub const posix_typed_mem_get_info = @compileError("TODO posix_typed_mem_get_info"); - - /// int posix_typed_mem_open(const char *name, int oflag, int tflag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/posix_typed_mem_open.html - pub const posix_typed_mem_open = @compileError("TODO posix_typed_mem_open"); - /// double pow(double x, double y); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pow.html pub extern fn pow(x: f64, y: f64) f64; @@ -3510,142 +2198,26 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/powl.html pub extern fn powl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pread.html - pub extern fn pread(__fd: c_int, __buf: ?*anyopaque, __nbytes: usize, __offset: off_t) isize; - - /// int printf(const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/printf.html - pub extern fn printf(__format: [*c]const u8, ...) c_int; - - /// 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); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pselect.html - // 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; - - /// void psiginfo(const siginfo_t *pinfo, const char *message); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/psiginfo.html - // pub extern fn psiginfo(__pinfo: [*c]const siginfo_t, __s: [*c]const u8) void; - - /// void psignal(int signum, const char *message); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/psignal.html - pub extern fn psignal(__sig: c_int, __s: [*c]const u8) void; - - /// int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_atfork.html - 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; - /// int pthread_attr_destroy(pthread_attr_t *attr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_destroy.html pub extern fn pthread_attr_destroy(attr: *pthread_attr_t) c_int; - /// int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getdetachstate.html - // pub extern fn pthread_attr_getdetachstate(__attr: [*c]const pthread_attr_t, __detachstate: [*c]c_int) c_int; - - /// int pthread_attr_getguardsize(const pthread_attr_t *restrict attr, size_t *restrict guardsize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getguardsize.html - // pub extern fn pthread_attr_getguardsize(__attr: [*c]const pthread_attr_t, __guardsize: [*c]usize) c_int; - - /// int pthread_attr_getinheritsched(const pthread_attr_t *restrict attr, int *restrict inheritsched); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getinheritsched.html - // pub extern fn pthread_attr_getinheritsched(noalias __attr: [*c]const pthread_attr_t, noalias __inherit: [*c]c_int) c_int; - - /// int pthread_attr_getschedparam(const pthread_attr_t *restrict attr, struct sched_param *restrict param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getschedparam.html - // pub extern fn pthread_attr_getschedparam(noalias __attr: [*c]const pthread_attr_t, noalias __param: [*c]struct_sched_param) c_int; - - /// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict attr, int *restrict policy); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getschedpolicy.html - // pub extern fn pthread_attr_getschedpolicy(noalias __attr: [*c]const pthread_attr_t, noalias __policy: [*c]c_int) c_int; - - /// int pthread_attr_getscope(const pthread_attr_t *restrict attr, int *restrict contentionscope); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getscope.html - // pub extern fn pthread_attr_getscope(noalias __attr: [*c]const pthread_attr_t, noalias __scope: [*c]c_int) c_int; - - /// int pthread_attr_getstack(const pthread_attr_t *restrict attr, void **restrict stackaddr, size_t *restrict stacksize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getstack.html - // pub extern fn pthread_attr_getstack(noalias __attr: [*c]const pthread_attr_t, noalias __stackaddr: [*c]?*anyopaque, noalias __stacksize: [*c]usize) c_int; - - /// int pthread_attr_getstacksize(const pthread_attr_t *restrict attr, size_t *restrict stacksize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_getstacksize.html - // pub extern fn pthread_attr_getstacksize(noalias __attr: [*c]const pthread_attr_t, noalias __stacksize: [*c]usize) c_int; - /// int pthread_attr_init(pthread_attr_t *attr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_init.html pub extern fn pthread_attr_init(attr: *pthread_attr_t) c_int; - /// int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setdetachstate.html - // pub extern fn pthread_attr_setdetachstate(__attr: [*c]pthread_attr_t, __detachstate: c_int) c_int; - /// int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setguardsize.html pub extern fn pthread_attr_setguardsize(attr: *pthread_attr_t, guardsize: usize) c_int; - /// int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setinheritsched.html - // pub extern fn pthread_attr_setinheritsched(__attr: [*c]pthread_attr_t, __inherit: c_int) c_int; - - /// int pthread_attr_setschedparam(pthread_attr_t *restrict attr, const struct sched_param *restrict param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setschedparam.html - // pub extern fn pthread_attr_setschedparam(noalias __attr: [*c]pthread_attr_t, noalias __param: [*c]const struct_sched_param) c_int; - - /// int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setschedpolicy.html - // pub extern fn pthread_attr_setschedpolicy(__attr: [*c]pthread_attr_t, __policy: c_int) c_int; - - /// int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setscope.html - // pub extern fn pthread_attr_setscope(__attr: [*c]pthread_attr_t, __scope: c_int) c_int; - - /// int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setstack.html - // pub extern fn pthread_attr_setstack(__attr: [*c]pthread_attr_t, __stackaddr: ?*anyopaque, __stacksize: usize) c_int; - /// int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_attr_setstacksize.html pub extern fn pthread_attr_setstacksize(attr: *pthread_attr_t, stacksize: usize) c_int; - /// int pthread_barrier_destroy(pthread_barrier_t *barrier); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_destroy.html - // pub extern fn pthread_barrier_destroy(__barrier: [*c]pthread_barrier_t) c_int; - - /// int pthread_barrier_init(pthread_barrier_t *restrict barrier, const pthread_barrierattr_t *restrict attr, unsigned count); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_init.html - // pub extern fn pthread_barrier_init(noalias __barrier: [*c]pthread_barrier_t, noalias __attr: [*c]const pthread_barrierattr_t, __count: c_uint) c_int; - - /// int pthread_barrier_wait(pthread_barrier_t *barrier); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrier_wait.html - // pub extern fn pthread_barrier_wait(__barrier: [*c]pthread_barrier_t) c_int; - - /// int pthread_barrierattr_destroy(pthread_barrierattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_destroy.html - // pub extern fn pthread_barrierattr_destroy(__attr: [*c]pthread_barrierattr_t) c_int; - - /// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict attr, int *restrict pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_getpshared.html - // pub extern fn pthread_barrierattr_getpshared(noalias __attr: [*c]const pthread_barrierattr_t, noalias __pshared: [*c]c_int) c_int; - - /// int pthread_barrierattr_init(pthread_barrierattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_init.html - // pub extern fn pthread_barrierattr_init(__attr: [*c]pthread_barrierattr_t) c_int; - - /// int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_barrierattr_setpshared.html - // pub extern fn pthread_barrierattr_setpshared(__attr: [*c]pthread_barrierattr_t, __pshared: c_int) c_int; - /// int pthread_cancel(pthread_t thread); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cancel.html pub extern fn pthread_cancel(thread: pthread_t) c_int; - /// void pthread_cleanup_pop(int execute); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cleanup_pop.html - pub const pthread_cleanup_pop = @compileError("TODO pthread_cleanup_pop"); - - /// void pthread_cleanup_push(void (*routine)(void*), void *arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cleanup_push.html - pub const pthread_cleanup_push = @compileError("TODO pthread_cleanup_push"); - /// int pthread_cond_broadcast(pthread_cond_t *cond); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cond_broadcast.html pub extern fn pthread_cond_broadcast(cond: *pthread_cond_t) c_int; @@ -3674,26 +2246,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_destroy.html pub extern fn pthread_condattr_destroy(attr: *pthread_condattr_t) c_int; - /// int pthread_condattr_getclock(const pthread_condattr_t *restrict attr, clockid_t *restrict clock_id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_getclock.html - // pub extern fn pthread_condattr_getclock(noalias __attr: [*c]const pthread_condattr_t, noalias __clock_id: [*c]__clockid_t) c_int; - - /// int pthread_condattr_getpshared(const pthread_condattr_t *restrict attr, int *restrict pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_getpshared.html - // pub extern fn pthread_condattr_getpshared(noalias __attr: [*c]const pthread_condattr_t, noalias __pshared: [*c]c_int) c_int; - /// int pthread_condattr_init(pthread_condattr_t *attr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_init.html pub extern fn pthread_condattr_init(attr: *pthread_condattr_t) c_int; - /// int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_setclock.html - // pub extern fn pthread_condattr_setclock(__attr: [*c]pthread_condattr_t, __clock_id: __clockid_t) c_int; - - /// int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_condattr_setpshared.html - // pub extern fn pthread_condattr_setpshared(__attr: [*c]pthread_condattr_t, __pshared: c_int) c_int; - /// int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_create.html 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 { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_equal.html pub extern fn pthread_equal(thread1: pthread_t, thread2: pthread_t) c_int; - /// void pthread_exit(void *value_ptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_exit.html - pub extern fn pthread_exit(__retval: ?*anyopaque) noreturn; - /// int pthread_getconcurrency(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getconcurrency.html pub extern fn pthread_getconcurrency() c_int; - /// int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getcpuclockid.html - // pub extern fn pthread_getcpuclockid(__thread_id: pthread_t, __clock_id: [*c]__clockid_t) c_int; - - /// int pthread_getschedparam(pthread_t thread, int *restrict policy, struct sched_param *restrict param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getschedparam.html - // pub extern fn pthread_getschedparam(__target_thread: pthread_t, noalias __policy: [*c]c_int, noalias __param: [*c]struct_sched_param) c_int; - - /// void *pthread_getspecific(pthread_key_t key); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getspecific.html - // pub extern fn pthread_getspecific(__key: pthread_key_t) ?*anyopaque; - /// int pthread_join(pthread_t thread, void **value_ptr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_join.html pub extern fn pthread_join(thread: pthread_t, retval: ?*?*anyopaque) c_int; - /// int pthread_key_create(pthread_key_t *key, void (*destructor)(void*)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_key_create.html - // pub extern fn pthread_key_create(__key: [*c]pthread_key_t, __destr_function: ?*const fn (?*anyopaque) callconv(.C) void) c_int; - - /// int pthread_key_delete(pthread_key_t key); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_key_delete.html - // pub extern fn pthread_key_delete(__key: pthread_key_t) c_int; - /// int pthread_kill(pthread_t thread, int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_kill.html pub extern fn pthread_kill(thread: pthread_t, sig: c_int) c_int; - /// int pthread_mutex_consistent(pthread_mutex_t *mutex); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_consistent.html - // pub extern fn pthread_mutex_consistent(__mutex: [*c]pthread_mutex_t) c_int; - /// int pthread_mutex_destroy(pthread_mutex_t *mutex); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_destroy.html pub extern fn pthread_mutex_destroy(mutex: *pthread_mutex_t) c_int; - /// int pthread_mutex_getprioceiling(const pthread_mutex_t *restrict mutex, int *restrict prioceiling); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_getprioceiling.html - // pub extern fn pthread_mutex_getprioceiling(noalias __mutex: [*c]const pthread_mutex_t, noalias __prioceiling: [*c]c_int) c_int; - /// int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_init.html 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 { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_lock.html pub extern fn pthread_mutex_lock(mutex: *pthread_mutex_t) c_int; - /// int pthread_mutex_setprioceiling(pthread_mutex_t *restrict mutex, int prioceiling, int *restrict old_ceiling); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_setprioceiling.html - // pub extern fn pthread_mutex_setprioceiling(noalias __mutex: [*c]pthread_mutex_t, __prioceiling: c_int, noalias __old_ceiling: [*c]c_int) c_int; - - /// int pthread_mutex_timedlock(pthread_mutex_t *restrict mutex, const struct timespec *restrict abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_timedlock.html - // pub extern fn pthread_mutex_timedlock(noalias __mutex: [*c]pthread_mutex_t, noalias __abstime: [*c]const struct_timespec) c_int; - /// int pthread_mutex_trylock(pthread_mutex_t *mutex); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutex_trylock.html pub extern fn pthread_mutex_trylock(mutex: *pthread_mutex_t) c_int; @@ -3782,54 +2298,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_destroy.html pub extern fn pthread_mutexattr_destroy(attr: *pthread_mutexattr_t) c_int; - /// int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *restrict attr, int *restrict prioceiling); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getprioceiling.html - // pub extern fn pthread_mutexattr_getprioceiling(noalias __attr: [*c]const pthread_mutexattr_t, noalias __prioceiling: [*c]c_int) c_int; - - /// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict attr, int *restrict protocol); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getprotocol.html - // pub extern fn pthread_mutexattr_getprotocol(noalias __attr: [*c]const pthread_mutexattr_t, noalias __protocol: [*c]c_int) c_int; - - /// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict attr, int *restrict pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getpshared.html - // pub extern fn pthread_mutexattr_getpshared(noalias __attr: [*c]const pthread_mutexattr_t, noalias __pshared: [*c]c_int) c_int; - - /// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict attr, int *restrict robust); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_getrobust.html - // pub extern fn pthread_mutexattr_getrobust(__attr: [*c]const pthread_mutexattr_t, __robustness: [*c]c_int) c_int; - - /// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict attr, int *restrict type); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_gettype.html - // pub extern fn pthread_mutexattr_gettype(noalias __attr: [*c]const pthread_mutexattr_t, noalias __kind: [*c]c_int) c_int; - /// int pthread_mutexattr_init(pthread_mutexattr_t *attr); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_init.html pub extern fn pthread_mutexattr_init(attr: *pthread_mutexattr_t) c_int; - /// int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setprioceiling.html - // pub extern fn pthread_mutexattr_setprioceiling(__attr: [*c]pthread_mutexattr_t, __prioceiling: c_int) c_int; - - /// int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setprotocol.html - // pub extern fn pthread_mutexattr_setprotocol(__attr: [*c]pthread_mutexattr_t, __protocol: c_int) c_int; - - /// int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setpshared.html - // pub extern fn pthread_mutexattr_setpshared(__attr: [*c]pthread_mutexattr_t, __pshared: c_int) c_int; - - /// int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr, int robust); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_setrobust.html - // pub extern fn pthread_mutexattr_setrobust(__attr: [*c]pthread_mutexattr_t, __robustness: c_int) c_int; - - /// int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_mutexattr_settype.html - // pub extern fn pthread_mutexattr_settype(__attr: [*c]pthread_mutexattr_t, __kind: c_int) c_int; - - /// int pthread_once(pthread_once_t *once_control, void (*init_routine)(void)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_once.html - // // pub extern fn pthread_once(__once_control: [*c]pthread_once_t, __init_routine: ?*const fn () callconv(.C) void) c_int; - /// int pthread_rwlock_destroy(pthread_rwlock_t *rwlock); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_destroy.html pub extern fn pthread_rwlock_destroy(rwlock: *pthread_rwlock_t) c_int; @@ -3842,14 +2314,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_rdlock.html pub extern fn pthread_rwlock_rdlock(rwlock: *pthread_rwlock_t) c_int; - /// int pthread_rwlock_timedrdlock(pthread_rwlock_t *restrict rwlock, const struct timespec *restrict abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_timedrdlock.html - pub extern fn pthread_rwlock_timedrdlock(noalias rwlock: *pthread_rwlock_t, noalias abstime: *const struct_timespec) c_int; - - /// int pthread_rwlock_timedwrlock(pthread_rwlock_t *restrict rwlock, const struct timespec *restrict abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_timedwrlock.html - pub extern fn pthread_rwlock_timedwrlock(noalias rwlock: *pthread_rwlock_t, noalias abstime: *const struct_timespec) c_int; - /// int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_tryrdlock.html pub extern fn pthread_rwlock_tryrdlock(rwlock: *pthread_rwlock_t) c_int; @@ -3866,90 +2330,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlock_wrlock.html pub extern fn pthread_rwlock_wrlock(rwlock: *pthread_rwlock_t) c_int; - /// int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_destroy.html - // pub extern fn pthread_rwlockattr_destroy(__attr: [*c]pthread_rwlockattr_t) c_int; - - /// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict attr, int *restrict pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_getpshared.html - // pub extern fn pthread_rwlockattr_getpshared(noalias __attr: [*c]const pthread_rwlockattr_t, noalias __pshared: [*c]c_int) c_int; - - /// int pthread_rwlockattr_init(pthread_rwlockattr_t *attr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_init.html - // pub extern fn pthread_rwlockattr_init(__attr: [*c]pthread_rwlockattr_t) c_int; - - /// int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_rwlockattr_setpshared.html - // pub extern fn pthread_rwlockattr_setpshared(__attr: [*c]pthread_rwlockattr_t, __pshared: c_int) c_int; - /// pthread_t pthread_self(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_self.html pub extern fn pthread_self() pthread_t; - /// int pthread_setcancelstate(int state, int *oldstate); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setcancelstate.html - pub extern fn pthread_setcancelstate(__state: c_int, __oldstate: [*c]c_int) c_int; - - /// int pthread_setcanceltype(int type, int *oldtype); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setcanceltype.html - pub extern fn pthread_setcanceltype(__type: c_int, __oldtype: [*c]c_int) c_int; - - /// int pthread_setconcurrency(int new_level); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setconcurrency.html - pub const pthread_setconcurrency = @compileError("TODO pthread_setconcurrency"); - - /// int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setschedparam.html - // pub extern fn pthread_setschedparam(__target_thread: pthread_t, __policy: c_int, __param: [*c]const struct_sched_param) c_int; - - /// int pthread_setschedprio(pthread_t thread, int prio); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setschedprio.html - pub extern fn pthread_setschedprio(__target_thread: pthread_t, __prio: c_int) c_int; - - /// int pthread_setspecific(pthread_key_t key, const void *value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_setspecific.html - // pub extern fn pthread_setspecific(__key: pthread_key_t, __pointer: ?*const anyopaque) c_int; - - /// int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict oset); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_sigmask.html - // pub extern fn pthread_sigmask(__how: c_int, noalias __newmask: [*c]const __sigset_t, noalias __oldmask: [*c]__sigset_t) c_int; - - /// int pthread_spin_destroy(pthread_spinlock_t *lock); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_destroy.html - // pub extern fn pthread_spin_destroy(__lock: [*c]volatile pthread_spinlock_t) c_int; - - /// int pthread_spin_init(pthread_spinlock_t *lock, int pshared); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_init.html - // pub extern fn pthread_spin_init(__lock: [*c]volatile pthread_spinlock_t, __pshared: c_int) c_int; - - /// int pthread_spin_lock(pthread_spinlock_t *lock); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_lock.html - // pub extern fn pthread_spin_lock(__lock: [*c]volatile pthread_spinlock_t) c_int; - - /// int pthread_spin_trylock(pthread_spinlock_t *lock); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_trylock.html - // pub extern fn pthread_spin_trylock(__lock: [*c]volatile pthread_spinlock_t) c_int; - - /// int pthread_spin_unlock(pthread_spinlock_t *lock); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_spin_unlock.html - // pub extern fn pthread_spin_unlock(__lock: [*c]volatile pthread_spinlock_t) c_int; - /// void pthread_testcancel(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_testcancel.html pub extern fn pthread_testcancel() void; - /// char *ptsname(int fildes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ptsname.html - pub const ptsname = @compileError("TODO ptsname"); - - /// int putc(int c, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putc.html - pub extern fn putc(__c: c_int, __stream: [*c]FILE) c_int; - - /// int putc_unlocked(int c, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putc_unlocked.html - pub extern fn putc_unlocked(__c: c_int, __stream: [*c]FILE) c_int; - /// int putchar(int c); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar.html pub extern fn putchar(c: c_int) c_int; @@ -3958,42 +2346,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar_unlocked.html pub extern fn putchar_unlocked(c: c_int) c_int; - /// int putenv(char *string); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putenv.html - pub extern fn putenv(__string: [*c]u8) c_int; - - /// int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putmsg.html - pub const putmsg = @compileError("TODO putmsg"); - - /// int putpmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putpmsg.html - pub const putpmsg = @compileError("TODO putpmsg"); - - /// int puts(const char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/puts.html - pub extern fn puts(__s: [*c]const u8) c_int; - - /// struct utmpx *pututxline(const struct utmpx *utmpx); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pututxline.html - pub extern fn pututxline(__utmpx: [*c]const struct_utmpx) [*c]struct_utmpx; - - /// wint_t putwc(wchar_t wc, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putwc.html - // pub extern fn putwc(__wc: wchar_t, __stream: [*c]__FILE) wint_t; - /// wint_t putwchar(wchar_t wc); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putwchar.html pub extern fn putwchar(wc: wchar_t) wint_t; - /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pwrite.html - pub extern fn pwrite(__fd: c_int, __buf: ?*const anyopaque, __n: usize, __offset: off_t) isize; - - /// void qsort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/qsort.html - // pub extern fn qsort(__base: ?*anyopaque, __nmemb: usize, __size: usize, __compar: __compar_fn_t) void; - /// int raise(int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/raise.html pub extern fn raise(sig: c_int) c_int; @@ -4002,10 +2358,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rand.html pub extern fn rand() c_int; - /// int rand_r(unsigned *seed); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rand_r.html - pub extern fn rand_r(__seed: [*c]c_uint) c_int; - /// long random(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/random.html pub extern fn random() c_long; @@ -4014,14 +2366,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize; - /// struct dirent *readdir(DIR *dirp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readdir.html - // pub extern fn readdir(__dirp: ?*DIR) [*c]struct_dirent; - - /// int readdir_r(DIR *restrict dirp, struct dirent *restrict entry, struct dirent **restrict result); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readdir_r.html - // pub extern fn readdir_r(noalias __dirp: ?*DIR, noalias __entry: [*c]struct_dirent, noalias __result: [*c][*c]struct_dirent) c_int; - /// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readlink.html pub extern fn readlink(noalias path: [*:0]const u8, noalias buf: [*]u8, len: usize) isize; @@ -4034,42 +2378,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/readv.html pub extern fn readv(fd: c_int, iovec: [*]const struct_iovec, count: c_int) isize; - /// void *realloc(void *ptr, size_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/realloc.html - pub extern fn realloc(__ptr: ?*anyopaque, __size: c_ulong) ?*anyopaque; - - /// char *realpath(const char *restrict file_name, char *restrict resolved_name); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/realpath.html - pub extern fn realpath(noalias __name: [*c]const u8, noalias __resolved: [*c]u8) [*c]u8; - /// ssize_t recv(int socket, void *buffer, size_t length, int flags); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recv.html pub extern fn recv(fd: c_int, buffer: [*]u8, length: usize, flags: c_int) isize; - /// ssize_t recvfrom(int socket, void *restrict buffer, size_t length, int flags, struct sockaddr *restrict address, socklen_t *restrict address_len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recvfrom.html - 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; - - /// ssize_t recvmsg(int socket, struct msghdr *message, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/recvmsg.html - // pub extern fn recvmsg(__fd: c_int, __message: [*c]struct_msghdr, __flags: c_int) isize; - - /// int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regcomp.html - // pub extern fn regcomp(noalias __preg: ?*regex_t, noalias __pattern: [*c]const u8, __cflags: c_int) c_int; - - /// size_t regerror(int errcode, const regex_t *restrict preg, char *restrict errbuf, size_t errbuf_size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regerror.html - // pub extern fn regerror(__errcode: c_int, noalias __preg: ?*const regex_t, noalias __errbuf: [*c]u8, __errbuf_size: usize) usize; - - /// int regexec(const regex_t *restrict preg, const char *restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regexec.html - // 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; - - /// void regfree(regex_t *preg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/regfree.html - // pub extern fn regfree(__preg: ?*regex_t) void; - /// double remainder(double x, double y); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainder.html pub extern fn remainder(x: f64, y: f64) f64; @@ -4082,42 +2394,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainderl.html pub extern fn remainderl(x: c_longdouble, y: c_longdouble) c_longdouble; - /// int remove(const char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remove.html - pub extern fn remove(__filename: [*c]const u8) c_int; - - /// void remque(void *element); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remque.html - pub extern fn remque(__elem: ?*anyopaque) void; - - /// double remquo(double x, double y, int *quo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquo.html - pub extern fn remquo(__x: f64, __y: f64, __quo: [*c]c_int) f64; - - /// float remquof(float x, float y, int *quo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquof.html - pub extern fn remquof(__x: f32, __y: f32, __quo: [*c]c_int) f32; - - /// long double remquol(long double x, long double y, int *quo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remquol.html - pub extern fn remquol(__x: c_longdouble, __y: c_longdouble, __quo: [*c]c_int) c_longdouble; - - /// int rename(const char *old, const char *new); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rename.html - pub extern fn rename(__old: [*c]const u8, __new: [*c]const u8) c_int; - /// int renameat(int oldfd, const char *old, int newfd, const char *new); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/renameat.html pub extern fn renameat(oldfd: c_int, old: [*:0]const u8, newfd: c_int, new: [*:0]const u8) c_int; - /// void rewind(FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rewind.html - pub extern fn rewind(__stream: [*c]FILE) void; - - /// void rewinddir(DIR *dirp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rewinddir.html - pub extern fn rewinddir(__dirp: ?*DIR) void; - /// double rint(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rint.html pub extern fn rint(x: f64) f64; @@ -4170,14 +2450,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbnl.html pub extern fn scalbnl(x: c_longdouble, n: c_int) c_longdouble; - /// int scandir(const char *dir, struct dirent ***namelist, int (*sel)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scandir.html - // 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; - - /// int scanf(const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scanf.html - pub extern fn scanf(noalias __format: [*c]const u8, ...) c_int; - /// int sched_get_priority_max(int policy); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_max.html pub extern fn sched_get_priority_max(policy: c_int) c_int; @@ -4186,118 +2458,30 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_min.html pub extern fn sched_get_priority_min(policy: c_int) c_int; - /// int sched_getparam(pid_t pid, struct sched_param *param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_getparam.html - // pub extern fn sched_getparam(__pid: __pid_t, __param: [*c]struct_sched_param) c_int; - /// int sched_getscheduler(pid_t pid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_getscheduler.html pub extern fn sched_getscheduler(pid: pid_t) c_int; - /// int sched_rr_get_interval(pid_t pid, struct timespec *interval); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_rr_get_interval.html - // pub extern fn sched_rr_get_interval(__pid: __pid_t, __t: [*c]struct_timespec) c_int; - - /// int sched_setparam(pid_t pid, const struct sched_param *param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_setparam.html - // pub extern fn sched_setparam(__pid: __pid_t, __param: [*c]const struct_sched_param) c_int; - - /// int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_setscheduler.html - // pub extern fn sched_setscheduler(__pid: __pid_t, __policy: c_int, __param: [*c]const struct_sched_param) c_int; - /// int sched_yield(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_yield.html pub extern fn sched_yield() c_int; - /// unsigned short *seed48(unsigned short seed16v[3]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seed48.html - pub extern fn seed48(__seed16v: [*c]c_ushort) [*c]c_ushort; - - /// void seekdir(DIR *dirp, long loc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seekdir.html - pub extern fn seekdir(__dirp: ?*DIR, __pos: c_long) void; - - /// int select(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict errorfds, struct timeval *restrict timeout); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/select.html - // 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; - - /// int sem_close(sem_t *sem); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_close.html - // pub extern fn sem_close(__sem: [*c]sem_t) c_int; - - /// int sem_destroy(sem_t *sem); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_destroy.html - // pub extern fn sem_destroy(__sem: [*c]sem_t) c_int; - - /// int sem_getvalue(sem_t *restrict sem, int *restrict sval); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_getvalue.html - // pub extern fn sem_getvalue(noalias __sem: [*c]sem_t, noalias __sval: [*c]c_int) c_int; - - /// int sem_init(sem_t *sem, int pshared, unsigned value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_init.html - // pub extern fn sem_init(__sem: [*c]sem_t, __pshared: c_int, __value: c_uint) c_int; - - /// sem_t *sem_open(const char *name, int oflag, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_open.html - // pub extern fn sem_open(__name: [*c]const u8, __oflag: c_int, ...) [*c]sem_t; - - /// int sem_post(sem_t *sem); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_post.html - // pub extern fn sem_post(__sem: [*c]sem_t) c_int; - - /// int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict abstime); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_timedwait.html - // pub extern fn sem_timedwait(noalias __sem: [*c]sem_t, noalias __abstime: [*c]const struct_timespec) c_int; - - /// int sem_trywait(sem_t *sem); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_trywait.html - // pub extern fn sem_trywait(__sem: [*c]sem_t) c_int; - /// int sem_unlink(const char *name); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_unlink.html pub extern fn sem_unlink(name: [*:0]const u8) c_int; - /// int sem_wait(sem_t *sem); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_wait.html - // pub extern fn sem_wait(__sem: [*c]sem_t) c_int; - /// int semctl(int semid, int semnum, int cmd, ...); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semctl.html pub extern fn semctl(semid: c_int, semnum: c_int, cmd: c_int, ...) c_int; - /// int semget(key_t key, int nsems, int semflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semget.html - // pub extern fn semget(__key: key_t, __nsems: c_int, __semflg: c_int) c_int; - - /// int semop(int semid, struct sembuf *sops, size_t nsops); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semop.html - // pub extern fn semop(__semid: c_int, __sops: [*c]struct_sembuf, __nsops: usize) c_int; - /// ssize_t send(int socket, const void *buffer, size_t length, int flags); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/send.html pub extern fn send(fd: c_int, buffer: [*]const u8, length: usize, flags: c_int) isize; - /// ssize_t sendmsg(int socket, const struct msghdr *message, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sendmsg.html - // pub extern fn sendmsg(__fd: c_int, __message: [*c]const struct_msghdr, __flags: c_int) isize; - - /// ssize_t sendto(int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sendto.html - 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; - - /// void setbuf(FILE *restrict stream, char *restrict buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setbuf.html - pub extern fn setbuf(noalias __stream: [*c]FILE, noalias __buf: [*c]u8) void; - /// int setegid(gid_t gid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setegid.html pub extern fn setegid(gid: gid_t) c_int; - /// int setenv(const char *envname, const char *envval, int overwrite); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setenv.html - pub extern fn setenv(__name: [*c]const u8, __value: [*c]const u8, __replace: c_int) c_int; - /// int seteuid(uid_t uid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seteuid.html pub extern fn seteuid(uid: uid_t) c_int; @@ -4314,18 +2498,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sethostent.html pub extern fn sethostent(stayopen: c_int) void; - /// int setitimer(int which, const struct itimerval *restrict value, struct itimerval *restrict ovalue); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setitimer.html - // pub extern fn setitimer(__which: __itimer_which_t, noalias __new: [*c]const struct_itimerval, noalias __old: [*c]struct_itimerval) c_int; - - /// void setkey(const char *key); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setkey.html - pub const setkey = @compileError("TODO setkey"); - - /// char *setlocale(int category, const char *locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setlocale.html - pub extern fn setlocale(category: c_int, locale: [*:0]const u8) [*c]u8; - /// int setlogmask(int maskpri); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setlogmask.html pub extern fn setlogmask(maskpri: c_int) c_int; @@ -4334,18 +2506,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setnetent.html pub extern fn setnetent(stayopen: c_int) void; - /// int setpgid(pid_t pid, pid_t pgid); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpgid.html - // pub extern fn setpgid(__pid: __pid_t, __pgid: __pid_t) c_int; - /// pid_t setpgrp(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpgrp.html pub extern fn setpgrp() pid_t; - /// int setpriority(int which, id_t who, int value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpriority.html - // pub extern fn setpriority(__which: __priority_which_t, __who: id_t, __prio: c_int) c_int; - /// void setprotoent(int stayopen); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setprotoent.html pub extern fn setprotoent(stayopen: c_int) void; @@ -4362,10 +2526,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setreuid.html pub extern fn setreuid(ruid: uid_t, euid: uid_t) c_int; - /// int setrlimit(int resource, const struct rlimit *rlp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setrlimit.html - // pub extern fn setrlimit(__resource: __rlimit_resource_t, __rlimits: [*c]const struct_rlimit) c_int; - /// void setservent(int stayopen); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setservent.html pub extern fn setservent(stayopen: c_int) void; @@ -4378,10 +2538,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setsockopt.html pub extern fn setsockopt(fd: c_int, level: c_int, optname: c_int, optval: *const anyopaque, optlen: socklen_t) c_int; - /// char *setstate(char *state); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setstate.html - pub extern fn setstate(__statebuf: [*c]u8) [*c]u8; - /// int setuid(uid_t uid); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setuid.html pub extern fn setuid(uid: uid_t) c_int; @@ -4390,62 +2546,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setutxent.html pub extern fn setutxent() void; - /// int setvbuf(FILE *restrict stream, char *restrict buf, int type, size_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setvbuf.html - pub extern fn setvbuf(noalias __stream: [*c]FILE, noalias __buf: [*c]u8, __modes: c_int, __n: usize) c_int; - - /// int shm_open(const char *name, int oflag, mode_t mode); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shm_open.html - pub extern fn shm_open(__name: [*c]const u8, __oflag: c_int, __mode: mode_t) c_int; - /// int shm_unlink(const char *name); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shm_unlink.html pub extern fn shm_unlink(name: [*:0]const u8) c_int; - /// void *shmat(int shmid, const void *shmaddr, int shmflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmat.html - pub extern fn shmat(__shmid: c_int, __shmaddr: ?*const anyopaque, __shmflg: c_int) ?*anyopaque; - - /// int shmctl(int shmid, int cmd, struct shmid_ds *buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmctl.html - // pub extern fn shmctl(__shmid: c_int, __cmd: c_int, __buf: [*c]struct_shmid_ds) c_int; - - /// int shmdt(const void *shmaddr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmdt.html - pub extern fn shmdt(__shmaddr: ?*const anyopaque) c_int; - - /// int shmget(key_t key, size_t size, int shmflg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shmget.html - // pub extern fn shmget(__key: key_t, __size: usize, __shmflg: c_int) c_int; - /// int shutdown(int socket, int how); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shutdown.html pub extern fn shutdown(socket: c_int, how: c_int) c_int; - /// int sigaction(int sig, const struct sigaction *restrict act, struct sigaction *restrict oact); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaction.html - // pub extern fn sigaction(__sig: c_int, noalias __act: [*c]const struct_sigaction, noalias __oact: [*c]struct_sigaction) c_int; - - /// int sigaddset(sigset_t *set, int signo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaddset.html - // pub extern fn sigaddset(__set: [*c]sigset_t, __signo: c_int) c_int; - - /// int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigaltstack.html - // pub extern fn sigaltstack(noalias __ss: [*c]const stack_t, noalias __oss: [*c]stack_t) c_int; - - /// int sigdelset(sigset_t *set, int signo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigdelset.html - // pub extern fn sigdelset(__set: [*c]sigset_t, __signo: c_int) c_int; - - /// int sigemptyset(sigset_t *set); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigemptyset.html - // pub extern fn sigemptyset(__set: [*c]sigset_t) c_int; - - /// int sigfillset(sigset_t *set); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigfillset.html - // pub extern fn sigfillset(__set: [*c]sigset_t) c_int; - /// int sighold(int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sighold.html pub extern fn sighold(sig: c_int) c_int; @@ -4458,54 +2566,14 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/siginterrupt.html pub extern fn siginterrupt(sig: c_int, flag: c_int) c_int; - /// int sigismember(const sigset_t *set, int signo); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigismember.html - // pub extern fn sigismember(__set: [*c]const sigset_t, __signo: c_int) c_int; - - /// void (*signal(int sig, void (*func)(int)))(int); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/signal.html - // pub extern fn signal(__sig: c_int, __handler: __sighandler_t) __sighandler_t; - /// int sigpause(int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigpause.html pub extern fn sigpause(sig: c_int) c_int; - /// int sigpending(sigset_t *set); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigpending.html - // pub extern fn sigpending(__set: [*c]sigset_t) c_int; - - /// int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict oset); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigprocmask.html - // pub extern fn sigprocmask(__how: c_int, noalias __set: [*c]const sigset_t, noalias __oset: [*c]sigset_t) c_int; - - /// int sigqueue(pid_t pid, int signo, const union sigval value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigqueue.html - // pub extern fn sigqueue(__pid: __pid_t, __sig: c_int, __val: union_sigval) c_int; - /// int sigrelse(int sig); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigrelse.html pub extern fn sigrelse(sig: c_int) c_int; - /// void (*sigset(int sig, void (*disp)(int)))(int); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigset.html - pub const sigset = @compileError("TODO sigset"); - - /// int sigsuspend(const sigset_t *sigmask); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigsuspend.html - // pub extern fn sigsuspend(__set: [*c]const sigset_t) c_int; - - /// int sigtimedwait(const sigset_t *restrict set, siginfo_t *restrict info, const struct timespec *restrict timeout); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigtimedwait.html - // pub extern fn sigtimedwait(noalias __set: [*c]const sigset_t, noalias __info: [*c]siginfo_t, noalias __timeout: [*c]const struct_timespec) c_int; - - /// int sigwait(const sigset_t *restrict set, int *restrict sig); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigwait.html - // pub extern fn sigwait(noalias __set: [*c]const sigset_t, noalias __sig: [*c]c_int) c_int; - - /// int sigwaitinfo(const sigset_t *restrict set, siginfo_t *restrict info); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigwaitinfo.html - // pub extern fn sigwaitinfo(noalias __set: [*c]const sigset_t, noalias __info: [*c]siginfo_t) c_int; - /// double sin(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sin.html pub extern fn sin(x: f64) f64; @@ -4534,10 +2602,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sleep.html pub extern fn sleep(seconds: c_uint) c_uint; - /// int snprintf(char *restrict s, size_t n, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/snprintf.html - pub extern fn snprintf(__s: [*c]u8, __maxlen: c_ulong, __format: [*c]const u8, ...) c_int; - /// int sockatmark(int s); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sockatmark.html pub extern fn sockatmark(s: c_int) c_int; @@ -4550,10 +2614,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/socketpair.html pub extern fn socketpair(domain: c_int, type: c_int, protocol: c_int, fds: *[2]c_int) c_int; - /// int sprintf(char *restrict s, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sprintf.html - pub extern fn sprintf(__s: [*c]u8, __format: [*c]const u8, ...) c_int; - /// double sqrt(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sqrt.html pub extern fn sqrt(x: f64) f64; @@ -4578,222 +2638,10 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/srandom.html pub extern fn srandom(seed: c_uint) void; - /// int sscanf(const char *restrict s, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sscanf.html - pub extern fn sscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, ...) c_int; - - /// int stat(const char *restrict path, struct stat *restrict buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stat.html - // pub extern fn stat(noalias __file: [*c]const u8, noalias __buf: [*c]struct_stat) c_int; - - /// int statvfs(const char *restrict path, struct statvfs *restrict buf); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/statvfs.html - // pub extern fn statvfs(noalias __file: [*c]const u8, noalias __buf: [*c]struct_statvfs) c_int; - - /// char *stpcpy(char *restrict s1, const char *restrict s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stpcpy.html - pub extern fn stpcpy(__dest: [*c]u8, __src: [*c]const u8) [*c]u8; - - /// char *stpncpy(char *restrict s1, const char *restrict s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/stpncpy.html - pub extern fn stpncpy(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8; - - /// int strcasecmp(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcasecmp.html - pub extern fn strcasecmp(__s1: [*c]const u8, __s2: [*c]const u8) c_int; - - /// int strcasecmp_l(const char *s1, const char *s2, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcasecmp_l.html - pub extern fn strcasecmp_l(__s1: [*c]const u8, __s2: [*c]const u8, __loc: locale_t) c_int; - - /// char *strcat(char *restrict s1, const char *restrict s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcat.html - pub extern fn strcat(__dest: [*c]u8, __src: [*c]const u8) [*c]u8; - - /// char *strchr(const char *s, int c); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strchr.html - pub extern fn strchr(__s: [*c]const u8, __c: c_int) [*c]u8; - - /// int strcmp(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcmp.html - pub extern fn strcmp(__s1: [*c]const u8, __s2: [*c]const u8) c_int; - - /// int strcoll(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcoll.html - pub extern fn strcoll(__s1: [*c]const u8, __s2: [*c]const u8) c_int; - - /// int strcoll_l(const char *s1, const char *s2, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcoll_l.html - pub extern fn strcoll_l(__s1: [*c]const u8, __s2: [*c]const u8, __l: locale_t) c_int; - - /// char *strcpy(char *restrict s1, const char *restrict s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcpy.html - pub extern fn strcpy(__dest: [*c]u8, __src: [*c]const u8) [*c]u8; - - /// size_t strcspn(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strcspn.html - pub extern fn strcspn(__s: [*c]const u8, __reject: [*c]const u8) c_ulong; - - /// char *strdup(const char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strdup.html - pub extern fn strdup(__s: [*c]const u8) [*c]u8; - - /// char *strerror(int errnum); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror.html - pub extern fn strerror(__errnum: c_int) [*c]u8; - - /// char *strerror_l(int errnum, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror_l.html - pub extern fn strerror_l(__errnum: c_int, __l: locale_t) [*c]u8; - - /// int strerror_r(int errnum, char *strerrbuf, size_t buflen); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strerror_r.html - pub extern fn strerror_r(__errnum: c_int, __buf: [*c]u8, __buflen: usize) c_int; - - /// ssize_t strfmon(char *restrict s, size_t maxsize, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strfmon.html - pub extern fn strfmon(noalias __s: [*c]u8, __maxsize: usize, noalias __format: [*c]const u8, ...) isize; - - /// ssize_t strfmon_l(char *restrict s, size_t maxsize, locale_t locale, const char *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strfmon_l.html - pub extern fn strfmon_l(noalias __s: [*c]u8, __maxsize: usize, __loc: locale_t, noalias __format: [*c]const u8, ...) isize; - - /// size_t strftime(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strftime.html - // pub extern fn strftime(noalias __s: [*c]u8, __maxsize: usize, noalias __format: [*c]const u8, noalias __tp: [*c]const struct_tm) usize; - - /// size_t strftime_l(char *restrict s, size_t maxsize, const char *restrict format, const struct tm *restrict timeptr, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strftime_l.html - // 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; - /// size_t strlen(const char *s); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strlen.html pub extern fn strlen(s: [*:0]const u8) c_ulong; - /// int strncasecmp(const char *s1, const char *s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncasecmp.html - pub extern fn strncasecmp(__s1: [*c]const u8, __s2: [*c]const u8, __n: c_ulong) c_int; - - /// int strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncasecmp_l.html - pub extern fn strncasecmp_l(__s1: [*c]const u8, __s2: [*c]const u8, __n: usize, __loc: locale_t) c_int; - - /// char *strncat(char *restrict s1, const char *restrict s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncat.html - pub extern fn strncat(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8; - - /// int strncmp(const char *s1, const char *s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncmp.html - pub extern fn strncmp(__s1: [*c]const u8, __s2: [*c]const u8, __n: c_ulong) c_int; - - /// char *strncpy(char *restrict s1, const char *restrict s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strncpy.html - pub extern fn strncpy(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) [*c]u8; - - /// char *strndup(const char *s, size_t size); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strndup.html - pub extern fn strndup(__string: [*c]const u8, __n: c_ulong) [*c]u8; - - /// size_t strnlen(const char *s, size_t maxlen); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strnlen.html - pub extern fn strnlen(__string: [*c]const u8, __maxlen: usize) usize; - - /// char *strpbrk(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strpbrk.html - pub extern fn strpbrk(__s: [*c]const u8, __accept: [*c]const u8) [*c]u8; - - /// char *strptime(const char *restrict buf, const char *restrict format, struct tm *restrict tm); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strptime.html - pub const strptime = @compileError("TODO strptime"); - - /// char *strrchr(const char *s, int c); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strrchr.html - pub extern fn strrchr(__s: [*c]const u8, __c: c_int) [*c]u8; - - /// char *strsignal(int signum); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strsignal.html - pub extern fn strsignal(__sig: c_int) [*c]u8; - - /// size_t strspn(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strspn.html - pub extern fn strspn(__s: [*c]const u8, __accept: [*c]const u8) c_ulong; - - /// char *strstr(const char *s1, const char *s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strstr.html - pub extern fn strstr(__haystack: [*c]const u8, __needle: [*c]const u8) [*c]u8; - - /// double strtod(const char *restrict nptr, char **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtod.html - pub extern fn strtod(__nptr: [*c]const u8, __endptr: [*c][*c]u8) f64; - - /// float strtof(const char *restrict nptr, char **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtof.html - pub extern fn strtof(__nptr: [*c]const u8, __endptr: [*c][*c]u8) f32; - - /// intmax_t strtoimax(const char *restrict nptr, char **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoimax.html - pub extern fn strtoimax(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) intmax_t; - - /// char *strtok(char *restrict s1, const char *restrict s2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtok.html - pub extern fn strtok(__s: [*c]u8, __delim: [*c]const u8) [*c]u8; - - /// char *strtok_r(char *restrict s, const char *restrict sep, char **restrict lasts); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtok_r.html - pub extern fn strtok_r(noalias __s: [*c]u8, noalias __delim: [*c]const u8, noalias __save_ptr: [*c][*c]u8) [*c]u8; - - /// long strtol(const char *restrict str, char **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtol.html - pub extern fn strtol(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_long; - - /// long double strtold(const char *restrict nptr, char **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtold.html - pub extern fn strtold(__nptr: [*c]const u8, __endptr: [*c][*c]u8) c_longdouble; - - /// long long strtoll(const char *restrict str, char **restrict endptr, int base) - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoll.html - pub extern fn strtoll(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_longlong; - - /// unsigned long strtoul(const char *restrict str, char **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoul.html - pub extern fn strtoul(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_ulong; - - /// unsigned long long strtoull(const char *restrict str, char **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoull.html - pub extern fn strtoull(__nptr: [*c]const u8, __endptr: [*c][*c]u8, __base: c_int) c_ulonglong; - - /// uintmax_t strtoumax(const char *restrict nptr, char **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strtoumax.html - // pub extern fn strtoumax(noalias __nptr: [*c]const u8, noalias __endptr: [*c][*c]u8, __base: c_int) uintmax_t; - - /// size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strxfrm.html - pub extern fn strxfrm(__dest: [*c]u8, __src: [*c]const u8, __n: c_ulong) c_ulong; - - /// size_t strxfrm_l(char *restrict s1, const char *restrict s2, size_t n, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strxfrm_l.html - pub extern fn strxfrm_l(__dest: [*c]u8, __src: [*c]const u8, __n: usize, __l: locale_t) usize; - - /// void swab(const void *restrict src, void *restrict dest, ssize_t nbytes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swab.html - pub const swab = @compileError("TODO swab"); - - /// int swprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swprintf.html - pub extern fn swprintf(noalias __s: [*c]wchar_t, __n: usize, noalias __format: [*c]const wchar_t, ...) c_int; - - /// int swscanf(const wchar_t *restrict ws, const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/swscanf.html - pub extern fn swscanf(noalias __s: [*c]const wchar_t, noalias __format: [*c]const wchar_t, ...) c_int; - - /// int symlink(const char *path1, const char *path2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/symlink.html - pub extern fn symlink(__from: [*c]const u8, __to: [*c]const u8) c_int; - - /// int symlinkat(const char *path1, int fd, const char *path2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/symlinkat.html - pub extern fn symlinkat(__from: [*c]const u8, __tofd: c_int, __to: [*c]const u8) c_int; - /// void sync(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sync.html pub extern fn sync() void; @@ -4802,14 +2650,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sysconf.html pub extern fn sysconf(name: c_int) c_long; - /// void syslog(int priority, const char *message, ... /* arguments */); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/syslog.html - pub extern fn syslog(__pri: c_int, __fmt: [*c]const u8, ...) void; - - /// int system(const char *command); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/system.html - pub extern fn system(__command: [*c]const u8) c_int; - /// double tan(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tan.html pub extern fn tan(x: f64) f64; @@ -4846,10 +2686,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcflush.html pub extern fn tcflush(fd: c_int, queue_selector: c_int) c_int; - /// int tcgetattr(int fildes, struct termios *termios_p); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetattr.html - pub extern fn tcgetattr(fd: c_int, termios_p: *struct_termios) c_int; - /// pid_t tcgetpgrp(int fildes); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetpgrp.html pub extern fn tcgetpgrp(fd: c_int) pid_t; @@ -4862,30 +2698,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsendbreak.html pub extern fn tcsendbreak(fd: c_int, duration: c_int) c_int; - /// int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsetattr.html - pub extern fn tcsetattr(fd: c_int, optional_actions: c_int, termios_p: *const struct_termios) c_int; - - /// int tcsetpgrp(int fildes, pid_t pgid_id); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsetpgrp.html - // pub extern fn tcsetpgrp(__fd: c_int, __pgrp_id: __pid_t) c_int; - - /// void *tdelete(const void *restrict key, void **restrict rootp, int(*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tdelete.html - // pub extern fn tdelete(noalias __key: ?*const anyopaque, noalias __rootp: [*c]?*anyopaque, __compar: __compar_fn_t) ?*anyopaque; - - /// long telldir(DIR *dirp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/telldir.html - pub extern fn telldir(__dirp: ?*DIR) c_long; - - /// char *tempnam(const char *dir, const char *pfx); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tempnam.html - pub extern fn tempnam(__dir: [*c]const u8, __pfx: [*c]const u8) [*c]u8; - - /// void *tfind(const void *key, void *const *rootp, int(*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tfind.html - // pub extern fn tfind(__key: ?*const anyopaque, __rootp: [*c]const ?*anyopaque, __compar: __compar_fn_t) ?*anyopaque; - /// double tgamma(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgamma.html pub extern fn tgamma(x: f64) f64; @@ -4898,42 +2710,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgammal.html pub extern fn tgammal(x: c_longdouble) c_longdouble; - /// time_t time(time_t *tloc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/time.html - pub extern fn time(__timer: [*c]time_t) time_t; - - /// int timer_create(clockid_t clockid, struct sigevent *restrict evp, timer_t *restrict timerid); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_create.html - // pub extern fn timer_create(__clock_id: clockid_t, noalias __evp: [*c]struct_sigevent, noalias __timerid: [*c]timer_t) c_int; - - /// int timer_delete(timer_t timerid); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_delete.html - // pub extern fn timer_delete(__timerid: timer_t) c_int; - - /// int timer_getoverrun(timer_t timerid); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_getoverrun.html - // pub extern fn timer_getoverrun(__timerid: timer_t) c_int; - - /// int timer_gettime(timer_t timerid, struct itimerspec *value); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_gettime.html - // pub extern fn timer_gettime(__timerid: timer_t, __value: [*c]struct_itimerspec) c_int; - - /// int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict value, struct itimerspec *restrict ovalue); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/timer_settime.html - // pub extern fn timer_settime(__timerid: timer_t, __flags: c_int, noalias __value: [*c]const struct_itimerspec, noalias __ovalue: [*c]struct_itimerspec) c_int; - - /// clock_t times(struct tms *buffer); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/times.html - // pub extern fn times(__buffer: [*c]struct_tms) clock_t; - - /// FILE *tmpfile(void); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tmpfile.html - pub extern fn tmpfile() ?*FILE; - - /// char *tmpnam(char *s); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tmpnam.html - pub extern fn tmpnam(s: [*c]u8) [*c]u8; - /// int toascii(int c); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toascii.html pub extern fn toascii(c: c_int) c_int; @@ -4954,14 +2730,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toupper_l.html pub extern fn toupper_l(c: c_int, locale: locale_t) c_int; - /// wint_t towctrans(wint_t wc, wctrans_t desc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towctrans.html - // pub extern fn towctrans(__wc: wint_t, __desc: wctrans_t) wint_t; - - /// wint_t towctrans_l(wint_t wc, wctrans_t desc, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towctrans_l.html - // pub extern fn towctrans_l(__wc: wint_t, __desc: wctrans_t, __locale: locale_t) wint_t; - /// wint_t towlower(wint_t wc); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towlower.html pub extern fn towlower(wc: wint_t) wint_t; @@ -4982,10 +2750,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/trunc.html pub extern fn trunc(x: f64) f64; - /// int truncate(const char *path, off_t length); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncate.html - pub extern fn truncate(__file: [*c]const u8, __length: off_t) c_int; - /// float truncf(float x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncf.html pub extern fn truncf(x: f32) f32; @@ -4994,22 +2758,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncl.html pub extern fn truncl(x: c_longdouble) c_longdouble; - /// void *tsearch(const void *key, void **rootp, int (*compar)(const void *, const void *)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tsearch.html - // pub extern fn tsearch(__key: ?*const anyopaque, __rootp: [*c]?*anyopaque, __compar: __compar_fn_t) ?*anyopaque; - - /// char *ttyname(int fildes); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ttyname.html - pub extern fn ttyname(__fd: c_int) [*c]u8; - - /// int ttyname_r(int fildes, char *name, size_t namesize); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ttyname_r.html - pub extern fn ttyname_r(__fd: c_int, __buf: [*c]u8, __buflen: usize) c_int; - - /// void twalk(const void *root, void (*action)(const void *, VISIT, int)); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/twalk.html - // pub extern fn twalk(__root: ?*const anyopaque, __action: __action_fn_t) void; - /// void tzset(void); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tzset.html pub extern fn tzset() void; @@ -5022,22 +2770,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/umask.html pub extern fn umask(cmask: mode_t) mode_t; - /// int uname(struct utsname *name); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/uname.html - // pub extern fn uname(__name: [*c]struct_utsname) c_int; - - /// int ungetc(int c, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ungetc.html - pub extern fn ungetc(__c: c_int, __stream: [*c]FILE) c_int; - - /// wint_t ungetwc(wint_t wc, FILE *stream); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ungetwc.html - // pub extern fn ungetwc(__wc: wint_t, __stream: [*c]__FILE) wint_t; - - /// int unlink(const char *path); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlink.html - pub extern fn unlink(__name: [*c]const u8) c_int; - /// int unlinkat(int fd, const char *path, int flag); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlinkat.html pub extern fn unlinkat(fd: c_int, name: [*:0]const u8, flag: c_int) c_int; @@ -5046,334 +2778,22 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlockpt.html pub extern fn unlockpt(fd: c_int) c_int; - /// int unsetenv(const char *name); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unsetenv.html - pub extern fn unsetenv(__name: [*c]const u8) c_int; - /// locale_t uselocale(locale_t newloc); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/uselocale.html pub extern fn uselocale(newloc: locale_t) locale_t; - /// int utime(const char *path, const struct utimbuf *times); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utime.html - // pub extern fn utime(__file: [*c]const u8, __file_times: [*c]const struct_utimbuf) c_int; - - /// int utimensat(int fd, const char *path, const struct timespec times[2], int flag); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utimensat.html - pub extern fn utimensat(__fd: c_int, __path: [*c]const u8, __times: [*c]const struct_timespec, __flags: c_int) c_int; - - /// int utimes(const char *path, const struct timeval times[2]); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/utimes.html - // pub extern fn utimes(__file: [*c]const u8, __tvp: [*c]const struct_timeval) c_int; - - /// type va_arg(va_list ap, type); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_arg.html - pub const va_arg = @compileError("TODO va_arg"); - - /// void va_copy(va_list dest, va_list src); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_copy.html - pub const va_copy = @compileError("TODO va_copy"); - - /// void va_end(va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_end.html - pub const va_end = @compileError("TODO va_end"); - - /// void va_start(va_list ap, argN); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/va_start.html - pub const va_start = @compileError("TODO va_start"); - - /// int vdprintf(int fildes, const char *restrict format, va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vdprintf.html - // pub extern fn vdprintf(__fd: c_int, noalias __fmt: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vfprintf(FILE *restrict stream, const char *restrict format, va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfprintf.html - // pub extern fn vfprintf(__s: [*c]FILE, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vfscanf(FILE *restrict stream, const char *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfscanf.html - // pub extern fn vfscanf(noalias __s: [*c]FILE, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vfwprintf(FILE *restrict stream, const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfwprintf.html - // pub extern fn vfwprintf(noalias __s: [*c]__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vfwscanf(FILE *restrict stream, const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vfwscanf.html - // pub extern fn vfwscanf(noalias __s: [*c]__FILE, noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vprintf(const char *restrict format, va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vprintf.html - // pub extern fn vprintf(__format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vscanf(const char *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vscanf.html - // pub extern fn vscanf(noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vsnprintf(char *restrict s, size_t n, const char *restrict format, va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsnprintf.html - // pub extern fn vsnprintf(__s: [*c]u8, __maxlen: c_ulong, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vsprintf(char *restrict s, const char *restrict format, va_list ap); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsprintf.html - // pub extern fn vsprintf(__s: [*c]u8, __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vsscanf(const char *restrict s, const char *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vsscanf.html - // pub extern fn vsscanf(noalias __s: [*c]const u8, noalias __format: [*c]const u8, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vswprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vswprintf.html - // 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; - - /// int vswscanf(const wchar_t *restrict ws, const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vswscanf.html - // 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; - - /// int vwprintf(const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vwprintf.html - // pub extern fn vwprintf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int; - - /// int vwscanf(const wchar_t *restrict format, va_list arg); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/vwscanf.html - // pub extern fn vwscanf(noalias __format: [*c]const wchar_t, __arg: [*c]struct___va_list_tag_37) c_int; - - /// pid_t wait(int *stat_loc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wait.html - // pub extern fn wait(__stat_loc: [*c]c_int) __pid_t; - - /// int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/waitid.html - // pub extern fn waitid(__idtype: idtype_t, __id: __id_t, __infop: [*c]siginfo_t, __options: c_int) c_int; - /// pid_t waitpid(pid_t pid, int *stat_loc, int options); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/waitpid.html pub extern fn waitpid(pid: pid_t, stat_loc: ?*c_int, options: c_int) pid_t; - /// wchar_t *wcpcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcpcpy.html - pub extern fn wcpcpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; - - /// wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restrict ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcpncpy.html - pub extern fn wcpncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; - - /// size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcrtomb.html - // pub extern fn wcrtomb(noalias __s: [*c]u8, __wc: wchar_t, noalias __ps: [*c]mbstate_t) usize; - - /// int wcscasecmp(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscasecmp.html - pub extern fn wcscasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int; - - /// int wcscasecmp_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscasecmp_l.html - pub extern fn wcscasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int; - - /// wchar_t *wcscat(wchar_t *restrict ws1, const wchar_t *restrict ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscat.html - pub extern fn wcscat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; - - /// wchar_t *wcschr(const wchar_t *ws, wchar_t wc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcschr.html - pub extern fn wcschr(__wcs: [*c]const c_int, __wc: c_int) [*c]c_int; - - /// int wcscmp(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscmp.html - pub extern fn wcscmp(__s1: [*c]const c_int, __s2: [*c]const c_int) c_int; - - /// int wcscoll(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscoll.html - pub extern fn wcscoll(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t) c_int; - - /// int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscoll_l.html - pub extern fn wcscoll_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __loc: locale_t) c_int; - - /// wchar_t *wcscpy(wchar_t *restrict ws1, const wchar_t *restrict ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscpy.html - pub extern fn wcscpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t) [*c]wchar_t; - - /// size_t wcscspn(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcscspn.html - pub extern fn wcscspn(__wcs: [*c]const wchar_t, __reject: [*c]const wchar_t) usize; - - /// wchar_t *wcsdup(const wchar_t *string); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsdup.html - pub extern fn wcsdup(__s: [*c]const wchar_t) [*c]wchar_t; - - /// size_t wcsftime(wchar_t *restrict wcs, size_t maxsize, const wchar_t *restrict format, const struct tm *restrict timeptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsftime.html - // pub extern fn wcsftime(noalias __s: [*c]wchar_t, __maxsize: usize, noalias __format: [*c]const wchar_t, noalias __tp: [*c]const struct_tm) usize; - - /// size_t wcslen(const wchar_t *ws); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcslen.html - pub extern fn wcslen(__s: [*c]const c_int) c_ulong; - - /// int wcsncasecmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncasecmp.html - pub extern fn wcsncasecmp(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize) c_int; - - /// int wcsncasecmp_l(const wchar_t *ws1, const wchar_t *ws2, size_t n, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncasecmp_l.html - pub extern fn wcsncasecmp_l(__s1: [*c]const wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) c_int; - - /// wchar_t *wcsncat(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncat.html - pub extern fn wcsncat(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; - - /// int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncmp.html - pub extern fn wcsncmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int; - - /// wchar_t *wcsncpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsncpy.html - pub extern fn wcsncpy(noalias __dest: [*c]wchar_t, noalias __src: [*c]const wchar_t, __n: usize) [*c]wchar_t; - - /// size_t wcsnlen(const wchar_t *ws, size_t maxlen); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsnlen.html - pub extern fn wcsnlen(__s: [*c]const wchar_t, __maxlen: usize) usize; - - /// size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict src, size_t nwc, size_t len, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsnrtombs.html - // 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; - - /// wchar_t *wcspbrk(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcspbrk.html - pub extern fn wcspbrk(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) [*c]wchar_t; - - /// wchar_t *wcsrchr(const wchar_t *ws, wchar_t wc); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsrchr.html - pub extern fn wcsrchr(__wcs: [*c]const wchar_t, __wc: wchar_t) [*c]wchar_t; - - /// size_t wcsrtombs(char *restrict dst, const wchar_t **restrict src, size_t len, mbstate_t *restrict ps); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsrtombs.html - // pub extern fn wcsrtombs(noalias __dst: [*c]u8, noalias __src: [*c][*c]const wchar_t, __len: usize, noalias __ps: [*c]mbstate_t) usize; - - /// size_t wcsspn(const wchar_t *ws1, const wchar_t *ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsspn.html - pub extern fn wcsspn(__wcs: [*c]const wchar_t, __accept: [*c]const wchar_t) usize; - - /// wchar_t *wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict ws2); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsstr.html - pub extern fn wcsstr(__haystack: [*c]const wchar_t, __needle: [*c]const wchar_t) [*c]wchar_t; - - /// double wcstod(const wchar_t *restrict nptr, wchar_t **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstod.html - pub extern fn wcstod(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) f64; - - /// float wcstof(const wchar_t *restrict nptr, wchar_t **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstof.html - pub extern fn wcstof(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) f32; - - /// intmax_t wcstoimax(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoimax.html - // pub extern fn wcstoimax(noalias __nptr: [*c]const __gwchar_t, noalias __endptr: [*c][*c]__gwchar_t, __base: c_int) intmax_t; - - /// wchar_t *wcstok(wchar_t *restrict ws1, const wchar_t *restrict ws2, wchar_t **restrict ptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstok.html - pub extern fn wcstok(noalias __s: [*c]wchar_t, noalias __delim: [*c]const wchar_t, noalias __ptr: [*c][*c]wchar_t) [*c]wchar_t; - - /// long wcstol(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstol.html - pub extern fn wcstol(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_long; - - /// long double wcstold(const wchar_t *restrict nptr, wchar_t **restrict endptr); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstold.html - pub extern fn wcstold(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t) c_longdouble; - - /// long long wcstoll(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoll.html - pub extern fn wcstoll(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_longlong; - - /// size_t wcstombs(char *restrict s, const wchar_t *restrict pwcs, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstombs.html - pub extern fn wcstombs(noalias __s: [*c]u8, noalias __pwcs: [*c]const wchar_t, __n: usize) usize; - - /// unsigned long wcstoul(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoul.html - pub extern fn wcstoul(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_ulong; - - /// unsigned long long wcstoull(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoull.html - pub extern fn wcstoull(noalias __nptr: [*c]const wchar_t, noalias __endptr: [*c][*c]wchar_t, __base: c_int) c_ulonglong; - - /// uintmax_t wcstoumax(const wchar_t *restrict nptr, wchar_t **restrict endptr, int base); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcstoumax.html - // pub extern fn wcstoumax(noalias __nptr: [*c]const __gwchar_t, noalias __endptr: [*c][*c]__gwchar_t, __base: c_int) uintmax_t; - - /// int wcswidth(const wchar_t *pwcs, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcswidth.html - pub const wcswidth = @compileError("TODO wcswidth"); - - /// size_t wcsxfrm(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsxfrm.html - pub extern fn wcsxfrm(noalias __s1: [*c]wchar_t, noalias __s2: [*c]const wchar_t, __n: usize) usize; - - /// size_t wcsxfrm_l(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcsxfrm_l.html - pub extern fn wcsxfrm_l(__s1: [*c]wchar_t, __s2: [*c]const wchar_t, __n: usize, __loc: locale_t) usize; - /// int wctob(wint_t c); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctob.html pub extern fn wctob(c: wint_t) c_int; - /// int wctomb(char *s, wchar_t wchar); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctomb.html - pub extern fn wctomb(__s: [*c]u8, __wchar: wchar_t) c_int; - - /// wctrans_t wctrans(const char *charclass); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctrans.html - // pub extern fn wctrans(__property: [*c]const u8) wctrans_t; - - /// wctrans_t wctrans_l(const char *charclass, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctrans_l.html - // pub extern fn wctrans_l(__property: [*c]const u8, __locale: locale_t) wctrans_t; - - /// wctype_t wctype(const char *property); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctype.html - // pub extern fn wctype(__property: [*c]const u8) wctype_t; - - /// wctype_t wctype_l(const char *property, locale_t locale); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctype_l.html - // pub extern fn wctype_l(__property: [*c]const u8, __locale: locale_t) wctype_t; - /// int wcwidth(wchar_t wc); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html pub extern fn wcwidth(wc: wchar_t) c_int; - /// wchar_t *wmemchr(const wchar_t *ws, wchar_t wc, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemchr.html - pub extern fn wmemchr(__s: [*c]const c_int, __c: c_int, __n: c_ulong) [*c]c_int; - - /// int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemcmp.html - pub extern fn wmemcmp(__s1: [*c]const c_int, __s2: [*c]const c_int, __n: c_ulong) c_int; - - /// wchar_t *wmemcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemcpy.html - pub extern fn wmemcpy(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int; - - /// wchar_t *wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemmove.html - pub extern fn wmemmove(__s1: [*c]c_int, __s2: [*c]const c_int, __n: c_ulong) [*c]c_int; - - /// wchar_t *wmemset(wchar_t *ws, wchar_t wc, size_t n); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wmemset.html - pub extern fn wmemset(__s: [*c]wchar_t, __c: wchar_t, __n: usize) [*c]wchar_t; - - /// int wordexp(const char *restrict words, wordexp_t *restrict pwordexp, int flags); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wordexp.html - // pub extern fn wordexp(noalias __words: [*c]const u8, noalias __pwordexp: [*c]wordexp_t, __flags: c_int) c_int; - - /// void wordfree(wordexp_t *pwordexp); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wordfree.html - // pub extern fn wordfree(__wordexp: [*c]wordexp_t) void; - - /// int wprintf(const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wprintf.html - pub extern fn wprintf(noalias __format: [*c]const wchar_t, ...) c_int; - /// ssize_t write(int fildes, const void *buf, size_t nbyte); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/write.html pub extern fn write(fd: c_int, buf: *const anyopaque, n: usize) isize; @@ -5382,10 +2802,6 @@ pub const libc = struct { /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/writev.html pub extern fn writev(fd: c_int, iovec: [*]const struct_iovec, count: c_int) isize; - /// int wscanf(const wchar_t *restrict format, ...); - /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wscanf.html - pub extern fn wscanf(noalias __format: [*c]const wchar_t, ...) c_int; - /// double y0(double x); /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html pub extern fn y0(x: f64) f64;