authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-29 02:46:14 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-29 02:46:14 -08:00
log141f366bc6dd4f7f512589a1bd17d1b950e3a985
treef9e41b4150b608c19ff5735584390ddad9bd2632
parent149f2a06519fc8678aebfc761134e0444d6d1342

add more libc


1 files changed, 1068 insertions(+), 0 deletions(-)

mod.zig+1068
......@@ -1366,6 +1366,26 @@ pub const libc = struct {
13661366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fpathconf.html
13671367 pub extern fn fpathconf(fildes: c_int, name: c_int) c_long;
13681368
1369 /// void free(void *ptr);
1370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/free.html
1371 pub extern fn free(ptr: ?*anyopaque) void;
1372
1373 /// void freelocale(locale_t locobj);
1374 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/freelocale.html
1375 pub extern fn freelocale(locobj: locale_t) void;
1376
1377 /// double frexp(double num, int *exp);
1378 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexp.html
1379 pub extern fn frexp(x: f64, exp: *c_int) f64;
1380
1381 /// float frexpf(float num, int *exp);
1382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexpf.html
1383 pub extern fn frexpf(x: f32, exp: *c_int) f32;
1384
1385 /// long double frexpl(long double num, int *exp);
1386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/frexpl.html
1387 pub extern fn frexpl(x: c_longdouble, exp: *c_int) c_longdouble;
1388
13691389 /// int fstat(int fildes, struct stat *buf);
13701390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstat.html
13711391 pub extern fn fstat(fd: c_int, buf: *struct_stat) c_int;
......@@ -1374,6 +1394,10 @@ pub const libc = struct {
13741394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fstatat.html
13751395 pub extern fn fstatat(fd: c_int, noalias path: [*:0]const u8, noalias buf: *struct_stat, flag: c_int) c_int;
13761396
1397 /// int fsync(int fildes);
1398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/fsync.html
1399 pub extern fn fsync(fd: c_int) c_int;
1400
13771401 /// int getchar(void);
13781402 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getchar.html
13791403 pub extern fn getchar() c_int;
......@@ -1402,10 +1426,38 @@ pub const libc = struct {
14021426 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrent.html
14031427 pub extern fn getgrent() ?*struct_group;
14041428
1429 /// struct group *getgrgid(gid_t gid);
1430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrgid.html
1431 pub extern fn getgrgid(gid: gid_t) ?*struct_group;
1432
1433 /// struct group *getgrnam(const char *name);
1434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getgrnam.html
1435 pub extern fn getgrnam(name: [*:0]const u8) ?*struct_group;
1436
1437 /// struct hostent *gethostent(void);
1438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostent.html
1439 pub extern fn gethostent() ?*struct_hostent;
1440
14051441 /// long gethostid(void);
14061442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostid.html
14071443 pub extern fn gethostid() c_long;
14081444
1445 /// int gethostname(char *name, size_t namelen);
1446 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gethostname.html
1447 pub extern fn gethostname(name: [*:0]u8, len: usize) c_int;
1448
1449 /// struct netent *getnetbyaddr(uint32_t net, int type);
1450 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetbyaddr.html
1451 pub extern fn getnetbyaddr(net: u32, type: c_int) ?*struct_netent;
1452
1453 /// struct netent *getnetbyname(const char *name);
1454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetbyname.html
1455 pub extern fn getnetbyname(name: [*:0]const u8) ?*struct_netent;
1456
1457 /// struct netent *getnetent(void);
1458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getnetent.html
1459 pub extern fn getnetent() ?*struct_netent;
1460
14091461 /// pid_t getpgid(pid_t pid);
14101462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpgid.html
14111463 pub extern fn getpgid(pid: pid_t) pid_t;
......@@ -1422,6 +1474,14 @@ pub const libc = struct {
14221474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getppid.html
14231475 pub extern fn getppid() pid_t;
14241476
1477 /// struct protoent *getprotobyname(const char *name);
1478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotobyname.html
1479 pub extern fn getprotobyname(name: [*:0]const u8) ?*struct_protoent;
1480
1481 /// struct protoent *getprotobynumber(int proto);
1482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotobynumber.html
1483 pub extern fn getprotobynumber(proto: c_int) ?*struct_protoent;
1484
14251485 /// struct protoent *getprotoent(void);
14261486 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getprotoent.html
14271487 pub extern fn getprotoent() ?*struct_protoent;
......@@ -1430,6 +1490,18 @@ pub const libc = struct {
14301490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwent.html
14311491 pub extern fn getpwent() ?*struct_passwd;
14321492
1493 /// struct passwd *getpwnam(const char *name);
1494 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwnam.html
1495 pub extern fn getpwnam(name: [*:0]const u8) ?*struct_passwd;
1496
1497 /// struct passwd *getpwuid(uid_t uid);
1498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getpwuid.html
1499 pub extern fn getpwuid(uid: uid_t) ?*struct_passwd;
1500
1501 /// char *gets(char *s);
1502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/gets.html
1503 pub extern fn gets(s: [*]u8) [*:0]u8;
1504
14331505 /// struct servent *getservent(void);
14341506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getservent.html
14351507 pub extern fn getservent() ?*struct_servent;
......@@ -1442,18 +1514,1014 @@ pub const libc = struct {
14421514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getuid.html
14431515 pub extern fn getuid() uid_t;
14441516
1517 /// struct utmpx *getutxent(void);
1518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getutxent.html
1519 pub extern fn getutxent() ?*struct_utmpx;
1520
1521 /// wint_t getwchar(void);
1522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/getwchar.html
1523 pub extern fn getwchar() wint_t;
1524
1525 /// int grantpt(int fildes);
1526 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/grantpt.html
1527 pub extern fn grantpt(fd: c_int) c_int;
1528
1529 /// void hdestroy(void);
1530 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hdestroy.html
1531 pub extern fn hdestroy() void;
1532
1533 /// uint32_t htonl(uint32_t hostlong);
1534 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/htonl.html
1535 pub extern fn htonl(hostlong: u32) u32;
1536
1537 /// uint16_t htons(uint16_t hostshort);
1538 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/htons.html
1539 pub extern fn htons(hostshort: u16) u16;
1540
1541 /// double hypot(double x, double y);
1542 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hypot.html
1543 pub extern fn hypot(x: f64, y: f64) f64;
1544
1545 /// float hypotf(float x, float y);
1546 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hypotf.html
1547 pub extern fn hypotf(x: f32, y: f32) f32;
1548
1549 /// long double hypotl(long double x, long double y);
1550 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/hypotl.html
1551 pub extern fn hypotl(x: c_longdouble, y: c_longdouble) c_longdouble;
1552
1553 /// void if_freenameindex(struct if_nameindex *ptr);
1554 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_freenameindex.html
1555 pub extern fn if_freenameindex(ptr: *struct_if_nameindex) void;
1556
1557 /// struct if_nameindex *if_nameindex(void);
1558 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_nameindex.html
1559 pub extern fn if_nameindex() ?*struct_if_nameindex;
1560
1561 /// unsigned if_nametoindex(const char *ifname);
1562 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/if_nametoindex.html
1563 pub extern fn if_nametoindex(ifname: [*:0]const u8) c_uint;
1564
1565 /// int ilogb(double x);
1566 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ilogb.html
1567 pub extern fn ilogb(x: f64) c_int;
1568
1569 /// int ilogbf(float x);
1570 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ilogbf.html
1571 pub extern fn ilogbf(x: f32) c_int;
1572
1573 /// int ilogbl(long double x);
1574 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ilogbl.html
1575 pub extern fn ilogbl(x: c_longdouble) c_int;
1576
1577 /// intmax_t imaxabs(intmax_t j);
1578 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/imaxabs.html
1579 pub extern fn imaxabs(j: intmax_t) intmax_t;
1580
1581 /// void insque(void *element, void *pred);
1582 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/insque.html
1583 pub extern fn insque(elem: *anyopaque, prev: ?*anyopaque) void;
1584
1585 /// int isalnum(int c);
1586 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalnum.html
1587 pub extern fn isalnum(c: c_int) c_int;
1588
1589 /// int isalnum_l(int c, locale_t locale);
1590 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalnum_l.html
1591 pub extern fn isalnum_l(c: c_int, locale: locale_t) c_int;
1592
1593 /// int isalpha(int c);
1594 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalpha.html
1595 pub extern fn isalpha(c: c_int) c_int;
1596
1597 /// int isalpha_l(int c, locale_t locale);
1598 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isalpha_l.html
1599 pub extern fn isalpha_l(c: c_int, locale: locale_t) c_int;
1600
1601 /// int isascii(int c);
1602 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isascii.html
1603 pub extern fn isascii(c: c_int) c_int;
1604
1605 /// int isastream(int fildes);
1606 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isastream.html
1607 pub extern fn isastream(fd: c_int) c_int;
1608
1609 /// int isatty(int fildes);
1610 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isatty.html
1611 pub extern fn isatty(fd: c_int) c_int;
1612
1613 /// int isblank(int c);
1614 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isblank.html
1615 pub extern fn isblank(c: c_int) c_int;
1616
1617 /// int isblank_l(int c, locale_t locale);
1618 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isblank_l.html
1619 pub extern fn isblank_l(c: c_int, locale: locale_t) c_int;
1620
1621 /// int iscntrl(int c);
1622 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iscntrl.html
1623 pub extern fn iscntrl(c: c_int) c_int;
1624
1625 /// int iscntrl_l(int c, locale_t locale);
1626 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iscntrl_l.html
1627 pub extern fn iscntrl_l(c: c_int, locale: locale_t) c_int;
1628
1629 /// int isdigit(int c);
1630 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isdigit.html
1631 pub extern fn isdigit(c: c_int) c_int;
1632
1633 /// int isdigit_l(int c, locale_t locale);
1634 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isdigit_l.html
1635 pub extern fn isdigit_l(c: c_int, locale: locale_t) c_int;
1636
1637 /// int isgraph(int c);
1638 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isgraph.html
1639 pub extern fn isgraph(c: c_int) c_int;
1640
1641 /// int isgraph_l(int c, locale_t locale);
1642 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isgraph_l.html
1643 pub extern fn isgraph_l(c: c_int, locale: locale_t) c_int;
1644
1645 /// int islower(int c);
1646 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/islower.html
1647 pub extern fn islower(c: c_int) c_int;
1648
1649 /// int islower_l(int c, locale_t locale);
1650 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/islower_l.html
1651 pub extern fn islower_l(c: c_int, locale: locale_t) c_int;
1652
1653 /// int isprint(int c);
1654 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isprint.html
1655 pub extern fn isprint(c: c_int) c_int;
1656
1657 /// int isprint_l(int c, locale_t locale);
1658 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isprint_l.html
1659 pub extern fn isprint_l(c: c_int, locale: locale_t) c_int;
1660
1661 /// int ispunct(int c);
1662 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ispunct.html
1663 pub extern fn ispunct(c: c_int) c_int;
1664
1665 /// int ispunct_l(int c, locale_t locale);
1666 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ispunct_l.html
1667 pub extern fn ispunct_l(c: c_int, locale: locale_t) c_int;
1668
1669 /// int isspace(int c);
1670 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isspace.html
1671 pub extern fn isspace(c: c_int) c_int;
1672
1673 /// int isspace_l(int c, locale_t locale);
1674 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isspace_l.html
1675 pub extern fn isspace_l(c: c_int, locale: locale_t) c_int;
1676
1677 /// int isupper(int c);
1678 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isupper.html
1679 pub extern fn isupper(c: c_int) c_int;
1680
1681 /// int isupper_l(int c, locale_t locale);
1682 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isupper_l.html
1683 pub extern fn isupper_l(c: c_int, locale: locale_t) c_int;
1684
1685 /// int iswalnum(wint_t wc);
1686 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswalnum.html
1687 pub extern fn iswalnum(wc: wint_t) c_int;
1688
1689 /// int iswalnum_l(wint_t wc, locale_t locale);
1690 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswalnum_l.html
1691 pub extern fn iswalnum_l(wc: wint_t, locale: locale_t) c_int;
1692
1693 /// int iswalpha(wint_t wc);
1694 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswalpha.html
1695 pub extern fn iswalpha(wc: wint_t) c_int;
1696
1697 /// int iswalpha_l(wint_t wc, locale_t locale);
1698 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswalpha_l.html
1699 pub extern fn iswalpha_l(wc: wint_t, locale: locale_t) c_int;
1700
1701 /// int iswblank(wint_t wc);
1702 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswblank.html
1703 pub extern fn iswblank(wc: wint_t) c_int;
1704
1705 /// int iswblank_l(wint_t wc, locale_t locale);
1706 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswblank_l.html
1707 pub extern fn iswblank_l(wc: wint_t, locale: locale_t) c_int;
1708
1709 /// int iswcntrl(wint_t wc);
1710 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswcntrl.html
1711 pub extern fn iswcntrl(wc: wint_t) c_int;
1712
1713 /// int iswcntrl_l(wint_t wc, locale_t locale);
1714 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswcntrl_l.html
1715 pub extern fn iswcntrl_l(wc: wint_t, locale: locale_t) c_int;
1716
1717 /// int iswdigit(wint_t wc);
1718 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswdigit.html
1719 pub extern fn iswdigit(wc: wint_t) c_int;
1720
1721 /// int iswdigit_l(wint_t wc, locale_t locale);
1722 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswdigit_l.html
1723 pub extern fn iswdigit_l(wc: wint_t, locale: locale_t) c_int;
1724
1725 /// int iswgraph(wint_t wc);
1726 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswgraph.html
1727 pub extern fn iswgraph(wc: wint_t) c_int;
1728
1729 /// int iswgraph_l(wint_t wc, locale_t locale);
1730 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswgraph_l.html
1731 pub extern fn iswgraph_l(wc: wint_t, locale: locale_t) c_int;
1732
1733 /// int iswlower(wint_t wc);
1734 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswlower.html
1735 pub extern fn iswlower(wc: wint_t) c_int;
1736
1737 /// int iswlower_l(wint_t wc, locale_t locale);
1738 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswlower_l.html
1739 pub extern fn iswlower_l(wc: wint_t, locale: locale_t) c_int;
1740
1741 /// int iswprint(wint_t wc);
1742 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswprint.html
1743 pub extern fn iswprint(wc: wint_t) c_int;
1744
1745 /// int iswprint_l(wint_t wc, locale_t locale);
1746 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswprint_l.html
1747 pub extern fn iswprint_l(wc: wint_t, locale: locale_t) c_int;
1748
1749 /// int iswpunct(wint_t wc);
1750 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswpunct.html
1751 pub extern fn iswpunct(wc: wint_t) c_int;
1752
1753 /// int iswpunct_l(wint_t wc, locale_t locale);
1754 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswpunct_l.html
1755 pub extern fn iswpunct_l(wc: wint_t, locale: locale_t) c_int;
1756
1757 /// int iswspace(wint_t wc);
1758 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswspace.html
1759 pub extern fn iswspace(wc: wint_t) c_int;
1760
1761 /// int iswspace_l(wint_t wc, locale_t locale);
1762 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswspace_l.html
1763 pub extern fn iswspace_l(wc: wint_t, locale: locale_t) c_int;
1764
1765 /// int iswupper(wint_t wc);
1766 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswupper.html
1767 pub extern fn iswupper(wc: wint_t) c_int;
1768
1769 /// int iswupper_l(wint_t wc, locale_t locale);
1770 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswupper_l.html
1771 pub extern fn iswupper_l(wc: wint_t, locale: locale_t) c_int;
1772
1773 /// int iswxdigit(wint_t wc);
1774 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswxdigit.html
1775 pub extern fn iswxdigit(wc: wint_t) c_int;
1776
1777 /// int iswxdigit_l(wint_t wc, locale_t locale);
1778 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/iswxdigit_l.html
1779 pub extern fn iswxdigit_l(wc: wint_t, locale: locale_t) c_int;
1780
1781 /// int isxdigit(int c);
1782 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isxdigit.html
1783 pub extern fn isxdigit(c: c_int) c_int;
1784
1785 /// int isxdigit_l(int c, locale_t locale);
1786 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/isxdigit_l.html
1787 pub extern fn isxdigit_l(c: c_int, locale: locale_t) c_int;
1788
1789 /// double j0(double x);
1790 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/j0.html
1791 pub extern fn j0(x: f64) f64;
1792
1793 /// double j1(double x);
1794 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/j1.html
1795 pub extern fn j1(x: f64) f64;
1796
1797 /// double jn(int n, double x);
1798 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/jn.html
1799 pub extern fn jn(n: c_int, x: f64) f64;
1800
1801 /// long labs(long i);
1802 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/labs.html
1803 pub extern fn labs(i: c_long) c_long;
1804
1805 /// double ldexp(double x, int exp);
1806 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexp.html
1807 pub extern fn ldexp(x: f64, exp: c_int) f64;
1808
1809 /// float ldexpf(float x, int exp);
1810 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ldexpf.html
1811 pub extern fn ldexpf(x: f32, exp: c_int) f32;
1812
1813 /// double lgamma(double x);
1814 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgamma.html
1815 pub extern fn lgamma(x: f64) f64;
1816
1817 /// float lgammaf(float x);
1818 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgammaf.html
1819 pub extern fn lgammaf(x: f32) f32;
1820
1821 /// long double lgammal(long double x);
1822 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lgammal.html
1823 pub extern fn lgammal(x: c_longdouble) c_longdouble;
1824
1825 /// int listen(int socket, int backlog);
1826 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/listen.html
1827 pub extern fn listen(socket: c_int, backlog: c_int) c_int;
1828
1829 /// long long llabs(long long i);
1830 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llabs.html
1831 pub extern fn llabs(x: c_longlong) c_longlong;
1832
1833 /// long long llrint(double x);
1834 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llrint.html
1835 pub extern fn llrint(x: f64) c_longlong;
1836
1837 /// long long llrintf(float x);
1838 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llrintf.html
1839 pub extern fn llrintf(x: f32) c_longlong;
1840
1841 /// long long llrintl(long double x);
1842 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llrintl.html
1843 pub extern fn llrintl(x: c_longdouble) c_longlong;
1844
1845 /// long long llround(double x);
1846 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llround.html
1847 pub extern fn llround(x: f64) c_longlong;
1848
1849 /// long long llroundf(float x);
1850 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llroundf.html
1851 pub extern fn llroundf(x: f32) c_longlong;
1852
1853 /// long long llroundl(long double x);
1854 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/llroundl.html
1855 pub extern fn llroundl(x: c_longdouble) c_longlong;
1856
1857 /// struct lconv *localeconv(void);
1858 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/localeconv.html
1859 pub extern fn localeconv() *struct_lconv;
1860
1861 /// double log(double x);
1862 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log.html
1863 pub extern fn log(x: f64) f64;
1864
1865 /// double log1p(double x);
1866 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log1p.html
1867 pub extern fn log1p(x: f64) f64;
1868
1869 /// float log1pf(float x);
1870 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log1pf.html
1871 pub extern fn log1pf(x: f32) f32;
1872
1873 /// long double log1pl(long double x);
1874 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log1pl.html
1875 pub extern fn log1pl(x: c_longdouble) c_longdouble;
1876
1877 /// double log2(double x);
1878 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log2.html
1879 pub extern fn log2(x: f64) f64;
1880
1881 /// float log2f(float x);
1882 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log2f.html
1883 pub extern fn log2f(x: f32) f32;
1884
1885 /// long double log2l(long double x);
1886 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log2l.html
1887 pub extern fn log2l(x: c_longdouble) c_longdouble;
1888
1889 /// double log10(double x);
1890 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log10.html
1891 pub extern fn log10(x: f64) f64;
1892
1893 /// float log10f(float x);
1894 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log10f.html
1895 pub extern fn log10f(x: f32) f32;
1896
1897 /// long double log10l(long double x);
1898 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/log10l.html
1899 pub extern fn log10l(x: c_longdouble) c_longdouble;
1900
1901 /// double logb(double x);
1902 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/logb.html
1903 pub extern fn logb(x: f64) f64;
1904
1905 /// float logbf(float x);
1906 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/logbf.html
1907 pub extern fn logbf(x: f32) f32;
1908
1909 /// long double logbl(long double x);
1910 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/logbl.html
1911 pub extern fn logbl(x: c_longdouble) c_longdouble;
1912
1913 /// float logf(float x);
1914 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/logf.html
1915 pub extern fn logf(x: f32) f32;
1916
1917 /// long double logl(long double x);
1918 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/logl.html
1919 pub extern fn logl(x: c_longdouble) c_longdouble;
1920
1921 /// long lrand48(void);
1922 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lrand48.html
1923 pub extern fn lrand48() c_long;
1924
1925 /// long lrint(double x);
1926 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lrint.html
1927 pub extern fn lrint(x: f64) c_long;
1928
1929 /// long lrintf(float x);
1930 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lrintf.html
1931 pub extern fn lrintf(x: f32) c_long;
1932
1933 /// long lrintl(long double x);
1934 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lrintl.html
1935 pub extern fn lrintl(x: c_longdouble) c_long;
1936
1937 /// long lround(double x);
1938 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lround.html
1939 pub extern fn lround(x: f64) c_long;
1940
1941 /// long lroundf(float x);
1942 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lroundf.html
1943 pub extern fn lroundf(x: f32) c_long;
1944
1945 /// long lroundl(long double x);
1946 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lroundl.html
1947 pub extern fn lroundl(x: c_longdouble) c_long;
1948
1949 /// off_t lseek(int fildes, off_t offset, int whence);
1950 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/lseek.html
1951 pub extern fn lseek(fd: c_int, offset: off_t, whence: c_int) off_t;
1952
1953 /// void *malloc(size_t size);
1954 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/malloc.html
1955 pub extern fn malloc(size: usize) ?*anyopaque;
1956
1957 /// int mkdir(const char *path, mode_t mode);
1958 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdir.html
1959 pub extern fn mkdir(path: [*:0]const u8, __mode: mode_t) c_int;
1960
14451961 /// int mkdirat(int fd, const char *path, mode_t mode);
14461962 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdirat.html
14471963 pub extern fn mkdirat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
14481964
1965 /// char *mkdtemp(char *template);
1966 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkdtemp.html
1967 pub extern fn mkdtemp(template: [*:0]u8) [*:0]u8;
1968
1969 /// int mkfifo(const char *path, mode_t mode);
1970 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifo.html
1971 pub extern fn mkfifo(path: [*:0]const u8, mode: mode_t) c_int;
1972
1973 /// int mkfifoat(int fd, const char *path, mode_t mode);
1974 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkfifoat.html
1975 pub extern fn mkfifoat(fd: c_int, path: [*:0]const u8, mode: mode_t) c_int;
1976
1977 /// int mkstemp(char *template);
1978 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mkstemp.html
1979 pub extern fn mkstemp(template: [*:0]u8) c_int;
1980
1981 /// int mlockall(int flags);
1982 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mlockall.html
1983 pub extern fn mlockall(flags: c_int) c_int;
1984
1985 /// int mq_unlink(const char *name);
1986 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mq_unlink.html
1987 pub extern fn mq_unlink(name: [*:0]const u8) c_int;
1988
1989 /// long mrand48(void);
1990 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/mrand48.html
1991 pub extern fn mrand48() c_long;
1992
1993 /// int munlockall(void);
1994 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/munlockall.html
1995 pub extern fn munlockall() void;
1996
1997 /// double nearbyint(double x);
1998 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyint.html
1999 pub extern fn nearbyint(x: f64) f64;
2000
2001 /// float nearbyintf(float x);
2002 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyintf.html
2003 pub extern fn nearbyintf(x: f32) f32;
2004
2005 /// long double nearbyintl(long double x);
2006 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nearbyintl.html
2007 pub extern fn nearbyintl(x: c_longdouble) c_longdouble;
2008
2009 /// double nextafter(double x, double y);
2010 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nextafter.html
2011 pub extern fn nextafter(x: f64, y: f64) f64;
2012
2013 /// float nextafterf(float x, float y);
2014 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nextafterf.html
2015 pub extern fn nextafterf(x: f32, y: f32) f32;
2016
2017 /// long double nextafterl(long double x, long double y);
2018 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nextafterl.html
2019 pub extern fn nextafterl(x: c_longdouble, y: c_longdouble) c_longdouble;
2020
2021 /// double nexttoward(double x, long double y);
2022 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nexttoward.html
2023 pub extern fn nexttoward(x: f64, y: c_longdouble) f64;
2024
2025 /// float nexttowardf(float x, long double y);
2026 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nexttowardf.html
2027 pub extern fn nexttowardf(x: f32, y: c_longdouble) f32;
2028
2029 /// long double nexttowardl(long double x, long double y);
2030 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nexttowardl.html
2031 pub extern fn nexttowardl(x: c_longdouble, y: c_longdouble) c_longdouble;
2032
2033 /// int nice(int incr);
2034 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/nice.html
2035 pub extern fn nice(incr: c_int) c_int;
2036
2037 /// uint32_t ntohl(uint32_t netlong);
2038 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohl.html
2039 pub extern fn ntohl(netlong: u32) u32;
2040
2041 /// uint16_t ntohs(uint16_t netshort);
2042 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ntohs.html
2043 pub extern fn ntohs(netshort: u16) u16;
2044
14492045 /// int openat(int fd, const char *path, int oflag, ...);
14502046 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/openat.html
14512047 pub extern fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int, ...) c_int;
14522048
2049 /// int pause(void);
2050 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pause.html
2051 pub extern fn pause() c_int;
2052
2053 /// double pow(double x, double y);
2054 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pow.html
2055 pub extern fn pow(x: f64, y: f64) f64;
2056
2057 /// float powf(float x, float y);
2058 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/powf.html
2059 pub extern fn powf(x: f32, y: f32) f32;
2060
2061 /// long double powl(long double x, long double y);
2062 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/powl.html
2063 pub extern fn powl(x: c_longdouble, y: c_longdouble) c_longdouble;
2064
2065 /// int pthread_cancel(pthread_t thread);
2066 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_cancel.html
2067 pub extern fn pthread_cancel(thread: pthread_t) c_int;
2068
2069 /// int pthread_detach(pthread_t thread);
2070 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_detach.html
2071 pub extern fn pthread_detach(thread: pthread_t) c_int;
2072
2073 /// int pthread_equal(pthread_t t1, pthread_t t2);
2074 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_equal.html
2075 pub extern fn pthread_equal(thread1: pthread_t, thread2: pthread_t) c_int;
2076
2077 /// int pthread_getconcurrency(void);
2078 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_getconcurrency.html
2079 pub extern fn pthread_getconcurrency() c_int;
2080
2081 /// int pthread_kill(pthread_t thread, int sig);
2082 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_kill.html
2083 pub extern fn pthread_kill(thread: pthread_t, sig: c_int) c_int;
2084
2085 /// pthread_t pthread_self(void);
2086 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_self.html
2087 pub extern fn pthread_self() pthread_t;
2088
2089 /// void pthread_testcancel(void);
2090 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/pthread_testcancel.html
2091 pub extern fn pthread_testcancel() void;
2092
2093 /// int putchar(int c);
2094 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar.html
2095 pub extern fn putchar(c: c_int) c_int;
2096
2097 /// int putchar_unlocked(int c);
2098 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putchar_unlocked.html
2099 pub extern fn putchar_unlocked(c: c_int) c_int;
2100
2101 /// wint_t putwchar(wchar_t wc);
2102 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/putwchar.html
2103 pub extern fn putwchar(wc: wchar_t) wint_t;
2104
2105 /// int raise(int sig);
2106 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/raise.html
2107 pub extern fn raise(sig: c_int) c_int;
2108
2109 /// int rand(void);
2110 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rand.html
2111 pub extern fn rand() c_int;
2112
2113 /// long random(void);
2114 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/random.html
2115 pub extern fn random() c_long;
2116
14532117 /// ssize_t read(int fildes, void *buf, size_t nbyte);
14542118 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/read.html
14552119 pub extern fn read(fd: c_int, buf: [*]u8, count: usize) isize;
14562120
2121 /// double remainder(double x, double y);
2122 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainder.html
2123 pub extern fn remainder(x: f64, y: f64) f64;
2124
2125 /// float remainderf(float x, float y);
2126 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainderf.html
2127 pub extern fn remainderf(x: f32, y: f32) f32;
2128
2129 /// long double remainderl(long double x, long double y);
2130 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/remainderl.html
2131 pub extern fn remainderl(x: c_longdouble, y: c_longdouble) c_longdouble;
2132
2133 /// double rint(double x);
2134 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rint.html
2135 pub extern fn rint(x: f64) f64;
2136
2137 /// float rintf(float x);
2138 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rintf.html
2139 pub extern fn rintf(x: f32) f32;
2140
2141 /// long double rintl(long double x);
2142 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rintl.html
2143 pub extern fn rintl(x: c_longdouble) c_longdouble;
2144
2145 /// int rmdir(const char *path);
2146 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/rmdir.html
2147 pub extern fn rmdir(path: [*:0]const u8) c_int;
2148
2149 /// double round(double x);
2150 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/round.html
2151 pub extern fn round(x: f64) f64;
2152
2153 /// float roundf(float x);
2154 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/roundf.html
2155 pub extern fn roundf(x: f32) f32;
2156
2157 /// long double roundl(long double x);
2158 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/roundl.html
2159 pub extern fn roundl(x: c_longdouble) c_longdouble;
2160
2161 /// double scalbln(double x, long n);
2162 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbln.html
2163 pub extern fn scalbln(x: f64, n: c_long) f64;
2164
2165 /// float scalblnf(float x, long n);
2166 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalblnf.html
2167 pub extern fn scalblnf(x: f32, n: c_long) f32;
2168
2169 /// long double scalblnl(long double x, long n);
2170 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalblnl.html
2171 pub extern fn scalblnl(x: c_longdouble, n: c_long) c_longdouble;
2172
2173 /// double scalbn(double x, int n);
2174 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbn.html
2175 pub extern fn scalbn(x: f64, n: c_int) f64;
2176
2177 /// float scalbnf(float x, int n);
2178 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbnf.html
2179 pub extern fn scalbnf(x: f32, n: c_int) f32;
2180
2181 /// long double scalbnl(long double x, int n);
2182 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/scalbnl.html
2183 pub extern fn scalbnl(x: c_longdouble, n: c_int) c_longdouble;
2184
2185 /// int sched_get_priority_max(int policy);
2186 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_max.html
2187 pub extern fn sched_get_priority_max(policy: c_int) c_int;
2188
2189 /// int sched_get_priority_min(int policy);
2190 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_get_priority_min.html
2191 pub extern fn sched_get_priority_min(policy: c_int) c_int;
2192
2193 /// int sched_getscheduler(pid_t pid);
2194 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_getscheduler.html
2195 pub extern fn sched_getscheduler(pid: pid_t) c_int;
2196
2197 /// int sched_yield(void);
2198 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sched_yield.html
2199 pub extern fn sched_yield() c_int;
2200
2201 /// int sem_unlink(const char *name);
2202 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sem_unlink.html
2203 pub extern fn sem_unlink(name: [*:0]const u8) c_int;
2204
2205 /// int semctl(int semid, int semnum, int cmd, ...);
2206 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/semctl.html
2207 pub extern fn semctl(semid: c_int, semnum: c_int, cmd: c_int, ...) c_int;
2208
2209 /// int setegid(gid_t gid);
2210 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setegid.html
2211 pub extern fn setegid(gid: gid_t) c_int;
2212
2213 /// int seteuid(uid_t uid);
2214 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/seteuid.html
2215 pub extern fn seteuid(uid: uid_t) c_int;
2216
2217 /// int setgid(gid_t gid);
2218 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setgid.html
2219 pub extern fn setgid(gid: gid_t) c_int;
2220
2221 /// void setgrent(void);
2222 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setgrent.html
2223 pub extern fn setgrent() void;
2224
2225 /// void sethostent(int stayopen);
2226 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sethostent.html
2227 pub extern fn sethostent(stayopen: c_int) void;
2228
2229 /// int setlogmask(int maskpri);
2230 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setlogmask.html
2231 pub extern fn setlogmask(maskpri: c_int) c_int;
2232
2233 /// void setnetent(int stayopen);
2234 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setnetent.html
2235 pub extern fn setnetent(stayopen: c_int) void;
2236
2237 /// pid_t setpgrp(void);
2238 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpgrp.html
2239 pub extern fn setpgrp() pid_t;
2240
2241 /// void setprotoent(int stayopen);
2242 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setprotoent.html
2243 pub extern fn setprotoent(stayopen: c_int) void;
2244
2245 /// void setpwent(void);
2246 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setpwent.html
2247 pub extern fn setpwent() void;
2248
2249 /// int setregid(gid_t rgid, gid_t egid);
2250 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setregid.html
2251 pub extern fn setregid(rgid: gid_t, egid: gid_t) c_int;
2252
2253 /// int setreuid(uid_t ruid, uid_t euid);
2254 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setreuid.html
2255 pub extern fn setreuid(ruid: uid_t, euid: uid_t) c_int;
2256
2257 /// void setservent(int stayopen);
2258 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setservent.html
2259 pub extern fn setservent(stayopen: c_int) void;
2260
2261 /// pid_t setsid(void);
2262 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setsid.html
2263 pub extern fn setsid() pid_t;
2264
2265 /// int setuid(uid_t uid);
2266 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setuid.html
2267 pub extern fn setuid(uid: uid_t) c_int;
2268
2269 /// void setutxent(void);
2270 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/setutxent.html
2271 pub extern fn setutxent() void;
2272
2273 /// int shm_unlink(const char *name);
2274 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shm_unlink.html
2275 pub extern fn shm_unlink(name: [*:0]const u8) c_int;
2276
2277 /// int shutdown(int socket, int how);
2278 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/shutdown.html
2279 pub extern fn shutdown(socket: c_int, how: c_int) c_int;
2280
2281 /// int sighold(int sig);
2282 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sighold.html
2283 pub extern fn sighold(sig: c_int) c_int;
2284
2285 /// int sigignore(int sig);
2286 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigignore.html
2287 pub extern fn sigignore(sig: c_int) c_int;
2288
2289 /// int siginterrupt(int sig, int flag);
2290 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/siginterrupt.html
2291 pub extern fn siginterrupt(sig: c_int, flag: c_int) c_int;
2292
2293 /// int sigpause(int sig);
2294 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigpause.html
2295 pub extern fn sigpause(sig: c_int) c_int;
2296
2297 /// int sigrelse(int sig);
2298 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sigrelse.html
2299 pub extern fn sigrelse(sig: c_int) c_int;
2300
2301 /// double sin(double x);
2302 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sin.html
2303 pub extern fn sin(x: f64) f64;
2304
2305 /// float sinf(float x);
2306 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sinf.html
2307 pub extern fn sinf(x: f32) f32;
2308
2309 /// double sinh(double x);
2310 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sinh.html
2311 pub extern fn sinh(x: f64) f64;
2312
2313 /// float sinhf(float x);
2314 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sinhf.html
2315 pub extern fn sinhf(x: f32) f32;
2316
2317 /// long double sinhl(long double x);
2318 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sinhl.html
2319 pub extern fn sinhl(x: c_longdouble) c_longdouble;
2320
2321 /// long double sinl(long double x);
2322 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sinl.html
2323 pub extern fn sinl(x: c_longdouble) c_longdouble;
2324
2325 /// unsigned sleep(unsigned seconds);
2326 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sleep.html
2327 pub extern fn sleep(seconds: c_uint) c_uint;
2328
2329 /// int sockatmark(int s);
2330 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sockatmark.html
2331 pub extern fn sockatmark(s: c_int) c_int;
2332
2333 /// int socket(int domain, int type, int protocol);
2334 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/socket.html
2335 pub extern fn socket(domain: c_int, type: c_int, protocol: c_int) c_int;
2336
2337 /// int socketpair(int domain, int type, int protocol, int socket_vector[2]);
2338 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/socketpair.html
2339 pub extern fn socketpair(domain: c_int, type: c_int, protocol: c_int, fds: *[2]c_int) c_int;
2340
2341 /// double sqrt(double x);
2342 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sqrt.html
2343 pub extern fn sqrt(x: f64) f64;
2344
2345 /// float sqrtf(float x);
2346 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sqrtf.html
2347 pub extern fn sqrtf(x: f32) f32;
2348
2349 /// long double sqrtl(long double x);
2350 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sqrtl.html
2351 pub extern fn sqrtl(x: c_longdouble) c_longdouble;
2352
2353 /// void srand(unsigned seed);
2354 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/srand.html
2355 pub extern fn srand(seed: c_uint) void;
2356
2357 /// void srand48(long seedval);
2358 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/srand48.html
2359 pub extern fn srand48(seedval: c_long) void;
2360
2361 /// void srandom(unsigned seed);
2362 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/srandom.html
2363 pub extern fn srandom(seed: c_uint) void;
2364
2365 /// size_t strlen(const char *s);
2366 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/strlen.html
2367 pub extern fn strlen(s: [*:0]const u8) c_ulong;
2368
2369 /// void sync(void);
2370 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sync.html
2371 pub extern fn sync() void;
2372
2373 /// long sysconf(int name);
2374 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/sysconf.html
2375 pub extern fn sysconf(name: c_int) c_long;
2376
2377 /// double tan(double x);
2378 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tan.html
2379 pub extern fn tan(x: f64) f64;
2380
2381 /// float tanf(float x);
2382 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tanf.html
2383 pub extern fn tanf(x: f32) f32;
2384
2385 /// double tanh(double x);
2386 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tanh.html
2387 pub extern fn tanh(x: f64) f64;
2388
2389 /// float tanhf(float x);
2390 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tanhf.html
2391 pub extern fn tanhf(x: f32) f32;
2392
2393 /// long double tanhl(long double x);
2394 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tanhl.html
2395 pub extern fn tanhl(x: c_longdouble) c_longdouble;
2396
2397 /// long double tanl(long double x);
2398 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tanl.html
2399 pub extern fn tanl(x: c_longdouble) c_longdouble;
2400
2401 /// int tcdrain(int fildes);
2402 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcdrain.html
2403 pub extern fn tcdrain(fd: c_int) c_int;
2404
2405 /// int tcflow(int fildes, int action);
2406 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcflow.html
2407 pub extern fn tcflow(fd: c_int, action: c_int) c_int;
2408
2409 /// int tcflush(int fildes, int queue_selector);
2410 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcflush.html
2411 pub extern fn tcflush(fd: c_int, queue_selector: c_int) c_int;
2412
2413 /// pid_t tcgetpgrp(int fildes);
2414 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetpgrp.html
2415 pub extern fn tcgetpgrp(fd: c_int) pid_t;
2416
2417 /// pid_t tcgetsid(int fildes);
2418 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcgetsid.html
2419 pub extern fn tcgetsid(fd: c_int) pid_t;
2420
2421 /// int tcsendbreak(int fildes, int duration);
2422 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tcsendbreak.html
2423 pub extern fn tcsendbreak(fd: c_int, duration: c_int) c_int;
2424
2425 /// double tgamma(double x);
2426 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgamma.html
2427 pub extern fn tgamma(x: f64) f64;
2428
2429 /// float tgammaf(float x);
2430 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgammaf.html
2431 pub extern fn tgammaf(x: f32) f32;
2432
2433 /// long double tgammal(long double x);
2434 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tgammal.html
2435 pub extern fn tgammal(x: c_longdouble) c_longdouble;
2436
2437 /// int toascii(int c);
2438 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toascii.html
2439 pub extern fn toascii(c: c_int) c_int;
2440
2441 /// int tolower(int c);
2442 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tolower.html
2443 pub extern fn tolower(c: c_int) c_int;
2444
2445 /// int tolower_l(int c, locale_t locale);
2446 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tolower_l.html
2447 pub extern fn tolower_l(c: c_int, locale: locale_t) c_int;
2448
2449 /// int toupper(int c);
2450 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toupper.html
2451 pub extern fn toupper(c: c_int) c_int;
2452
2453 /// int toupper_l(int c, locale_t locale);
2454 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/toupper_l.html
2455 pub extern fn toupper_l(c: c_int, locale: locale_t) c_int;
2456
2457 /// wint_t towlower(wint_t wc);
2458 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towlower.html
2459 pub extern fn towlower(wc: wint_t) wint_t;
2460
2461 /// wint_t towlower_l(wint_t wc, locale_t locale);
2462 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towlower_l.html
2463 pub extern fn towlower_l(wc: wint_t, locale: locale_t) wint_t;
2464
2465 /// wint_t towupper(wint_t wc);
2466 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towupper.html
2467 pub extern fn towupper(wc: wint_t) wint_t;
2468
2469 /// wint_t towupper_l(wint_t wc, locale_t locale);
2470 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/towupper_l.html
2471 pub extern fn towupper_l(wc: wint_t, locale: locale_t) wint_t;
2472
2473 /// double trunc(double x);
2474 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/trunc.html
2475 pub extern fn trunc(x: f64) f64;
2476
2477 /// float truncf(float x);
2478 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncf.html
2479 pub extern fn truncf(x: f32) f32;
2480
2481 /// long double truncl(long double x);
2482 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/truncl.html
2483 pub extern fn truncl(x: c_longdouble) c_longdouble;
2484
2485 /// void tzset(void);
2486 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/tzset.html
2487 pub extern fn tzset() void;
2488
2489 /// long ulimit(int cmd, ...);
2490 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/ulimit.html
2491 pub extern fn ulimit(cmd: c_int, ...) c_long;
2492
2493 /// mode_t umask(mode_t cmask);
2494 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/umask.html
2495 pub extern fn umask(cmask: mode_t) mode_t;
2496
2497 /// int unlockpt(int fildes);
2498 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/unlockpt.html
2499 pub extern fn unlockpt(fd: c_int) c_int;
2500
2501 /// locale_t uselocale(locale_t newloc);
2502 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/uselocale.html
2503 pub extern fn uselocale(newloc: locale_t) locale_t;
2504
2505 /// int wctob(wint_t c);
2506 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wctob.html
2507 pub extern fn wctob(c: wint_t) c_int;
2508
2509 /// int wcwidth(wchar_t wc);
2510 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/wcwidth.html
2511 pub extern fn wcwidth(wc: wchar_t) c_int;
2512
2513 /// double y0(double x);
2514 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y0.html
2515 pub extern fn y0(x: f64) f64;
2516
2517 /// double y1(double x);
2518 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/y1.html
2519 pub extern fn y1(x: f64) f64;
2520
2521 /// double yn(int n, double x);
2522 /// https://pubs.opengroup.org/onlinepubs/9699919799.orig/functions/yn.html
2523 pub extern fn yn(n: c_int, x: f64) f64;
2524
14572525 //
14582526 //
14592527