1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<!--
$Id: oldlinux.xml,v 1.6 2004/10/22 22:03:17 michael Exp $
This file is part of the FPC documentation.
Copyright (C) 1997, by Michael Van Canneyt
The FPC documentation is free text; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The FPC Documentation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the FPC documentation; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<package name="rtl">
<module name="oldlinux">
<short>1.0.X version of the Linux unit - for compatibility only.</short>
<!-- \FPCexampledir{olinuxex} -->
<descr>
This document describes the LINUX unit for Free Pascal. The unit was written
by Michael van Canneyt. It works only on the Linux/X86 operating system.
</descr>
<element name="PGlob">
<short>Pointer to <link id="TGlob"/> record.</short>
</element>
<element name="TGlob">
<short>Record containing one entry in the result of <link id="Glob"/></short>
</element>
<element name="TGlob.Name">
<short>Filename matching the search criteria</short>
</element>
<element name="TGlob.Next">
<short>Next element in result of <var>Glob</var> call.</short>
</element>
<element name="tfpreg">
<short>Record describing floating point register in signal handler.</short>
</element>
<element name="tfpreg.significand">
<short>Decimal part of floating point value</short>
</element>
<element name="tfpreg.exponent">
<short>Exponent of floating point value</short>
</element>
<element name="pfpstate">
<short>Pointer to <link id="tfpstate"/> record.</short>
</element>
<element name="tfpstate">
<short>Record describing floating point unit in signal handler.</short>
</element>
<element name="tfpstate.cw">
<short></short>
</element>
<element name="tfpstate.sw">
<short></short>
</element>
<element name="tfpstate.tag">
<short></short>
</element>
<element name="tfpstate.ipoff">
<short></short>
</element>
<element name="tfpstate.cssel">
<short></short>
</element>
<element name="tfpstate.dataoff">
<short></short>
</element>
<element name="tfpstate.datasel">
<short></short>
</element>
<element name="tfpstate.st">
<short></short>
</element>
<element name="tfpstate.status">
<short></short>
</element>
<element name="PSigContextRec">
<short>Pointer to <link id="SigContextRec"/> record</short>
</element>
<element name="SigContextRec">
<short>Record describing the context of the program when it receives a signal</short>
<descr>
The above records contain information about the processor state and process
state at the moment a signal is sent to your program.
</descr>
</element>
<element name="SigContextRec.gs">
<short>Low part of gs register</short>
</element>
<element name="SigContextRec.__gsh">
<short>High part of gs register</short>
</element>
<element name="SigContextRec.fs">
<short>Low part of FS register</short>
</element>
<element name="SigContextRec.__fsh">
<short>High part of FS register</short>
</element>
<element name="SigContextRec.es">
<short>Low part of ES register</short>
</element>
<element name="SigContextRec.__esh">
<short>High part of ES register</short>
</element>
<element name="SigContextRec.ds">
<short>Low part of DS register</short>
</element>
<element name="SigContextRec.__dsh">
<short>High part of DS register</short>
</element>
<element name="SigContextRec.edi">
<short>EDI register</short>
</element>
<element name="SigContextRec.esi">
<short>ESI register</short>
</element>
<element name="SigContextRec.ebp">
<short>EBP register</short>
</element>
<element name="SigContextRec.esp">
<short>ESP register</short>
</element>
<element name="SigContextRec.ebx">
<short>EBX register</short>
</element>
<element name="SigContextRec.edx">
<short>EDX register</short>
</element>
<element name="SigContextRec.ecx">
<short>ECX register</short>
</element>
<element name="SigContextRec.eax">
<short>EAX register</short>
</element>
<element name="SigContextRec.trapno">
<short>Interrupt number</short>
</element>
<element name="SigContextRec.err">
<short>Error register (?)</short>
</element>
<element name="SigContextRec.eip">
<short>IP (Instruction Pointer) register</short>
</element>
<element name="SigContextRec.cs">
<short>Low part of CS register</short>
</element>
<element name="SigContextRec.__csh">
<short>High part of CS register</short>
</element>
<element name="SigContextRec.eflags">
<short>Flags register</short>
</element>
<element name="SigContextRec.esp_at_signal">
<short>ESP register at signal.</short>
</element>
<element name="SigContextRec.ss">
<short>Low part of SS register</short>
</element>
<element name="SigContextRec.__ssh">
<short>High part of SS register</short>
</element>
<element name="SigContextRec.fpstate">
<short>Floating Point unit state</short>
</element>
<element name="SigContextRec.oldmask">
<short>Old signal mask</short>
</element>
<element name="SigContextRec.cr2">
<short>?</short>
</element>
<element name="TSigAction">
<short>Function prototype for <link id="SigAction"/> call.</short>
</element>
<element name="SignalHandler">
<short>Function prototype for the <link id="Signal"/> call.</short>
</element>
<element name="PSignalHandler">
<short>Pointer to <link id="SignalHandler"/> type.</short>
</element>
<element name="SignalRestorer">
<short>Signal restorer function prototype</short>
</element>
<element name="PSignalrestorer">
<short>Pointer to <link id="SignalRestorer"/> type</short>
</element>
<element name="PSigActionRec">
<short>Pointer to <link id="SigActionRec"/> record.</short>
</element>
<element name="SigActionRec">
<short>Record used in <link id="SigAction"/> call.</short>
</element>
<element name="SigActionRec.Handler">
<short>Funcion called when signal is triggered.</short>
</element>
<element name="SigActionRec.Sa_Mask">
<short>Signal mask.</short>
</element>
<element name="SigActionRec.SA_FLAGS">
<short>Flags for SigAction</short>
</element>
<element name="SigActionRec.SA_RESTORER">
<short>Obsolete, don't use</short>
</element>
<element name="stat">
<short>Record describing an inode (file) in the <link id="fstat"/> call.</short>
</element>
<element name="stat.dev">
<short>Device number</short>
</element>
<element name="stat.pad1">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.ino">
<short>Inode number of file</short>
</element>
<element name="stat.mode">
<short>File mode</short>
</element>
<element name="stat.nlink">
<short>Number of links to file.</short>
</element>
<element name="stat.uid">
<short>File owner UID</short>
</element>
<element name="stat.gid">
<short>File owner GID</short>
</element>
<element name="stat.rdev">
<short></short>
</element>
<element name="stat.pad2">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.size">
<short>File size</short>
</element>
<element name="stat.blksize">
<short>Block size</short>
</element>
<element name="stat.blocks">
<short>Number of blocks used</short>
</element>
<element name="stat.atime">
<short>Last access time</short>
</element>
<element name="stat.unused1">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.mtime">
<short>Last modification time.</short>
</element>
<element name="stat.unused2">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.ctime">
<short>Creation time</short>
</element>
<element name="stat.unused3">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.unused4">
<short>Pad byte. Do not use</short>
</element>
<element name="stat.unused5">
<short>Pad byte. Do not use</short>
</element>
<element name="statfs">
<short>Record describing a file system in the <link id="fsstat"/> call.</short>
</element>
<element name="statfs.fstype">
<short>File system type</short>
</element>
<element name="statfs.bsize">
<short>Block size</short>
</element>
<element name="statfs.blocks">
<short>Total number of blocks</short>
</element>
<element name="statfs.bfree">
<short>Number of free blocks</short>
</element>
<element name="statfs.bavail">
<short>Number of available blocks</short>
</element>
<element name="statfs.files">
<short>Number of files</short>
</element>
<element name="statfs.ffree">
<short>?</short>
</element>
<element name="statfs.fsid">
<short>?</short>
</element>
<element name="statfs.namelen">
<short>Max name length for files.</short>
</element>
<element name="statfs.spare">
<short>Pad bytes. Do not use.</short>
</element>
<element name="PDir">
<short>Pointer to <link id="TDir"/> record</short>
</element>
<element name="TDir">
<short>Record used in <link id="OpenDir"/> and <link id="ReadDir"/> calls </short>
</element>
<element name="TDir.fd">
<short>File descriptor. Do not use.</short>
</element>
<element name="TDir.loc">
<short>Location in directory listing</short>
</element>
<element name="TDir.size">
<short>File size</short>
</element>
<element name="TDir.buf">
<short>Pointer to <link id="TDir"/> records</short>
</element>
<element name="TDir.nextoff">
<short>?</short>
</element>
<element name="TDir.dd_max">
<short>?</short>
</element>
<element name="TDir.lock">
<short>?</short>
</element>
<element name="PDirEnt">
<short>Pointer to <link id="Dirent"/> record.</short>
</element>
<element name="Dirent">
<short>Record used in the <link id="ReadDir"/> function to return files in a directory.</short>
</element>
<element name="Dirent.ino">
<short>Inode number of file</short>
</element>
<element name="Dirent.off">
<short>Offset in directory.</short>
</element>
<element name="Dirent.reclen">
<short>Record length</short>
</element>
<element name="Dirent.name">
<short>Name of file</short>
</element>
<element name="NCCS">
<short>Number of control characters in <link id="termios"/> record.</short>
</element>
<element name="NCC">
<short>Number of control characters in <link id="termio"/> record.</short>
</element>
<element name="termio">
<short>Terminal I/O description record (small)</short>
</element>
<element name="termio.c_iflag">
<short>input mode flags</short>
</element>
<element name="termio.c_oflag">
<short>output mode flags</short>
</element>
<element name="termio.c_cflag">
<short>control mode flags</short>
</element>
<element name="termio.c_lflag">
<short>local mode flags</short>
</element>
<element name="termio.c_line">
<short>line discipline</short>
</element>
<element name="termio.c_cc">
<short>control characters</short>
</element>
<element name="termios">
<short>Terminal I/O description record</short>
</element>
<element name="termios.c_iflag">
<short>input mode flags</short>
</element>
<element name="termios.c_oflag">
<short>output mode flags</short>
</element>
<element name="termios.c_cflag">
<short>control mode flags</short>
</element>
<element name="termios.c_lflag">
<short>local mode flags</short>
</element>
<element name="termios.c_line">
<short>line discipline</short>
</element>
<element name="termios.c_cc">
<short>control characters</short>
</element>
<element name="Utimbuf">
<short>Record used in <link id="Utime"/> to set file access and modificaton times.</short>
</element>
<element name="Utimbuf.actime">
<short>Access time</short>
</element>
<element name="Utimbuf.modtime">
<short>Modification time</short>
</element>
<element name="PFDSet">
<short>Pointer to <link id="FDSet"/> array.</short>
</element>
<element name="FDSet">
<short>Array containing file descriptor bitmask for the <link id="Select"/> call.</short>
</element>
<element name="TimeVal">
<short>Record specifying a time inteval.</short>
</element>
<element name="TimeVal.sec">
<short>Number of seconds</short>
</element>
<element name="TimeVal.usec">
<short>Number of milliseconds</short>
</element>
<element name="PTimeVal">
<short>Pointer to <link id="TTimeVal"/> record</short>
</element>
<element name="timespec">
<short>Time interval for the <link id="NanoSleep"/> function.</short>
</element>
<element name="timespec.tv_sec">
<short>Number of seconds</short>
</element>
<element name="timespec.tv_nsec">
<short>Number of nanoseconds</short>
</element>
<element name="utsname">
<short>Record used to return kernel information in <link id="UName"/> function.</short>
<descr>
The elements of this record are null-terminated C style strings, you cannot access them
directly.
</descr>
</element>
<element name="utsname.sysname">
<short>System name</short>
</element>
<element name="utsname.nodename">
<short>Computer name</short>
</element>
<element name="utsname.release">
<short>Release number</short>
</element>
<element name="utsname.version">
<short>Version number</short>
</element>
<element name="utsname.machine">
<short>Machine type</short>
</element>
<element name="utsname.domainname">
<short>Domain name</short>
</element>
<element name="linuxerror">
<short>Last operating system error</short>
<descr>
<var>Linuxerror</var> is the variable in which the procedures in the linux unit
report errors.
</descr>
</element>
<element name="stderr">
<short>Standard error output (deprecated)</short>
<descr>
<p>
<var>StdErr</var> Is a <var>Text</var> variable, corresponding to Standard Error or
diagnostic output. It is connected to file descriptor 2. It can be freely
used, and will be closed on exit.
</p>
<p>
This variable is deprecated. Please use the corresponding variable in
the system unit for disgnostic messages.
</p>
</descr>
</element>
<element name="Prio_Process">
<short>Get/Set process priority</short>
</element>
<element name="Prio_PGrp">
<short>Get/set process group priority</short>
</element>
<element name="Prio_user">
<short>Get/set user priority</short>
</element>
<element name="R_OK">
<short><link id="Access"/> call test: read allowed </short>
</element>
<element name="W_OK">
<short><link id="Access"/> call test: write allowed </short>
</element>
<element name="X_OK">
<short><link id="Access"/> call test: execute allowed </short>
</element>
<element name="F_OK">
<short><link id="Access"/> call test: file exists.</short>
</element>
<element name="SA_NOCLDSTOP">
<short>Sigaction options: Do not receive notification when child processes stop</short>
</element>
<element name="SA_SHIRQ">
<short>Sigaction options: ?</short>
</element>
<element name="SA_STACK">
<short>Sigaction options: Call the signal handler on an alternate signal stack.</short>
</element>
<element name="SA_RESTART">
<short>Sigaction options: Provide behaviour compatible with BSD signal semantics</short>
</element>
<element name="SA_INTERRUPT">
<short>Sigaction options: ?</short>
</element>
<element name="SA_NOMASK">
<short>Sigaction options: Do not prevent the signal from being received when it is handled.</short>
</element>
<element name="SA_ONESHOT">
<short>Sigaction options: Restore the signal action to the default state.</short>
</element>
<element name="SIG_BLOCK">
<short>Sigprocmask flags: Add signals to the set of blocked signals.</short>
</element>
<element name="SIG_UNBLOCK">
<short>Sigprocmask flags: Remove signals from the set set of blocked signals.</short>
</element>
<element name="SIG_SETMASK">
<short>Sigprocmask flags: Set of blocked signals is given.</short>
</element>
<element name="SIG_DFL">
<short>Signal handler: Default signal handler</short>
</element>
<element name="SIG_IGN">
<short>Signal handler: Ignore signal</short>
</element>
<element name="SIG_ERR">
<short>Signal handler: error</short>
</element>
<element name="SIGHUP">
<short>Signal: HUP (Hangup)</short>
</element>
<element name="SIGINT">
<short>Signal: INT (Interrupt)</short>
</element>
<element name="SIGQUIT">
<short>Signal: QUIT</short>
</element>
<element name="SIGILL">
<short>Signal: ILL (Illegal instruction)</short>
</element>
<element name="SIGTRAP">
<short>Signal: TRAP (Trace trap)</short>
</element>
<element name="SIGABRT">
<short>Signal: ABRT (Abort)</short>
</element>
<element name="SIGIOT">
<short>Signal: IOT (IOT trap)</short>
</element>
<element name="SIGBUS">
<short>Signal: BUS (bus error)</short>
</element>
<element name="SIGFPE">
<short>Signal: FPE (Floating point error)</short>
</element>
<element name="SIGKILL">
<short>Signal: KILL (unblockable)</short>
</element>
<element name="SIGUSR1">
<short>Signal: USR1 (User-defined signal 1)</short>
</element>
<element name="SIGSEGV">
<short>Signal: SEGV (Segmentation violation)</short>
</element>
<element name="SIGUSR2">
<short>Signal: USR2 (User-defined signal 2)</short>
</element>
<element name="SIGPIPE">
<short>Signal: PIPE (Broken pipe</short>
</element>
<element name="SIGALRM">
<short>Signal: ALRM (Alarm clock)</short>
</element>
<element name="SIGTERM">
<short>Signal: TERM (Terminate)</short>
</element>
<element name="SIGSTKFLT">
<short>Signal: STKFLT (Stack Fault)</short>
</element>
<element name="SIGCHLD">
<short>Signal: CHLD (child status changed)</short>
</element>
<element name="SIGCONT">
<short>Signal: CONT (Continue)</short>
</element>
<element name="SIGSTOP">
<short>Signal: STOP (Stop, unblockable)</short>
</element>
<element name="SIGTSTP">
<short>Signal: TSTP (keyboard stop)</short>
</element>
<element name="SIGTTIN">
<short>Signal: TTIN (Terminal input, background)</short>
</element>
<element name="SIGTTOU">
<short>Signal: TTOU (Terminal output, background)</short>
</element>
<element name="SIGURG">
<short>Signal: URG (Socket urgent condition)</short>
</element>
<element name="SIGXCPU">
<short>Signal: XCPU (CPU limit exceeded)</short>
</element>
<element name="SIGXFSZ">
<short>Signal: XFSZ (File size limit exceeded)</short>
</element>
<element name="SIGVTALRM">
<short>Signal: VTALRM (Virtual alarm clock)</short>
</element>
<element name="SIGPROF">
<short>Signal: PROF (Profiling alarm)</short>
</element>
<element name="SIGWINCH">
<short>Signal: WINCH (Window/Terminal size change)</short>
</element>
<element name="SIGIO">
<short>Signal: IO (I/O operation possible)</short>
</element>
<element name="SIGPOLL">
<short>Signal: POLL (Pollable event) </short>
</element>
<element name="SIGPWR">
<short>Signal: PWR (power failure restart)</short>
</element>
<element name="SIGUNUSED">
<short>Signal: Unused</short>
</element>
<element name="F_GetFd">
<short><link id="FCntl"/> command: Get close-on-exec flag</short>
</element>
<element name="F_SetFd">
<short><link id="FCntl"/> command: Set close-on-exec flag</short>
</element>
<element name="F_GetFl">
<short><link id="FCntl"/> command: Get filedescriptor flags</short>
</element>
<element name="F_SetFl">
<short><link id="FCntl"/> command: Set filedescriptor flags</short>
</element>
<element name="F_GetLk">
<short><link id="FCntl"/> command: Get lock</short>
</element>
<element name="F_SetLk">
<short><link id="FCntl"/> command: Set lock</short>
</element>
<element name="F_SetLkW">
<short><link id="FCntl"/> command: Test lock</short>
</element>
<element name="F_GetOwn">
<short><link id="FCntl"/> command: get owner of filedescriptor events</short>
</element>
<element name="F_SetOwn">
<short><link id="FCntl"/> command: Set owner of filedescriptor events</short>
</element>
<element skip="1" name="TCGETS"/>
<element skip="1" name="TCSETS"/>
<element skip="1" name="TCSETSW"/>
<element skip="1" name="TCSETSF"/>
<element skip="1" name="TCGETA"/>
<element skip="1" name="TCSETA"/>
<element skip="1" name="TCSETAW"/>
<element skip="1" name="TCSETAF"/>
<element skip="1" name="TCSBRK"/>
<element skip="1" name="TCXONC"/>
<element skip="1" name="TCFLSH"/>
<element skip="1" name="TIOCEXCL"/>
<element skip="1" name="TIOCNXCL"/>
<element skip="1" name="TIOCSCTTY"/>
<element skip="1" name="TIOCGPGRP"/>
<element skip="1" name="TIOCSPGRP"/>
<element skip="1" name="TIOCOUTQ"/>
<element skip="1" name="TIOCSTI"/>
<element skip="1" name="TIOCGWINSZ"/>
<element skip="1" name="TIOCSWINSZ"/>
<element skip="1" name="TIOCMGET"/>
<element skip="1" name="TIOCMBIS"/>
<element skip="1" name="TIOCMBIC"/>
<element skip="1" name="TIOCMSET"/>
<element skip="1" name="TIOCGSOFTCAR"/>
<element skip="1" name="TIOCSSOFTCAR"/>
<element skip="1" name="FIONREAD"/>
<element skip="1" name="TIOCINQ"/>
<element skip="1" name="TIOCLINUX"/>
<element skip="1" name="TIOCCONS"/>
<element skip="1" name="TIOCGSERIAL"/>
<element skip="1" name="TIOCSSERIAL"/>
<element skip="1" name="TIOCPKT"/>
<element skip="1" name="FIONBIO"/>
<element skip="1" name="TIOCNOTTY"/>
<element skip="1" name="TIOCSETD"/>
<element skip="1" name="TIOCGETD"/>
<element skip="1" name="TCSBRKP"/>
<element skip="1" name="TIOCTTYGSTRUCT"/>
<element skip="1" name="FIONCLEX"/>
<element skip="1" name="FIOCLEX"/>
<element skip="1" name="FIOASYNC"/>
<element skip="1" name="TIOCSERCONFIG"/>
<element skip="1" name="TIOCSERGWILD"/>
<element skip="1" name="TIOCSERSWILD"/>
<element skip="1" name="TIOCGLCKTRMIOS"/>
<element skip="1" name="TIOCSLCKTRMIOS"/>
<element skip="1" name="TIOCSERGSTRUCT"/>
<element skip="1" name="TIOCSERGETLSR"/>
<element skip="1" name="TIOCSERGETMULTI"/>
<element skip="1" name="TIOCSERSETMULTI"/>
<element skip="1" name="TIOCMIWAIT"/>
<element skip="1" name="TIOCGICOUNT"/>
<element skip="1" name="TIOCPKT_DATA"/>
<element skip="1" name="TIOCPKT_FLUSHREAD"/>
<element skip="1" name="TIOCPKT_FLUSHWRITE"/>
<element skip="1" name="TIOCPKT_STOP"/>
<element skip="1" name="TIOCPKT_START"/>
<element skip="1" name="TIOCPKT_NOSTOP"/>
<element skip="1" name="TIOCPKT_DOSTOP"/>
<element name="STAT_IFMT">
<short>File (<link id="stat"/> record) mode: File type bit mask</short>
</element>
<element name="STAT_IFSOCK">
<short>File (<link id="stat"/> record) mode: Socket</short>
</element>
<element name="STAT_IFLNK">
<short>File (<link id="stat"/> record) mode: Link</short>
</element>
<element name="STAT_IFREG">
<short>File (<link id="stat"/> record) mode: Regular file</short>
</element>
<element name="STAT_IFBLK">
<short>File (<link id="stat"/> record) mode: Block device</short>
</element>
<element name="STAT_IFDIR">
<short>File (<link id="stat"/> record) mode: Directory</short>
</element>
<element name="STAT_IFCHR">
<short>File (<link id="stat"/> record) mode: Character device</short>
</element>
<element name="STAT_IFIFO">
<short>File (<link id="stat"/> record) mode: FIFO</short>
</element>
<element name="STAT_ISUID">
<short>File (<link id="stat"/> record) mode: UID bit set</short>
</element>
<element name="STAT_ISGID">
<short>File (<link id="stat"/> record) mode: GID bit set</short>
</element>
<element name="STAT_ISVTX">
<short>File (<link id="stat"/> record) mode: Sticky bit set</short>
</element>
<element name="STAT_IRWXO">
<short>File (<link id="stat"/> record) mode: Other permission bits mask</short>
</element>
<element name="STAT_IROTH">
<short>File (<link id="stat"/> record) mode: Other read permission</short>
</element>
<element name="STAT_IWOTH">
<short>File (<link id="stat"/> record) mode: Other write permission</short>
</element>
<element name="STAT_IXOTH">
<short>File (<link id="stat"/> record) mode: Others execute permission</short>
</element>
<element name="STAT_IRWXG">
<short>File (<link id="stat"/> record) mode: Group permission bits mask</short>
</element>
<element name="STAT_IRGRP">
<short>File (<link id="stat"/> record) mode: Group read permission</short>
</element>
<element name="STAT_IWGRP">
<short>File (<link id="stat"/> record) mode: Group write permission</short>
</element>
<element name="STAT_IXGRP">
<short>File (<link id="stat"/> record) mode: Others execute permission</short>
</element>
<element name="STAT_IRWXU">
<short>File (<link id="stat"/> record) mode: Owner permission bits mask</short>
</element>
<element name="STAT_IRUSR">
<short>File (<link id="stat"/> record) mode: Owner read permission</short>
</element>
<element name="STAT_IWUSR">
<short>File (<link id="stat"/> record) mode: Owner write permission</short>
</element>
<element name="STAT_IXUSR">
<short>File (<link id="stat"/> record) mode: Others execute permission</short>
</element>
<element name="fs_old_ext2">
<short>File system type (<link id="FSStat"/>): (ext2) Old second extended</short>
</element>
<element name="fs_ext2">
<short>File system type (<link id="FSStat"/>): (ext2) Second extended</short>
</element>
<element name="fs_ext">
<short>File system type (<link id="FSStat"/>): (ext) Extended</short>
</element>
<element name="fs_iso">
<short>File system type (<link id="FSStat"/>): ISO 9660</short>
</element>
<element name="fs_minix">
<short>File system type (<link id="FSStat"/>): Minix</short>
</element>
<element name="fs_minix_30">
<short>File system type (<link id="FSStat"/>): Minix 3.0</short>
</element>
<element name="fs_minux_V2">
<short>File system type (<link id="FSStat"/>): Minix V2</short>
</element>
<element name="fs_msdos">
<short>File system type (<link id="FSStat"/>): MSDOS (FAT)</short>
</element>
<element name="fs_nfs">
<short>File system type (<link id="FSStat"/>): NFS </short>
</element>
<element name="fs_proc">
<short>File system type (<link id="FSStat"/>): PROC fs</short>
</element>
<element name="fs_xia">
<short>File system type (<link id="FSStat"/>): XIA</short>
</element>
<element name="LOCK_SH">
<short><link id="FLock"/> Shared lock</short>
</element>
<element name="LOCK_EX">
<short><link id="FLock"/> Exclusive lock</short>
</element>
<element name="LOCK_UN">
<short><link id="FLock"/> unlock</short>
</element>
<element name="LOCK_NB">
<short><link id="FLock"/> Non-blocking operation</short>
</element>
<element name="PROT_READ">
<short><link id="MMap"/> memory access: page can be read</short>
</element>
<element name="PROT_WRITE">
<short><link id="MMap"/> memory access: page can be written</short>
</element>
<element name="PROT_EXEC">
<short><link id="MMap"/> memory access: page can be executed</short>
</element>
<element name="PROT_NONE">
<short><link id="MMap"/> memory access: page can not be accessed</short>
</element>
<element name="MAP_SHARED">
<short><link id="MMap"/> map type: Share changes</short>
</element>
<element name="MAP_PRIVATE">
<short><link id="MMap"/> map type: Changes are private</short>
</element>
<element name="MAP_TYPE">
<short><link id="MMap"/> map type: Bitmask for type of mapping</short>
</element>
<element name="MAP_FIXED">
<short><link id="MMap"/> map type: Interpret addr exactly</short>
</element>
<element name="MAP_ANONYMOUS">
<short><link id="MMap"/> map type: Don't use a file</short>
</element>
<topic name="FileIORoutines">
<short>File Input/Output routines</short>
<descr>
<p>
Functions for handling file input/output.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="Dup"/></td><td>Duplicate a file handle</td></tr>
<tr><td><link id="Dup2"/></td><td>Copy one file handle to another</td></tr>
<tr><td><link id="Fcntl"/></td><td>General file control</td></tr>
<tr><td><link id="fdClose"/></td><td>Close file descriptor</td></tr>
<tr><td><link id="fdFlush"/></td><td>Flush file descriptor</td></tr>
<tr><td><link id="fdOpen"/></td><td>Open new file descriptor</td></tr>
<tr><td><link id="fdRead"/></td><td>Read from file descriptor</td></tr>
<tr><td><link id="fdSeek"/></td><td>Position in file</td></tr>
<tr><td><link id="fdTruncate"/></td><td>Truncate file</td></tr>
<tr><td><link id="fdWrite"/></td><td>Write to file descriptor</td></tr>
<tr><td><link id="GetFS"/></td><td>Get file descriptor of pascal file</td></tr>
<tr><td><link id="Select"/></td><td>Wait for input from file descriptor</td></tr>
<tr><td><link id="SelectText"/></td><td>Wait for input from pascal file</td></tr>
</table>
</descr>
</topic>
<topic name="FileHandlingRoutines">
<short>General File handling routines</short>
<descr>
<p>
Functions for handling files on disk.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="Access"/></td><td>Check access rights on file</td></tr>
<tr><td><link id="BaseName"/></td><td>Return name part of file</td></tr>
<tr><td><link id="Chown"/></td><td>Change owner of file</td></tr>
<tr><td><link id="Chmod"/></td><td>Change access rights on file</td></tr>
<tr><td><link id="DirName"/></td><td>Return directory part of file</td></tr>
<tr><td><link id="FSplit"/></td><td>Split filename in parts</td></tr>
<tr><td><link id="FExpand"/></td><td>Return full-grown filename</td></tr>
<tr><td><link id="FLock"/></td><td>Set lock on a file</td></tr>
<tr><td><link id="FNMatch"/></td><td>Match filename to searchpattern</td></tr>
<tr><td><link id="FSearch"/></td><td>Search for a file in a path</td></tr>
<tr><td><link id="FSStat"/></td><td>Return filesystem information</td></tr>
<tr><td><link id="FStat"/></td><td>Return file information</td></tr>
<tr><td><link id="FRename"/></td><td>Rename file</td></tr>
<tr><td><link id="LStat"/></td><td>Return information on a link</td></tr>
<tr><td><link id="Link"/></td><td>Create a link</td></tr>
<tr><td><link id="ReadLink"/></td><td>Read contents of a symbolic link</td></tr>
<tr><td><link id="SymLink"/></td><td>Create a symbolic link</td></tr>
<tr><td><link id="Umask"/></td><td>Set the file creation mask</td></tr>
<tr><td><link id="UnLink"/></td><td>Remove a file</td></tr>
<tr><td><link id="Utime"/></td><td>Change file timestamps</td></tr>
</table>
</descr>
</topic>
<topic name="PipeFIFORoutines">
<short>Pipes, FIFOs and streams </short>
<descr>
<p>
Functions for creating and managing pipes.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="AssignPipe"/></td><td>Create a pipe</td></tr>
<tr><td><link id="AssignStream"/></td><td>Create pipes to program's input and output</td></tr>
<tr><td><link id="MkFifo"/></td><td>Make a fifo</td></tr>
<tr><td><link id="PClose"/></td><td>Close a pipe</td></tr>
<tr><td><link id="POpen"/></td><td>Open a pipe for to program's input or output</td></tr>
</table>
</descr>
</topic>
<topic name="DirectoryRoutines">
<short>Directory handling routines</short>
<descr>
<p>
Functions for reading and searching directories.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="CloseDir"/></td><td>Close directory handle</td></tr>
<tr><td><link id="Glob"/></td><td>Return files matching a search expression</td></tr>
<tr><td><link id="GlobFree"/></td><td>Free result of Glob</td></tr>
<tr><td><link id="OpenDir"/></td><td>Open directory for reading</td></tr>
<tr><td><link id="ReadDir"/></td><td>Read directory entry</td></tr>
<tr><td><link id="SeekDir"/></td><td>Seek directory</td></tr>
<tr><td><link id="TellDir"/></td><td>Seek directory</td></tr>
</table>
</descr>
</topic>
<topic name="ProcessRoutines">
<short>Process handling</short>
<descr>
<p>
Functions for managing processes and programs.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="Clone"/></td><td>Create a thread</td></tr>
<tr><td><link id="Execl"/></td><td>Execute process with command-line list</td></tr>
<tr><td><link id="Execle"/></td><td>Execute process with command-line list and environment</td></tr>
<tr><td><link id="Execlp"/></td><td>Search in path and execute process with command list</td></tr>
<tr><td><link id="Execv"/></td><td>Execute process</td></tr>
<tr><td><link id="Execve"/></td><td>Execute process with environment</td></tr>
<tr><td><link id="Execvp"/></td><td>Search in path and execute process</td></tr>
<tr><td><link id="Fork"/></td><td>Spawn child process</td></tr>
<tr><td><link id="GetEGid"/></td><td>Get effective group id</td></tr>
<tr><td><link id="GetEnv"/></td><td>Get environment variable</td></tr>
<tr><td><link id="GetEUid"/></td><td>Get effective user id</td></tr>
<tr><td><link id="GetGid"/></td><td>Get group id</td></tr>
<tr><td><link id="GetPid"/></td><td>Get process id</td></tr>
<tr><td><link id="GetPPid"/></td><td>Get parent process id</td></tr>
<tr><td><link id="GetPriority"/></td><td>Get process priority</td></tr>
<tr><td><link id="GetUid"/></td><td>Get user id</td></tr>
<tr><td><link id="Nice"/></td><td>Change priority of process</td></tr>
<tr><td><link id="SetPriority"/></td><td>Change priority of process</td></tr>
<tr><td><link id="Shell"/></td><td>Execute shell command</td></tr>
<tr><td><link id="WaitPid"/></td><td>Wait for child process to terminate</td></tr>
</table>
</descr>
</topic>
<topic name="SignalRoutines">
<short>Signals</short>
<descr>
<p>
Functions for managing and responding to signals.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="Alarm"/></td><td>Send alarm signal to self</td></tr>
<tr><td><link id="Kill"/></td><td>Send arbitrary signal to process</td></tr>
<tr><td><link id="pause"/></td><td>Wait for signal to arrive</td></tr>
<tr><td><link id="SigAction"/></td><td>Set signal action</td></tr>
<tr><td><link id="Signal"/></td><td>Set signal action</td></tr>
<tr><td><link id="SigPending"/></td><td>See if signals are waiting</td></tr>
<tr><td><link id="SigProcMask"/></td><td>Set signal processing mask</td></tr>
<tr><td><link id="SigRaise"/></td><td>Send signal to self</td></tr>
<tr><td><link id="SigSuspend"/></td><td>Sets signal mask and waits for signal</td></tr>
<tr><td><link id="NanoSleep"/></td><td>Waits for a specific amount of time</td></tr>
</table>
</descr>
</topic>
<topic name="SysInfoRoutines">
<short>System information</short>
<descr>
<p>
Functions for retrieving system information such as date and time.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="GetDate"/></td><td>Return system date</td></tr>
<tr><td><link id="GetDateTime"/></td><td>Return system date and time</td></tr>
<tr><td><link id="GetDomainName"/></td><td>Return system domain name</td></tr>
<tr><td><link id="GetEpochTime"/></td><td>Return epoch time</td></tr>
<tr><td><link id="GetHostName"/></td><td>Return system host name</td></tr>
<tr><td><link id="GetLocalTimezone"/></td><td>Return system timezone</td></tr>
<tr><td><link id="GetTime"/></td><td>Return system time</td></tr>
<tr><td><link id="GetTimeOfDay"/></td><td>Return system time</td></tr>
<tr><td><link id="GetTimezoneFile"/></td><td>Return name of timezone file</td></tr>
<tr><td><link id="ReadTimezoneFile"/></td><td>Read timezone file contents</td></tr>
<tr><td><link id="SysInfo"/></td><td>Return general system information</td></tr>
<tr><td><link id="Uname"/></td><td>Return system information</td></tr>
</table>
</descr>
</topic>
<topic name="TerminalRoutines">
<short>Terminal functions</short>
<descr>
<p>
Functions for controlling the terminal to which the process is connected.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="CFMakeRaw"/></td><td>Set terminal to raw mode</td></tr>
<tr><td><link id="CFSetISpeed"/></td><td>Set terminal reading speed</td></tr>
<tr><td><link id="CFSetOSpeed"/></td><td>Set terminal writing speed</td></tr>
<tr><td><link id="IOCtl"/></td><td>General IO control call</td></tr>
<tr><td><link id="IsATTY"/></td><td>See if filedescriptor is a terminal</td></tr>
<tr><td><link id="TCDrain"/></td><td>Wait till all output was written</td></tr>
<tr><td><link id="TCFlow"/></td><td>Suspend transmission or receipt of data</td></tr>
<tr><td><link id="TCFlush"/></td><td>Discard data written to terminal</td></tr>
<tr><td><link id="TCGetAttr"/></td><td>Get terminal attributes</td></tr>
<tr><td><link id="TCGetPGrp"/></td><td>Return PID of foreground process</td></tr>
<tr><td><link id="TCSendBreak"/></td><td>Send data for specific time</td></tr>
<tr><td><link id="TCSetAttr"/></td><td>Set terminal attributes</td></tr>
<tr><td><link id="TCSetPGrp"/></td><td>Set foreground process</td></tr>
<tr><td><link id="TTYName"/></td><td>Name of tty file</td></tr>
</table>
</descr>
</topic>
<topic name="AuxiliaryRoutines">
<short>Utility routines</short>
<descr>
<p>
Auxiliary functions that are useful in connection with the other functions.
</p>
<table>
<th><td>Name</td><td>Description</td></th>
<tr><td><link id="CreateShellArgV"/></td><td>Create an array of pchars from string</td></tr>
<tr><td><link id="EpochToLocal"/></td><td>Convert epoch time to local time</td></tr>
<tr><td><link id="FD_Clr"/></td><td>Clear item of select filedescriptors</td></tr>
<tr><td><link id="FD_IsSet"/></td><td>Check item of select filedescriptors</td></tr>
<tr><td><link id="FD_Set"/></td><td>Set item of select filedescriptors</td></tr>
<tr><td><link id="FD_ZERO"/></td><td>Clear all items in select filedecriptors</td></tr>
<tr><td><link id="LocalToEpoch"/></td><td>Convert local time to epoch time</td></tr>
<tr><td><link id="MMap"/></td><td>Map a file into memory</td></tr>
<tr><td><link id="MUnMap"/></td><td>Unmap previously mapped memory file</td></tr>
<tr><td><link id="Octal"/></td><td>Convert octal to digital</td></tr>
<tr><td><link id="S_ISBLK"/></td><td>Check file mode for block device</td></tr>
<tr><td><link id="S_ISCHR"/></td><td>Check file mode for character device</td></tr>
<tr><td><link id="S_ISDIR"/></td><td>Check file mode for directory</td></tr>
<tr><td><link id="S_ISFIFO"/></td><td>Check file mode for FIFO</td></tr>
<tr><td><link id="S_ISLNK"/></td><td>Check file mode for symboloc link</td></tr>
<tr><td><link id="S_ISREG"/></td><td>Check file mode for regular file</td></tr>
<tr><td><link id="S_ISSOCK"/></td><td>Check file mode for socket</td></tr>
<tr><td><link id="StringToPPchar"/></td><td>Create an array of pchars from string</td></tr>
</table>
</descr>
</topic>
<element name="Access">
<short>Check file access</short>
<descr>
<p>
<var>Access</var> tests user's access rights on the specified file.
<var>Mode</var> is a mask existing of one or more of the following:
</p>
<dl>
<dt>R_OK</dt><dd>User has read rights.</dd>
<dt>W_OK</dt><dd>User has write rights.</dd>
<dt>X_OK</dt><dd>User has execute rights.</dd>
<dt>F_OK</dt><dd>File exists.</dd>
</dl>
<p>
The test is done with the real user ID, instead of the effective user ID.
If access is denied, or an error occurred, <var>False</var> is returned.
</p>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors:
</p>
<dl>
<dt>sys_eaccess</dt>
<dd> The requested access is denied, either to the file or one
of the directories in its path.</dd>
<dt>sys_einval</dt>
<dd><var>Mode</var> was incorrect.</dd>
<dt>sys_enoent</dt>
<dd>A directory component in <var>Path</var> doesn't exist or is a
dangling symbolic link.</dd>
<dt>sys_enotdir</dt>
<dd> A directory component in <var>Path</var> is not a directory.</dd>
<dt>sys_enomem</dt>
<dd> Insufficient kernel memory.</dd>
<dt>sys_eloop</dt>
<dd> <var>Path</var> has a circular symbolic link.</dd>
</dl>
</errors>
<seealso>
<link id="Chown"/>
<link id="Chmod"/>
</seealso>
<example file="olinuxex/ex26"/>
</element>
<element name="Alarm">
<short>Schedule an alarm signal to be delivered</short>
<descr>
<p>
<var>Alarm</var> schedules an alarm signal to be delivered to your process in <var>Sec</var>
seconds. When <var>Sec</var> seconds have elapsed, Linux will send a <var>SIGALRM</var>
signal to the current process. If <var>Sec</var> is zero, then no new alarm will
be set. Whatever the value of <var>Sec</var>, any previous alarm is cancelled.
</p>
<p>
The function returns the number of seconds till the previously scheduled
alarm was due to be delivered, or zero if there was none.
</p>
</descr>
<seealso>
<link id="SigAction"/>
</seealso>
<example file="olinuxex/ex59"/>
</element>
<element name="AssignPipe">
<short>Create a set of pipe file handlers</short>
<descr>
<p>
<var>AssignePipe</var> creates a pipe, i.e. two file objects, one for input,
one for output. What is written to <var>Pipe_out</var>, can be read from
<var>Pipe_in</var>.
</p>
<p>
This call is overloaded. The in and out pipe can take three forms:
an typed or untyped file, a text file or a file descriptor.
</p>
<p>
If a text file is passed then reading and writing from/to the pipe
can be done through the usual <var>Readln(Pipe_in,...)</var> and
<var>Writeln(Pipe_out,...)</var> procedures.
</p>
<p>
The function returns <var>True</var> if everything went succesfully,
<var>False</var> otherwise.
</p>
</descr>
<errors>
<p>
In case the function fails and returns <var>False</var>, <var>LinuxError</var>
is used to report errors:
</p>
<dl>
<dt>sys_emfile</dt>
<dd> Too many file descriptors for this process.</dd>
<dt>sys_enfile</dt>
<dd> The system file table is full.</dd>
</dl>
</errors>
<seealso>
<link id="POpen"/>
<link id="MkFifo"/>
</seealso>
<example file="olinuxex/ex36"/>
</element>
<element name="AssignStream">
<short>Assign stream for in and output to a program</short>
<descr>
<p>
<var>AssignStream</var> creates a 2 or 3 pipes, i.e. two (or three) file objects, one for
input, one for output,(and one for standard error) the other ends of these
pipes are connected to standard input and output (and standard error) of
<var>Prog</var>. <var>Prog</var> is the name of a program (including path) with options,
which will be executed.
</p>
<p>
What is written to <var>StreamOut</var>, will go to the standard input of
<var>Prog</var>. Whatever is written by <var>Prog</var> to it's standard output
can be read from <var>StreamIn</var>.
Whatever is written by <var>Prog</var> to it's standard error read from
<var>StreamErr</var>, if present.
</p>
<p>
Reading and writing happens through the usual <var>Readln(StreamIn,...)</var> and
<var>Writeln (StreamOut,...)</var> procedures.
</p>
<remark>
You should <em> not</em> use <var>Reset</var> or <var>Rewrite</var> on a
file opened with <var>POpen</var>. This will close the file before re-opening
it again, thereby closing the connection with the program.
</remark>
<p>
The function returns the process ID of the spawned process, or -1 in case of
error.
</p>
</descr>
<errors>
<p>
In case of error (return value -1) <var>LinuxError</var> is used to report
errors:
</p>
<dl>
<dt>sys_emfile</dt>
<dd> Too many file descriptors for this process.</dd>
<dt>sys_enfile</dt>
<dd> The system file table is full.</dd>
</dl>
<p>
Other errors include the ones by the fork and exec programs
</p>
</errors>
<seealso>
<link id="AssignPipe"/>
<link id="POpen"/>
</seealso>
<example file="olinuxex/ex38"/>
</element>
<element name="BaseName">
<short>Return basename of a file</short>
<descr>
<p>
Returns the filename part of <var>Path</var>, stripping off <var>Suf</var> if it
exists.
The filename part is the whole name if <var>Path</var> contains no slash,
or the part of <var>Path</var> after the last slash.
The last character of the result is not a slash, unless the directory is the
root directory.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="DirName"/>
<link id="FExpand"/>
</seealso>
<example file="olinuxex/ex48"/>
</element>
<element name="CFMakeRaw">
<short>Sets flags in <link id="Termios"/> record.</short>
<descr>
<p>
<var>CFMakeRaw</var>
sets the flags in the <var>Termios</var> structure <var>Tios</var> to a state so that
the terminal will function in Raw Mode.
</p>
<p>
For an example, see <link id="TCGetAttr"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="CFSetOSpeed"/>
<link id="CFSetISpeed"/>
</seealso>
</element>
<element name="CFSetISpeed">
<short>Set input baud rate in <link id="Termios"/> record</short>
<descr>
<var>CFSetISpeed</var>
Sets the input baudrate in the <var>TermIOS</var> structure <var>Tios</var> to
<var>Speed</var>.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="CFSetOSpeed"/>
<link id="CFMakeRaw"/>
</seealso>
</element>
<element name="CFSetOSpeed">
<short>Set output baud rate in <link id="Termios"/> record</short>
<descr>
<var>CFSetOSpeed</var>
Sets the output baudrate in the <var>Termios</var> structure <var>Tios</var> to
<var>Speed</var>.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="CFSetISpeed"/>
<link id="CFMakeRaw"/>
</seealso>
</element>
<element name="Chown">
<short>Change owner of file</short>
<descr>
<var>Chown</var> sets the User ID and Group ID of the file in <var>Path</var> to
<var>NewUid</var>, <var>NewGid</var>
The function returns <var>True</var> if the call was succesfull, <var>False</var> if the call
failed.
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_eperm</dt>
<dd> The effective UID doesn't match the ownership of the file,
and is not zero. Owner or group were not specified correctly.</dd>
<dt>sys_eaccess</dt>
<dd> One of the directories in <var>Path</var> has no
search (=execute) permission.</dd>
<dt>sys_enoent</dt>
<dd> A directory entry in <var>Path</var> does
not exist or is a symbolic link pointing to a non-existent directory.</dd>
<dt>sys_enomem</dt>
<dd> Insufficient kernel memory.</dd>
<dt>sys_erofs</dt>
<dd> The file is on a read-only filesystem.</dd>
<dt>sys_eloop</dt>
<dd> <var>Path</var> has a reference to a circular
symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
</dl>
</errors>
<seealso>
<link id="Chmod"/>
<link id="Access"/>
</seealso>
<example file="olinuxex/ex24"/>
</element>
<element name="Chmod">
<short>Change file permission bits</short>
<descr>
<p>
<var>Chmod</var>
Sets the Mode bits of the file in <var>Path</var> to <var>NewMode</var>. Newmode can be
specified by 'or'-ing the following:
</p>
<dl>
<dt>S_ISUID</dt><dd> Set user ID on execution.</dd>
<dt>S_ISGID</dt><dd> Set Group ID on execution.</dd>
<dt>S_ISVTX</dt><dd> Set sticky bit.</dd>
<dt>S_IRUSR</dt><dd> Read by owner.</dd>
<dt>S_IWUSR</dt><dd> Write by owner.</dd>
<dt>S_IXUSR</dt><dd> Execute by owner.</dd>
<dt>S_IRGRP</dt><dd> Read by group.</dd>
<dt>S_IWGRP</dt><dd> Write by group.</dd>
<dt>S_IXGRP</dt><dd> Execute by group.</dd>
<dt>S_IROTH</dt><dd> Read by others.</dd>
<dt>S_IWOTH</dt><dd> Write by others.</dd>
<dt>S_IXOTH</dt><dd> Execute by others.</dd>
<dt>S_IRWXO</dt><dd> Read, write, execute by others.</dd>
<dt>S_IRWXG</dt><dd> Read, write, execute by groups.</dd>
<dt>S_IRWXU</dt><dd> Read, write, execute by user.</dd>
</dl>
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_eperm</dt>
<dd> The effective UID doesn't match the ownership of the file,
and is not zero. Owner or group were not specified correctly.</dd>
<dt>sys_eaccess</dt>
<dd> One of the directories in <var>Path</var> has no
search (=execute) permission.</dd>
<dt>sys_enoent</dt>
<dd> A directory entry in <var>Path</var> does
not exist or is a symbolic link pointing to a non-existent directory.</dd>
<dt>sys_enomem</dt>
<dd> Insufficient kernel memory.</dd>
<dt>sys_erofs</dt>
<dd> The file is on a read-only filesystem.</dd>
<dt>sys_eloop</dt>
<dd> <var>Path</var> has a reference to a circular
symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
</dl>
</errors>
<seealso>
<link id="Chown"/>
<link id="Access"/>
<link id="Octal"/>
</seealso>
<example file="olinuxex/ex23"/>
</element>
<element name="Clone">
<short>Clone current process (create new thread)</short>
<descr>
<p>
<var>Clone</var>
creates a child process which is a copy of the parent process, just
like <link id="Fork"/> does. In difference with <var>Fork</var>, however, the child
process shares some parts of it's execution context with its parent, so it
is suitable for the implementation of threads: many instances of a program
that share the same memory.
</p>
<p>
When the child process is created, it starts executing the function
<var>Func</var>, and passes it <var>Args</var>. The return value of <var>Func</var> is
either the explicit return value of the function, or the exit code of
the child process.
</p>
<p>
The <var>sp</var> pointer points to the memory reserved as stack space for the
child process. This address should be the top of the memory block to be used
as stack.
</p>
<p>
The <var>Flags</var> determine the behaviour of the <var>Clone</var> call. The low
byte of the Flags contains the number of the signal that will be sent to
the parent when the child dies.
This may be bitwise OR'ed with the following constants:
</p>
<dl>
<dt>CLONE_VM</dt>
<dd> Parent and child share the same memory space, including
memory (un)mapped with subsequent <var>mmap</var> calls.</dd>
<dt>CLONE_FS</dt>
<dd> Parent and child have the same view of the filesystem;
the <var>chroot</var>, <var>chdir</var> and <var>umask</var> calls affect both processes.</dd>
<dt>CLONE_FILES</dt>
<dd> the file descriptor table of parent and child is shared.</dd>
<dt>CLONE_SIGHAND</dt>
<dd> the parent and child share the same table of signal
handlers. The signal masks are different, though.</dd>
<dt>CLONE_PID</dt>
<dd> PArent and child have the same process ID.</dd>
</dl>
<p>
Clone returns the process ID in the parent process, and -1 if an error
occurred.
</p>
</descr>
<errors>
<p>
On error, -1 is returned to the parent, and no child is created.
</p>
<dl>
<dt>sys_eagain</dt><dd>Too many processes are running.</dd>
<dt>sys_enomem</dt><dd>Not enough memory to create child process.</dd>
</dl>
</errors>
<seealso>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex71"/>
</element>
<element name="CloseDir">
<short>Close directory file descriptor</short>
<descr>
<p>
<var>CloseDir</var> closes the directory pointed to by <var>p</var>.
It returns zero if the directory was closed succesfully, -1 otherwise.
</p>
<p>
For an example, see <link id="OpenDir"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="OpenDir"/>
<link id="ReadDir"/>
<link id="SeekDir"/>
<link id="TellDir"/>
</seealso>
</element>
<element name="CreateShellArgV">
<short>Create an array of null-terminated strings</short>
<descr>
<p>
<var>CreateShellArgV</var> creates an array of 3 <var>PChar</var> pointers that can
be used as arguments to <var>ExecVE</var> the first elements in the array
will contain <var>/bin/sh</var>, the second will contain <var>-c</var>, and the third
will contain <var>prog</var>.
</p>
<p>
The function returns a pointer to this array, of type <var>PPChar</var>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Shell"/>
</seealso>
<example file="olinuxex/ex61"/>
</element>
<element name="DirName">
<short>Extract directory part from filename</short>
<descr>
<p>
Returns the directory part of <var>Path</var>.
The directory is the part of <var>Path</var> before the last slash,
or empty if there is no slash.
The last character of the result is not a slash, unless the directory is the
root directory.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="BaseName"/>
<link id="FExpand"/>
</seealso>
<example file="olinuxex/ex47"/>
</element>
<element name="Dup">
<short>Duplicate a file handle</short>
<descr>
<p>
Makes <var>NewFile</var> an exact copy of <var>OldFile</var>, after having flushed the
buffer of <var>OldFile</var> in case it is a Text file or untyped file.
Due to the buffering mechanism of Pascal, this has not the same functionality
as the dup call in C. The internal Pascal buffers are not the same
after this call, but when the buffers are flushed (e.g. after output),
the output is sent to the same file.
Doing an lseek will, however, work as in C, i.e. doing a lseek will change
the fileposition in both files.
</p>
<p>
The function returns <var>False</var> in case of an error, <var>True</var> if
successful.
</p>
</descr>
<errors>
<p>
In case of errors, <var>Linuxerror</var> is used to report errors.
</p>
<dl>
<dt>sys_ebadf</dt><dd> <var>OldFile</var> hasn't been assigned.</dd>
<dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
</dl>
</errors>
<seealso>
<link id="Dup2"/>
</seealso>
<example file="olinuxex/ex31"/>
</element>
<element name="Dup2">
<short>Duplicate one filehandle to another</short>
<descr>
<p>
Makes <var>NewFile</var> an exact copy of <var>OldFile</var>, after having flushed the
buffer of <var>OldFile</var> in the case of text or untyped files.
</p>
<p>
<var>NewFile</var> can be an assigned file. If <var>newfile</var> was open, it is
closed first. Due to the buffering mechanism of Pascal, this has not
the same functionality as the <var>dup2</var> call in C. The internal Pascal
buffers are not the same after this call, but when the buffers are flushed
(e.g. after output), the output is sent to the same file.
Doing an lseek will, however, work as in C, i.e. doing a lseek will change the
fileposition in both files.
</p>
<p>
The function returns <var>True</var> if succesful, false otherwise.
</p>
</descr>
<errors>
<p>
In case of error, <var>Linuxerror</var> is used to report errors.
</p>
<dl>
<dt>sys_ebadf</dt><dd> <var>OldFile</var> hasn't been assigned.</dd>
<dt>sys_emfile</dt><dd> Maximum number of open files for the process is reached.</dd>
</dl>
</errors>
<seealso>
<link id="Dup"/>
</seealso>
<example file="olinuxex/ex32"/>
</element>
<element name="EpochToLocal">
<short>Convert epoch time to local time</short>
<descr>
<p>
Converts the epoch time (=Number of seconds since 00:00:00 , January 1,
1970, corrected for your time zone ) to local date and time.
</p>
<p>
This function takes into account the timzeone settings of your system.
</p>
</descr>
<errors>
None
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="LocalToEpoch"/>
<link id="GetTime"/>
<link id="GetDate"/>
</seealso>
<example file="olinuxex/ex3"/>
</element>
<element name="Execl">
<short>Execute process (using argument list)</short>
<descr>
Replaces the currently running program with the program, specified in
<var>path</var>. Path is split into a command and it's options.
The executable in <var>path</var> is NOT searched in the path.
The current environment is passed to the program.
On success, <var>execl</var> does not return.
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt>
<dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt>
<dd> Not enough memory for kernel, or to split command line.</dd>
<dt>sys_enotdir</dt>
<dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt>
<dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execv"/>
<link id="Execvp"/>
<link id="Execle"/>
<link id="Execlp"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex10"/>
</element>
<element name="Execle">
<short>Execute process (using argument list, environment)</short>
<descr>
<p>
Replaces the currently running program with the program, specified in
<var>path</var>. Path is split into a command and it's options.
The executable in <var>path</var> is searched in the path, if it isn't
an absolute filename.
The environment in <var>ep</var> is passed to the program.
On success, <var>execle</var> does not return.
</p>
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt>
<dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt>
<dd> Not enough memory for kernel, or to split command line.</dd>
<dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execv"/>
<link id="Execvp"/>
<link id="Execl"/>
<link id="Execlp"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex11"/>
</element>
<element name="Execlp">
<short>Execute process (using argument list, environment; search path)</short>
<descr>
Replaces the currently running program with the program, specified in
<var>path</var>. Path is split into a command and it's options.
The executable in <var>path</var> is searched in the path, if it isn't
an absolute filename.
The current environment is passed to the program.
On success, <var>execlp</var> does not return.
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt><dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt><dd> Not enough memory for kernel, or to split command line.</dd>
<dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execv"/>
<link id="Execvp"/>
<link id="Execle"/>
<link id="Execl"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex12"/>
</element>
<element name="Execv">
<short>Execute process</short>
<descr>
Replaces the currently running program with the program, specified in
<var>path</var>.
It gives the program the options in <var>args</var>.
This is a pointer to an array of pointers to null-terminated
strings. The last pointer in this array should be nil.
The current environment is passed to the program.
On success, <var>execv</var> does not return.
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt><dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
<dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execvp"/>
<link id="Execle"/>
<link id="Execl"/>
<link id="Execlp"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex8"/>
</element>
<element name="Execve">
<short>Execute process using environment</short>
<descr>
Replaces the currently running program with the program, specified in
<var>path</var>.
It gives the program the options in <var>args</var>, and the environment in
<var>ep</var>. They are pointers to an array of pointers to null-terminated
strings. The last pointer in this array should be nil.
On success, <var>execve</var> does not return.
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt><dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
<dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execv"/>
<link id="Execvp"/>
<link id="Execle"/>
<link id="Execl"/>
<link id="Execlp"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex7"/>
</element>
<element name="Execvp">
<short>Execute process, search path</short>
<descr>
Replaces the currently running program with the program, specified in
<var>path</var>. The executable in <var>path</var> is searched in the path, if it isn't
an absolute filename.
It gives the program the options in <var>args</var>. This is a pointer to an array of pointers to null-terminated
strings. The last pointer in this array should be nil.
The current environment is passed to the program.
On success, <var>execvp</var> does not return.
</descr>
<errors>
<p>
Errors are reported in <var>LinuxError</var>:
</p>
<dl>
<dt>sys_eacces</dt>
<dd> File is not a regular file, or has no execute permission.
A compononent of the path has no search permission.</dd>
<dt>sys_eperm</dt><dd> The file system is mounted <i>noexec</i>.</dd>
<dt>sys_e2big</dt><dd> Argument list too big.</dd>
<dt>sys_enoexec</dt><dd> The magic number in the file is incorrect.</dd>
<dt>sys_enoent</dt><dd> The file does not exist.</dd>
<dt>sys_enomem</dt><dd> Not enough memory for kernel.</dd>
<dt>sys_enotdir</dt><dd> A component of the path is not a directory.</dd>
<dt>sys_eloop</dt><dd> The path contains a circular reference (via symlinks).</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Execv"/>
<link id="Execle"/>
<link id="Execl"/>
<link id="Execlp"/>
<link id="Fork"/>
</seealso>
<example file="olinuxex/ex9"/>
</element>
<element name="FD_ZERO">
<short>Clear all file descriptors in set</short>
<descr>
<p>
<var>FD_ZERO</var> clears all the filedescriptors in the file descriptor
set <var>fds</var>.
</p>
<p>
For an example, see <link id="Select"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Select"/>
<link id="SelectText"/>
<link id="GetFS"/>
<link id="FD_Clr"/>
<link id="FD_Set"/>
<link id="FD_IsSet"/>
</seealso>
</element>
<element name="FD_Clr">
<short>Clears a filedescriptor in a set</short>
<descr>
<p>
<var>FD_Clr</var> clears file descriptor <var>fd</var> in filedescriptor set <var>fds</var>.
</p>
<p>
For an example, see <link id="Select"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Select"/>,
<link id="SelectText"/>
<link id="GetFS"/>
<link id="FD_ZERO"/>
<link id="FD_Set"/>
<link id="FD_IsSet"/>
</seealso>
</element>
<element name="FD_IsSet">
<short>Check whether a filedescriptor is set</short>
<descr>
<p>
<var>FD_Set</var> Checks whether file descriptor <var>fd</var> in filedescriptor set <var>fds</var>
is set.
</p>
<p>
For an example, see <link id="Select"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Select"/>
<link id="SelectText"/>
<link id="GetFS"/>
<link id="FD_ZERO"/>
<link id="FD_Clr"/>
<link id="FD_Set"/>
</seealso>
</element>
<element name="FD_Set">
<short>Set a filedescriptor in a set</short>
<descr>
<p>
<var>FD_Set</var> sets file descriptor <var>fd</var> in filedescriptor set <var>fds</var>.
</p>
<p>
For an example, see <link id="Select"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Select"/>
<link id="SelectText"/>
<link id="GetFS"/>
<link id="FD_ZERO"/>
<link id="FD_Clr"/>
<link id="FD_IsSet"/>
</seealso>
</element>
<element name="fdClose">
<short>Close file descriptor</short>
<descr>
<p>
<var>fdClose</var> closes a file with file descriptor <var>Fd</var>. The function
returns <var>True</var> if the file was closed successfully, <var>False</var>
otherwise.
</p>
<p>
For an example, see <link id="fdOpen"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdRead"/>
<link id="fdWrite"/>
<link id="fdTruncate"/>
<link id="fdFlush"/>
<link id="fdSeek"/>
</seealso>
</element>
<element name="fdFlush">
<short>Flush kernel file buffer</short>
<descr>
<p>
<var>fdflush</var> flushes the Linux kernel file buffer, so the file is actually
written to disk. This is NOT the same as the internal buffer, maintained by
Free Pascal.
The function returns <var>True</var> if the call was successful, <var>false</var> if
an error occurred.
</p>
<p>
For an example, see <link id="fdRead"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdClose"/>
<link id="fdRead"/>
<link id="fdWrite"/>
<link id="fdTruncate"/>
<link id="fdSeek"/>
</seealso>
</element>
<element name="fdOpen">
<short>Open file and return file descriptor</short>
<descr>
<p>
<var>fdOpen</var> opens a file in <var>PathName</var> with flags <var>flags</var>
One of the following:
</p>
<dl>
<dt>Open_RdOnly</dt><dd>File is opened Read-only</dd>
<dt>Open_WrOnly</dt><dd>File is opened Write-only</dd>
<dt>Open_RdWr</dt><dd>File is opened Read-Write</dd>
</dl>
<p>
The flags may be<var>OR</var>-ed with one of the following constants:
</p>
<dl>
<dt>Open_Creat</dt><dd> File is created if it doesn't exist.</dd>
<dt>Open_Excl</dt><dd> If the file is opened with <var>Open_Creat</var> and it
already exists, the call wil fail.</dd>
<dt>Open_NoCtty</dt><dd> If the file is a terminal device, it will NOT become
the process' controlling terminal.</dd>
<dt>Open_Trunc</dt><dd> If the file exists, it will be truncated.</dd>
<dt>Open_Append</dt><dd> the file is opened in append mode. <em>Before each
write</em>, the file pointer is positioned at the end of the file.</dd>
<dt>Open_NonBlock</dt><dd> The file is opened in non-blocking mode. No operation
on the file descriptor will cause the calling process to wait till.</dd>
<dt>Open_NDelay</dt><dd> Idem as <var>Open_NonBlock</var></dd>
<dt>Open_Sync</dt><dd> The file is opened for synchronous IO. Any write
operation on the file will not return untill the data is physically written
to disk.</dd>
<dt>Open_NoFollow</dt><dd> if the file is a symbolic link, the open fails.
(linux 2.1.126 and higher only)</dd>
<dt>Open_Directory</dt><dd> if the file is not a directory, the open fails.
(linux 2.1.126 and higher only)</dd>
</dl>
<p>
<var>PathName</var> can be of type <var>PChar</var> or <var>String</var>.
The optional <var>mode</var> argument specifies the permissions to set when opening
the file. This is modified by the umask setting. The real permissions are
<var>Mode and not umask</var>.
The return value of the function is the filedescriptor, or a negative
value if there was an error.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdClose"/>
<link id="fdRead"/>
<link id="fdWrite"/>
<link id="fdTruncate"/>
<link id="fdFlush"/>
<link id="fdSeek"/>
</seealso>
<example file="olinuxex/ex19"/>
</element>
<element name="fdRead">
<short>Read data from file descriptor</short>
<descr>
<p>
<var>fdRead</var> reads at most <var>size</var> bytes from the file descriptor
<var>fd</var>, and stores them in <var>buf</var>.
The function returns the number of bytes actually read, or -1 if
an error occurred.
No checking on the length of <var>buf</var> is done.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdClose"/>
<link id="fdWrite"/>
<link id="fdTruncate"/>
<link id="fdFlush"/>
<link id="fdSeek"/>
</seealso>
<example file="olinuxex/ex20"/>
</element>
<element name="fdSeek">
<short>Set file pointer position.</short>
<descr>
<p>
<var>fdSeek</var> sets the current fileposition of file <var>fd</var> to
<var>Pos</var>, starting from <var>SeekType</var>, which can be one of the following:
</p>
<dl>
<dt>Seek_Set</dt><dd><var>Pos</var> is the absolute position in the file.</dd>
<dt>Seek_Cur</dt><dd><var>Pos</var> is relative to the current position.</dd>
<dt>Seek_end</dt><dd><var>Pos</var> is relative to the end of the file.</dd>
</dl>
<p>
The function returns the new fileposition, or -1 of an error occurred.
</p>
<p>
For an example, see <link id="fdOpen"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdWrite"/>
<link id="fdClose"/>
<link id="fdRead"/>
<link id="fdTruncate"/>
<link id="fdFlush"/>
</seealso>
</element>
<element name="fdTruncate">
<short>Truncate file on certain size.</short>
<descr>
<var>fdTruncate</var> sets the length of a file in <var>fd</var> on <var>size</var>
bytes, where <var>size</var> must be less than or equal to the current length of
the file in <var>fd</var>.
The function returns <var>True</var> if the call was successful, <var>false</var> if
an error occurred.
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdClose"/>
<link id="fdRead"/>
<link id="fdWrite"/>
<link id="fdFlush"/>
<link id="fdSeek"/>
</seealso>
</element>
<element name="fdWrite">
<short>Write data to file descriptor</short>
<descr>
<p>
<var>fdWrite</var> writes at most <var>size</var> bytes from <var>buf</var> to
file descriptor <var>fd</var>.
The function returns the number of bytes actually written, or -1 if an error
occurred.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="fdOpen"/>
<link id="fdClose"/>
<link id="fdRead"/>
<link id="fdTruncate"/>
<link id="fdSeek"/>
<link id="fdFlush"/>
</seealso>
</element>
<element name="FExpand">
<short>Expand filename to fully qualified path</short>
<descr>
<var>FExpand</var> expands <var>Path</var> to a full path, starting from root,
eliminating directory references such as . and .. from the result.
</descr>
<errors>
None
</errors>
<seealso>
<link id="BaseName"/>
<link id="DirName"/>
</seealso>
<example file="olinuxex/ex45"/>
</element>
<element name="FLock">
<short>Lock a file (advisory lock)</short>
<descr>
<p>
<var>FLock</var> implements file locking. it sets or removes a lock on the file
<var>F</var>. F can be of type <var>Text</var> or <var>File</var>, or it can be a linux
filedescriptor (a longint)
<var>Mode</var> can be one of the following constants :
</p>
<dl>
<dt>LOCK_SH</dt><dd>sets a shared lock.</dd>
<dt>LOCK_EX</dt><dd>sets an exclusive lock.</dd>
<dt>LOCK_UN</dt><dd>unlocks the file.</dd>
<dt>LOCK_NB</dt><dd>This can be OR-ed together with the other.
If this is done the application doesn't block when locking.
</dd>
</dl>
<p>
The function returns <var>True</var> if successful, <var>False</var> otherwise.
</p>
</descr>
<errors>
If an error occurs, it is reported in <var>LinuxError</var>.
</errors>
<seealso>
<link id="Fcntl"/>
</seealso>
</element>
<element name="FNMatch">
<short>Check whether filename matches wildcard specification</short>
<descr>
<p>
<var>FNMatch</var> returns <var>True</var> if the filename in <var>Name</var>
matches the wildcard pattern in <var>Pattern</var>, <var>False</var> otherwise.
</p>
<p>
<var>Pattern</var> can contain the wildcards <var>*</var> (match zero or more
arbitrary characters) or <var>?</var> (match a single character).
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="FSearch"/>
<link id="FExpand"/>
</seealso>
<example file="olinuxex/ex69"/>
</element>
<element name="FSearch">
<short>Search for file in search path.</short>
<descr>
<var>FSearch</var> searches in <var>DirList</var>, a colon separated list of directories,
for a file named <var>Path</var>. It then returns a path to the found file.
</descr>
<errors>
An empty string if no such file was found.
</errors>
<seealso>
<link id="BaseName"/>
<link id="DirName"/>
<link id="FExpand"/>
<link id="FNMatch"/>
</seealso>
<example file="olinuxex/ex46"/>
</element>
<element name="FSplit">
<short>Split filename into path, name and extension</short>
<descr>
<var>FSplit</var> splits a full file name into 3 parts : A <var>Path</var>, a
<var>Name</var> and an extension (in <var>ext</var>).
The extension is taken to be all letters after the last dot (.).
</descr>
<errors>
None.
</errors>
<seealso>
<link id="FSearch"/>
</seealso>
<example file="olinuxex/ex67"/>
</element>
<element name="FSStat">
<short>Retrieve filesystem information.</short>
<descr>
<var>FSStat</var> returns in <var>Info</var> information about the filesystem on which the file
<var>Path</var> resides, or on which the file with file descriptor <var>fd</var>
resides.
Info is of type <var>statfs</var>. The function returns <var>True</var> if the call
was succesfull, <var>False</var> if the call failed.
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_enotdir</dt><dd> A component of <var>Path</var> is not a directory.</dd>
<dt>sys_einval</dt><dd> Invalid character in <var>Path</var>.</dd>
<dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
<dt>sys_eaccess</dt><dd> Search permission is denied for component in<var>Path</var>.</dd>
<dt>sys_eloop</dt><dd> A circular symbolic link was encountered in <var>Path</var>.</dd>
<dt>sys_eio</dt><dd> An error occurred while reading from the filesystem.</dd>
</dl>
</errors>
<seealso>
<link id="FStat"/>
<link id="LStat"/>
</seealso>
<example file="olinuxex/ex30"/>
</element>
<element name="FStat">
<short>Retrieve information about a file</short>
<descr>
<p>
<var>FStat</var> gets information about the file specified in one of the
following:
</p>
<dl>
<dt>Path</dt><dd> a file on the filesystem. </dd>
<dt>Fd</dt><dd> a valid file descriptor.</dd>
<dt>F</dt><dd> an opened text file or untyped file.</dd>
</dl>
<p>
and stores it in <var>Info</var>, which is of type <var>stat</var>.
The function returns <var>True</var> if the call was succesfull,
<var>False</var> if the call failed.
</p>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
</dl>
</errors>
<seealso>
<link id="FSStat"/>
<link id="LStat"/>
</seealso>
<example file="olinuxex/ex28"/>
</element>
<element name="Fcntl">
<short>File control operations.</short>
<descr>
<p>
Read a file's attributes. <var>Fd</var> is an assigned file, or a valid file
descriptor.
<var>Cmd</var> speciefies what to do, and is one of the following:
</p>
<dl>
<dt>F_GetFd</dt>
<dd> Read the close_on_exec flag. If the low-order bit is 0, then
the file will remain open across execve calls.</dd>
<dt>F_GetFl</dt><dd>Read the descriptor's flags.</dd>
<dt>F_GetOwn</dt><dd>Get the Process ID of the owner of a socket.</dd>
<dt>F_SetFd</dt>
<dd> Set the close_on_exec flag of <var>Fd</var>. (only the least
siginificant bit is used).
</dd>
<dt>F_GetLk</dt>
<dd> Return the <var>flock</var> record that prevents this process from
obtaining the lock, or set the <var>l_type</var> field of the lock of there is no
obstruction. Arg is a pointer to a flock record.
</dd>
<dt>F_SetLk</dt>
<dd> Set the lock or clear it (depending on <var>l_type</var> in the
<var>flock</var> structure). if the lock is held by another process, an error
occurs.
</dd>
<dt>F_GetLkw</dt>
<dd> Same as for <b>F_Setlk</b>, but wait until the lock is
released.
</dd>
<dt>F_SetOwn</dt>
<dd> Set the Process or process group that owns a socket.
</dd>
</dl>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_ebadf</dt><dd> <var>Fd</var> has a bad file descriptor.</dd>
<dt>sys_eagain or sys_eaccess</dt><dd> For <b>F_SetLk</b>, if the lock is
held by another process.</dd>
</dl>
</errors>
</element>
<element name="Fork">
<short>Create child process</short>
<descr>
<var>Fork</var> creates a child process which is a copy of the parent process.
<var>Fork</var> returns the process ID in the parent process, and zero in the child's
process. (you can get the parent's PID with <link id="GetPPid"/>).
</descr>
<errors>
<p>
On error, -1 is returned to the parent, and no child is created.
</p>
<dl>
<dt>sys_eagain</dt><dd> Not enough memory to create child process.
</dd>
</dl>
</errors>
<seealso>
<link id="Execve"/>
<link id="Clone"/>
</seealso>
</element>
<element name="FRename">
<short>Rename file</short>
<descr>
<p>
<var>FRename</var> renames the file <var>OldName</var> to <var>NewName</var>. <var>NewName</var>
can be in a different directory than <var>OldName</var>, but it cannot be on
another partition (device). Any existing file on the new location will be replaced.
</p>
<p>
If the operation fails, then the <var>OldName</var> file will be preserved.
</p>
<p>
The function returns <var>True</var> on succes, <var>False</var> on failure.
</p>
</descr>
<errors>
<p>
On error, errors are reported in <var>LinuxError</var>. Possible errors include:
</p>
<dl>
<dt>sys_eisdir</dt>
<dd><var>NewName</var> exists and is a directory, but <var>OldName</var> is not a directory.</dd>
<dt>sys_exdev</dt>
<dd><var>NewName</var> and <var>OldName</var> are on different devices.</dd>
<dt>sys_enotempty or sys_eexist</dt>
<dd><var>NewName</var> is an existing, non-empty directory. </dd>
<dt>sys_ebusy</dt>
<dd><var>OldName</var> or <var>NewName</var> is a directory and is in use by another process.</dd>
<dt>sys_einval</dt>
<dd><var>NewName</var> is part of <var>OldName</var>.</dd>
<dt>sys_emlink</dt>
<dd><var>OldPath</var> or <var>NewPath</var> already have tha maximum
amount of links pointing to them.</dd>
<dt>sys_enotdir</dt>
<dd>part of <var>OldName</var> or <var>NewName</var> is not directory.</dd>
<dt>sys_efault</dt>
<dd>For the <var>pchar</var> case: One of the pointers points to
an invalid address.</dd>
<dt>sys_eaccess</dt>
<dd>access is denied when attempting to move the file.</dd>
<dt>sys_enametoolong</dt>
<dd> Either <var>OldName</var> or <var>NewName</var> is too long.</dd>
<dt>sys_enoent</dt>
<dd>a directory component in <var>OldName</var> or <var>NewName</var>
didn't exist.</dd>
<dt>sys_enomem</dt>
<dd>not enough kernel memory.</dd>
<dt>sys_erofs</dt>
<dd><var>NewName</var> or <var>OldName</var> is on a read-only file system.</dd>
<dt>sys_eloop</dt>
<dd> too many symbolic links were encountered trying to expand
<var>OldName</var> or <var>NewName</var></dd>
<dt>sys_enospc</dt>
<dd> the filesystem has no room for the new directory entry.</dd>
</dl>
</errors>
<seealso>
<link id="UnLink"/>
</seealso>
</element>
<element name="GetDate">
<short>Return the system date</short>
<descr>
Returns the current date.
</descr>
<errors>
None
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="GetTime"/>
<link id="GetDateTime"/>
<link id="EpochToLocal"/>
</seealso>
<example file="olinuxex/ex6"/>
</element>
<element name="GetDateTime">
<short>Return system date and time</short>
<descr>
Returns the current date and time. The time is corrected for the local time
zone. This procedure is equivalent to the <link id="GetDate"/> and <var>GetTime</var>
calls.
</descr>
<errors>
None
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="GetTime"/>
<link id="EpochToLocal"/>
<link id="GetDate"/>
</seealso>
<example file="olinuxex/ex60"/>
</element>
<element name="GetDomainName">
<short>Return current domain name</short>
<descr>
Get the domain name of the machine on which the process is running.
An empty string is returned if the domain is not set.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetHostName"/>
</seealso>
<example file="olinuxex/ex39"/>
</element>
<element name="GetEGid">
<short>Return effective group ID</short>
<descr>
Get the effective group ID of the currently running process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetGid"/>
</seealso>
<example file="olinuxex/ex18"/>
</element>
<element name="GetEUid">
<short>Return effective user ID</short>
<descr>
Get the effective user ID of the currently running process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetUid"/>
</seealso>
<example file="olinuxex/ex17"/>
</element>
<element name="GetEnv">
<short>Return value of environment variable.</short>
<descr>
<p>
<var>GetEnv</var> returns the value of the environment variable in <var>P</var>.
If the variable is not defined, nil is returned. The value of the environment
variable may be the empty string.
A PChar is returned to accomodate for strings longer than 255 bytes,
<var>TERMCAP</var> and <var>LS_COLORS</var>, for instance.
</p>
</descr>
<errors>
None.
</errors>
<example file="olinuxex/ex41"/>
</element>
<element name="GetEpochTime">
<short>Return the current unix time</short>
<descr>
<p>
returns the number of seconds since 00:00:00 gmt, january 1, 1970.
it is adjusted to the local time zone, but not to DST.
</p>
</descr>
<errors>
no errors
</errors>
<seealso>
<link id="EpochToLocal"/>
<link id="GetTime"/>
</seealso>
<example file="olinuxex/ex1"/>
</element>
<element name="GetFS">
<short>Return file selector</short>
<descr>
<var>GetFS</var> returns the file selector that the kernel provided for your
file. In principle you don' need this file selector. Only for some calls
it is needed, such as the <link id="Select"/> call or so.
</descr>
<errors>
In case the file was not opened, then -1 is returned.
</errors>
<seealso>
<link id="Select"/>
</seealso>
<example file="olinuxex/ex34"/>
</element>
<element name="GetGid">
<short>Return real group ID</short>
<descr>
Get the real group ID of the currently running process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetEGid"/>
</seealso>
<example file="olinuxex/ex18"/>
</element>
<element name="GetHostName">
<short>Return host name</short>
<descr>
Get the hostname of the machine on which the process is running.
An empty string is returned if hostname is not set.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetDomainName"/>
</seealso>
<example file="olinuxex/ex40"/>
</element>
<element name="GetLocalTimezone">
<short>Return local timzeone information</short>
<descr>
<p>
<var>GetLocalTimeZone</var> returns the local timezone information. It also
initializes the <var>TZSeconds</var> variable, which is used to correct the epoch time
to local time.
</p>
<p>
There should never be any need to call this function directly. It is called by the
initialization routines of the Linux unit.
</p>
</descr>
<seealso>
<link id="GetTimezoneFile"/>
<link id="ReadTimezoneFile"/>
</seealso>
</element>
<element name="GetPid">
<short>Return current process ID</short>
<descr>
Get the Process ID of the currently running process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetPPid"/>
</seealso>
<example file="olinuxex/ex16"/>
</element>
<element name="GetPPid">
<short>Return parent process ID</short>
<descr>
Get the Process ID of the parent process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetPid"/>
</seealso>
<example file="olinuxex/ex16"/>
</element>
<element name="GetPriority">
<short>Return process priority</short>
<descr>
<p>
GetPriority returns the priority with which a process is running.
Which process(es) is determined by the <var>Which</var> and <var>Who</var> variables.
<var>Which</var> can be one of the pre-defined <var>Prio_Process</var>,
<var>Prio_PGrp</var>, <var>Prio_User</var>, in which case <var>Who</var> is the process ID, Process group ID or
User ID, respectively.
</p>
<p>
For an example, see <link id="Nice"/>.
</p>
</descr>
<errors>
<p>
Error checking must be done on LinuxError, since a priority can be negative.
</p>
<dl>
<dt>sys_esrch</dt>
<dd> No process found using <var>which</var> and <var>who</var>. </dd>
<dt>sys_einval</dt>
<dd> <var>Which</var> was not one of <var>Prio_Process</var>,
<var>Prio_Grp</var> or <var>Prio_User</var>.</dd>
</dl>
</errors>
<seealso>
<link id="SetPriority"/>
<link id="Nice"/>
</seealso>
</element>
<element name="GetTime">
<short>Return current system time</short>
<descr>
<p>
Returns the current time of the day, adjusted to local time.
Upon return, the parameters are filled with
</p>
<dl>
<dt>hour</dt><dd> Hours since 00:00 today.</dd>
<dt>min</dt><dd> minutes in current hour.</dd>
<dt>sec</dt><dd> seconds in current minute.</dd>
<dt>sec100</dt><dd> hundreds of seconds in current second.</dd>
<dt>msec</dt><dd> milliseconds in current second.</dd>
<dt>usec</dt><dd> microseconds in current second.</dd>
</dl>
</descr>
<errors>
None
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="GetDate"/>
<link id="GetDateTime"/>
<link id="EpochToLocal"/>
</seealso>
<example file="olinuxex/ex5"/>
</element>
<element name="GetTimeOfDay">
<short>Return kernel time of day in GMT</short>
<descr>
<p>
<var>GetTimeOfDay</var> returns the number of seconds since 00:00, January 1
1970, GMT in a <var>timeval</var> record. This time NOT corrected any way,
not taking into account timezones, daylight savings time and so on.
</p>
<p>
It is simply a wrapper to the kernel system call. To get the local time,
<link id="GetTime"/>.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetTime"/>
<link id="GetTimeOfDay"/>
</seealso>
</element>
<element name="GetTimezoneFile">
<short>Return name of timezone information file</short>
<descr>
<p>
<var>GetTimezoneFile</var> returns the location of the current timezone file.
The location of file is determined as follows:
</p>
<ol>
<li>If <file>/etc/timezone</file> exists, it is read, and the contents of this
file is returned. This should work on Debian systems.</li>
<li>If <file>/usr/lib/zoneinfo/localtime</file> exists, then it is returned.
(this file is a symlink to the timezone file on SuSE systems)</li>
<li>If <file>/etc/localtime</file> exists, then it is returned.
(this file is a symlink to the timezone file on RedHat systems)</li>
</ol>
</descr>
<errors>
If no file was found, an empty string is returned.
</errors>
<seealso>
<link id="ReadTimezoneFile"/>
</seealso>
</element>
<element name="GetUid">
<short>Return current user ID</short>
<descr>
Get the real user ID of the currently running process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetEUid"/>
</seealso>
<example file="olinuxex/ex17"/>
</element>
<element name="Glob">
<short>Find filenames matching a wildcard pattern</short>
<descr>
<p
>Glob returns a pointer to a glob structure which contains all filenames which
exist and match the pattern in <var>Path</var>.
The pattern can contain wildcard characters, which have their
usual meaning.
</p>
</descr>
<errors>
<p>
Returns nil on error, and <var>LinuxError</var> is set.
</p>
<dl>
<dt>sys_enomem</dt><dd> No memory on heap for glob structure.</dd>
<dt>others</dt><dd> As returned by the opendir call, and sys_readdir.</dd>
</dl>
</errors>
<seealso>
<link id="GlobFree"/>
</seealso>
<example file="olinuxex/ex49"/>
</element>
<element name="GlobFree">
<short>Free result of <link id="Glob"/> call</short>
<descr>
<p>
Releases the memory, occupied by a pglob structure. <var>P</var> is set to nil.
</p>
<p>
For an example, see <link id="Glob"/>.
</p>
</descr>
<errors>
None
</errors>
<seealso>
<link id="Glob"/>
</seealso>
</element>
<element name="IOCtl">
<short>General kernel IOCTL call.</short>
<descr>
This is a general interface to the Unix/ linux ioctl call.
It performs various operations on the filedescriptor <var>Handle</var>.
<var>Ndx</var> describes the operation to perform.
<var>Data</var> points to data needed for the <var>Ndx</var> function.
The structure of this data is function-dependent, so we don't elaborate on
this here.
For more information on this, see various manual pages under linux.
</descr>
<errors>
Errors are reported in LinuxError. They are very dependent on the used
function, that's why we don't list them here
</errors>
<example file="olinuxex/ex54"/>
</element>
<element name="IOperm">
<short>Set permission on IO ports</short>
<descr>
<p>
<var>IOperm</var>
sets permissions on <var>Num</var> ports starting with port <var>From</var> to
<var>Value</var>. The function returns <var>True</var> if the call was successfull,
<var>False</var> otherwise.
</p>
<p>
Note:
</p>
<ul>
<li> This works ONLY as root.</li>
<li> Only the first <var>0x03ff</var> ports can be set.</li>
<li> When doing a <link id="Fork"/>, the permissions are reset. When doing a
<link id="Execve"/> they are kept.</li>
</ul>
</descr>
<errors>
Errors are returned in <var>LinuxError</var>
</errors>
</element>
<element name="IsATTY">
<short>Check if filehandle is a TTY (terminal)</short>
<descr>
<p>
Check if the filehandle described by <var>f</var> is a terminal.
<var>f</var> can be of type
</p>
<ol>
<li><var>longint</var> for file handles;</li>
<li><var>Text</var> for <var>text</var> variables such as <var>input</var> etc.</li>
</ol>
<p>
Returns <var>True</var> if <var>f</var> is a terminal, <var>False</var> otherwise.
</p>
</descr>
<errors>
No errors are reported
</errors>
<seealso>
<link id="IOCtl"/>
<link id="TTYName"/>
</seealso>
</element>
<element name="S_ISBLK">
<short>Is file a block device</short>
<descr>
<var>S_ISBLK</var> checks the file mode <var>m</var> to see whether the file is a
block device file. If so it returns <var>True</var>.
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISLNK"/>
<link id="S_ISREG"/>
<link id="S_ISDIR"/>
<link id="S_ISCHR"/>
<link id="S_ISFIFO"/>
<link id="S_ISSOCK"/>
</seealso>
</element>
<element name="S_ISCHR">
<short>Is file a character device</short>
<descr>
<var>S_ISCHR</var> checks the file mode <var>m</var> to see whether the file is a
character device file. If so it returns <var>True</var>.
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISLNK"/>
<link id="S_ISREG"/>
<link id="S_ISDIR"/>
<link id="S_ISBLK"/>
<link id="S_ISFIFO"/>
<link id="S_ISSOCK"/>
</seealso>
</element>
<element name="S_ISDIR">
<short>Is file a directory</short>
<descr>
<var>S_ISDIR</var> checks the file mode <var>m</var> to see whether the file is a
directory. If so it returns <var>True</var>
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISLNK"/>
<link id="S_ISREG"/>
<link id="S_ISCHR"/>
<link id="S_ISBLK"/>
<link id="S_ISFIFO"/>
<link id="S_ISSOCK"/>
</seealso>
</element>
<element name="S_ISFIFO">
<short>Is file a FIFO</short>
<descr>
<var>S_ISFIFO</var> checks the file mode <var>m</var> to see whether the file is a
fifo (a named pipe). If so it returns <var>True</var>.
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISLNK"/>
<link id="S_ISREG"/>
<link id="S_ISCHR"/>
<link id="S_ISBLK"/>
<link id="S_ISDIR"/>
<link id="S_ISSOCK"/>
</seealso>
</element>
<element name="S_ISLNK">
<short>Is file a symbolic link</short>
<descr>
<var>S_ISLNK</var> checks the file mode <var>m</var> to see whether the file is a
symbolic link. If so it returns <var>True</var>
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISFIFO"/>
<link id="S_ISREG"/>
<link id="S_ISCHR"/>
<link id="S_ISBLK"/>
<link id="S_ISDIR"/>
<link id="S_ISSOCK"/>
</seealso>
<example file="olinuxex/ex53"/>
</element>
<element name="S_ISREG">
<short>Is file a regular file</short>
<descr>
<var>S_ISREG</var> checks the file mode <var>m</var> to see whether the file is a
regular file. If so it returns <var>True</var>
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISFIFO"/>
<link id="S_ISLNK"/>
<link id="S_ISCHR"/>
<link id="S_ISBLK"/>
<link id="S_ISDIR"/>
<link id="S_ISSOCK"/>
</seealso>
</element>
<element name="S_ISSOCK">
<short>Is file a unix socket</short>
<descr>
<var>S_ISSOCK</var> checks the file mode <var>m</var> to see whether the file is a
socket. If so it returns <var>True</var>.
</descr>
<seealso>
<link id="FStat"/>
<link id="S_ISFIFO"/>
<link id="S_ISLNK"/>
<link id="S_ISCHR"/>
<link id="S_ISBLK"/>
<link id="S_ISDIR"/>
<link id="S_ISREG"/>
</seealso>
</element>
<element name="Kill">
<short>Send a signal to a process</short>
<descr>
Send a signal <var>Sig</var> to a process or process group. If <var>Pid</var>>0 then
the signal is sent to <var>Pid</var>, if it equals -1, then the signal is sent to
all processes except process 1. If <var>Pid</var><-1 then the signal is sent to
process group -Pid.
The return value is zero, except in case three, where the return value is the
number of processes to which the signal was sent.
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors:
</p>
<dl>
<dt>sys_einval</dt><dd> An invalid signal is sent.</dd>
<dt>sys_esrch</dt><dd> The <var>Pid</var> or process group don't exist.</dd>
<dt>sys_eperm</dt><dd> The effective userid of the current process doesn't math
the one of process <var>Pid</var>.</dd>
</dl>
</errors>
<seealso>
<link id="SigAction"/>
<link id="Signal"/>
</seealso>
</element>
<element name="LStat">
<short>Return information about symbolic link. Do not follow the link</short>
<descr>
<var>LStat</var> gets information about the link specified in <var>Path</var>, and stores it in
<var>Info</var>, which is of type <var>stat</var>. Contrary to <var>FStat</var>, it stores
information about the link, not about the file the link points to.
The function returns <var>True</var> if the call was succesfull, <var>False</var> if the call
failed.
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_enoent</dt><dd> <var>Path</var> does not exist.</dd>
</dl>
</errors>
<seealso>
<link id="FStat"/>
<link id="FSStat"/>
</seealso>
<example file="olinuxex/ex29"/>
</element>
<element name="Link">
<short>Create a hard link to a file</short>
<descr>
<var>Link</var> makes <var>NewPath</var> point to the same file als <var>OldPath</var>. The two files
then have the same inode number. This is known as a 'hard' link.
The function returns <var>True</var> if the call was succesfull, <var>False</var> if the call
failed.
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_exdev</dt>
<dd> <var>OldPath</var> and <var>NewPath</var> are not on the same filesystem.</dd>
<dt>sys_eperm</dt><dd> The filesystem containing oldpath and newpath doesn't
support linking files.</dd>
<dt>sys_eaccess</dt>
<dd>Write access for the directory containing <var>Newpath</var>
is disallowed, or one of the directories in <var>OldPath</var> or {NewPath} has no
search (=execute) permission.</dd>
<dt>sys_enoent</dt>
<dd>A directory entry in <var>OldPath</var> or <var>NewPath</var> does
not exist or is a symbolic link pointing to a non-existent directory.</dd>
<dt>sys_enotdir</dt>
<dd> A directory entry in <var>OldPath</var> or <var>NewPath</var> is
nor a directory.</dd>
<dt>sys_enomem</dt><dd> Insufficient kernel memory.</dd>
<dt>sys_erofs</dt><dd> The files are on a read-only filesystem.</dd>
<dt>sys_eexist</dt><dd> <var>NewPath</var> already exists.</dd>
<dt>sys_emlink</dt><dd> <var>OldPath</var> has reached maximal link count.</dd>
<dt>sys_eloop</dt>
<dd><var>OldPath</var> or <var>NewPath</var> has a reference to a circular
symbolic link, i.e. a symbolic link, whose expansion points to itself.</dd>
<dt>sys_enospc</dt>
<dd> The device containing <var>NewPath</var> has no room for another
entry.</dd>
<dt>sys_eperm</dt>
<dd><var>OldPath</var> points to . or .. of a directory.</dd>
</dl>
</errors>
<seealso>
<link id="SymLink"/>
<link id="UnLink"/>
</seealso>
<example file="olinuxex/ex21"/>
</element>
<element name="LocalToEpoch">
<short>Convert local time to epoch (unix) time</short>
<descr>
Converts the Local time to epoch time (=Number of seconds since 00:00:00 , January 1,
1970 ).
</descr>
<errors>
None
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="EpochToLocal"/>
<link id="GetTime"/>
<link id="GetDate"/>
</seealso>
<example file="olinuxex/ex4"/>
</element>
<element name="MkFifo">
<short>Create FIFO (named pipe) in file system</short>
<descr>
<var>MkFifo</var> creates named a named pipe in the filesystem, with name
<var>PathName</var> and mode <var>Mode</var>.
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors:
</p>
<dl>
<dt>sys_emfile</dt><dd> Too many file descriptors for this process.</dd>
<dt>sys_enfile</dt><dd> The system file table is full.</dd>
</dl>
</errors>
<seealso>
<link id="POpen"/>
<link id="MkFifo"/>
</seealso>
</element>
<element name="MMap">
<short>Create memory map of a file</short>
<descr>
<p>
<var>MMap</var> maps or unmaps files or devices into memory. The different fields
of the argument <var>m</var> determine what and how the <var>mmap</var> maps this:
</p>
<dl>
<dt>address</dt>
<dd> Address where to mmap the device. This address is a hint,
and may not be followed.</dd>
<dt>size</dt><dd> Size (in bytes) of area to be mapped.</dd>
<dt>prot</dt>
<dd>
<p> Protection of mapped memory. This is a OR-ed combination of the
following constants:</p>
<dl>
<dt>PROT_EXEC</dt><dd> The memory can be executed.</dd>
<dt>PROT_READ</dt><dd> The memory can be read.</dd>
<dt>PROT_WRITE</dt><dd> The memory can be written.</dd>
<dt>PROT_NONE</dt><dd> The memory can not be accessed.</dd>
</dl>
</dd>
<dt>flags</dt><dd><p>Contains some options for the mmap call. It is an OR-ed
combination of the following constants:</p>
<dl>
<dt>MAP_FIXED</dt>
<dd> Do not map at another address than the given address. If the
address cannot be used, <var>MMap</var> will fail.</dd>
<dt>MAP_SHARED</dt>
<dd> Share this map with other processes that map this object.</dd>
<dt>MAP_PRIVATE</dt>
<dd> Create a private map with copy-on-write semantics.</dd>
<dt>MAP_ANONYMOUS</dt>
<dd> <var>fd</var> does not have to be a file descriptor.</dd>
</dl>
<p>
One of the options <var>MAP_SHARED</var> and <var>MAP_PRIVATE</var> must be present,
but not both at the same time.
</p>
</dd>
<dt>fd</dt><dd> File descriptor from which to map.</dd>
<dt>offset</dt><dd> Offset to be used in file descriptor fd.</dd>
</dl>
<p>
The function returns a pointer to the mapped memory, or a -1 in case of en
error.
</p>
</descr>
<errors>
<p>
On error, -1 is returned and LinuxError is set to the error code:
</p>
<dl>
<dt>Sys_EBADF</dt>
<dd> <var>fd</var> is not a valid file descriptor and
<var>MAP_ANONYMOUS</var> was not specified.</dd>
<dt>Sys_EACCES</dt>
<dd><var>MAP_PRIVATE</var> was specified, but fd is not open for
reading. Or <var>MAP_SHARED</var> was asked and <var>PROT_WRITE</var> is set, fd
is not open for writing</dd>
<dt>Sys_EINVAL</dt>
<dd> One of the record fields <var>Start</var>, <var>length</var> or
<var>offset</var> is invalid.</dd>
<dt>Sys_ETXTBUSY</dt>
<dd> <var>MAP_DENYWRITE</var> was set but the object specified
by fd is open for writing.</dd>
<dt>Sys_EAGAIN</dt>
<dd> <var>fd</var> is locked, or too much memory is locked.</dd>
<dt>Sys_ENOMEM</dt>
<dd> Not enough memory for this operation.</dd>
</dl>
</errors>
<seealso>
<link id="MUnMap"/>
</seealso>
<example file="olinuxex/ex66"/>
</element>
<element name="MUnMap">
<short>Unmap previously mapped memory block</short>
<descr>
<p>
<var>MUnMap</var> unmaps the memory block of size <var>Size</var>, pointed to by
<var>P</var>, which was previously allocated with <link id="MMap"/>.
</p>
<p>
The function returns <var>True</var> if successful, <var>False</var> otherwise.
</p>
<p>
For an example, see <link id="MMap"/>.
</p>
</descr>
<errors>
In case of error the function returns <var>False</var> and <var>LinuxError</var>
is set to an error value. See <link id="MMap"/> for possible error values.
</errors>
<seealso>
<link id="MMap"/>
</seealso>
</element>
<element name="NanoSleep">
<short>Suspend process for a short time</short>
<descr>
<p>
<var>NanoSleep</var> suspends the process till a time period as specified
in <var>req</var> has passed. Then the function returns. If the
call was interrupted (e.g. by some signal) then the function may
return earlier, and <var>rem</var> will contain the remaining time till the
end of the intended period. In this case the return value will be
-1, and <var>LinuxError</var> will be set to <var>EINTR</var>
</p>
<p>
If the function returns without error, the return value is zero.
</p>
</descr>
<errors>
If the call was interrupted, -1 is returned, and <var>LinuxError</var> is set
to <var>EINTR</var>. If invalid time values were specified, then -1 is returned
and <var>LinuxError</var> is set to <var>EINVAL</var>.
</errors>
<seealso>
<link id="Pause"/>
<link id="Alarm"/>
</seealso>
<example file="olinuxex/ex72"/>
</element>
<element name="Nice">
<short>Set process priority</short>
<descr>
<p>
<var>Nice</var> adds <var>-N</var> to the priority of the running process. The lower the
priority numerically, the less the process is favored.
Only the superuser can specify a negative <var>N</var>, i.e. increase the rate at
which the process is run.
</p>
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>
</p>
<dl>
<dt>sys_eperm</dt><dd> A non-superuser tried to specify a negative <var>N</var>, i.e.
do a priority increase.</dd>
</dl>
</errors>
<seealso>
<link id="GetPriority"/>
<link id="SetPriority"/>
</seealso>
<example file="olinuxex/ex15"/>
</element>
<element name="Octal">
<short>Convert octal to decimal value</short>
<descr>
<p>
<var>Octal</var> will convert a number specified as an octal number to it's
decimal value.
</p>
<p>
This is useful for the <link id="Chmod"/> call, where permissions are specified
as octal numbers.
</p>
</descr>
<errors>
No checking is performed whether the given number is a correct Octal number.
e.g. specifying <var>998</var> is possible; the result will be wrong in that
case.
</errors>
<seealso>
<link id="Chmod"/>
</seealso>
<example file="olinuxex/ex68"/>
</element>
<element name="OpenDir">
<short>Open directory for reading</short>
<descr>
<var>OpenDir</var> opens the directory <var>f</var>, and returns a <var>pdir</var>
pointer to a <var>Dir</var> record, which can be used to read the directory
structure. If the directory cannot be opened, <var>nil</var> is returned.
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="CloseDir"/>
<link id="ReadDir"/>
<link id="SeekDir"/>
<link id="TellDir"/>
</seealso>
<example file="olinuxex/ex35"/>
</element>
<element name="pause">
<short>Wait for a signal</short>
<descr>
<p>
<var>Pause</var> puts the process to sleep and waits until the application
receives a signal. If a signal handler is installed for the received
sigal, the handler will be called and after that pause will return
control to the process.
</p>
<p>
For an example, see <link id="Alarm"/>.
</p>
</descr>
<link id="Alarm"/>
<link id="SigAction"/>
</element>
<element name="PClose">
<short>Close file opened with <link id="POpen"/></short>
<descr>
<p>
<var>PClose</var> closes a file opened with <link id="POpen"/>. It waits for the
command to complete, and then returns the exit status of the command.
</p>
<p>
For an example, see <link id="POpen"/>
</p>
</descr>
<errors>
<var>LinuxError</var> is used to report errors. If it is different from zero,
the exit status is not valid.
</errors>
<seealso>
<link id="POpen"/>
</seealso>
</element>
<element name="POpen">
<short>Pipe file to standard input/output of program</short>
<descr>
<var>POpen</var> runs the command specified in <var>Cmd</var>,
and redirects the standard in or output of the
command to the other end of the pipe <var>F</var>. The parameter <var>rw</var>
indicates the direction of the pipe. If it is set to <var>'W'</var>, then F can
be used to write data, which will then be read by the command from stdinput.
If it is set to <var>'R'</var>, then the standard output of the command can be
read from <var>F</var>. <var>F</var> should be reset or rewritten prior to using it.
<var>F</var> can be of type <var>Text</var> or <var>File</var>.
A file opened with <var>POpen</var> can be closed with <var>Close</var>, but also
with <link id="PClose"/>. The result is the same, but <var>PClose</var> returns the
exit status of the command <var>Cmd</var>.
</descr>
<errors>
Errors are reported in <var>LinuxError</var> and are essentially those of the
Execve, Dup and AssignPipe commands.
</errors>
<seealso>
<link id="AssignPipe"/>
<link id="PClose"/>
</seealso>
<example file="olinuxex/ex37"/>
</element>
<element name="ReadDir">
<short>Read entry from directory</short>
<descr>
<p>
<var>ReadDir</var> reads the next entry in the directory pointed to by <var>p</var>.
It returns a <var>pdirent</var> pointer to a structure describing the entry.
If the next entry can't be read, <var>Nil</var> is returned.
</p>
<p>
For an example, see <link id="OpenDir"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="CloseDir"/>
<link id="OpenDir"/>
<link id="SeekDir"/>
<link id="TellDir"/>,
</seealso>
</element>
<element name="ReadLink">
<short>Read destination of symbolic link</short>
<descr>
<p>
<var>ReadLink</var> returns the file the symbolic link <var>name</var> is pointing
to. The first form of this function accepts a buffer <var>linkname</var> of
length <var>maxlen</var> where the filename will be stored. It returns the
actual number of characters stored in the buffer.
</p>
<p>
The second form of the function returns simply the name of the file.
</p>
</descr>
<errors>
<p>
On error, the first form of the function returns -1; the second one returns
an empty string. <var>LinuxError</var> is set to report errors:
</p>
<dl>
<dt>SYS_ENOTDIR</dt>
<dd>A part of the path in <var>Name</var> is not a directory.</dd>
<dt>SYS_EINVAL</dt>
<dd>maxlen is not positive, or the file is not a symbolic link.</dd>
<dt>SYS_ENAMETOOLONG</dt>
<dd>A pathname, or a component of a pathname, was too long.</dd>
<dt>SYS_ENOENT</dt>
<dd>the link <var>name</var> does not exist.</dd>
<dt>SYS_EACCES</dt>
<dd>No permission to search a directory in the path</dd>
<dt>SYS_ELOOP</dt>
<dd>Too many symbolic links were encountered in translating the pathname.</dd>
<dt>SYS_EIO</dt>
<dd>An I/O error occurred while reading from the file system.</dd>
<dt>SYS_EFAULT</dt>
<dd>The buffer is not part of the the process's memory space.</dd>
<dt>SYS_ENOMEM</dt>
<dd>Not enough kernel memory was available.</dd>
</dl>
</errors>
<seealso>
<link id="SymLink"/>
</seealso>
<example file="olinuxex/ex62"/>
</element>
<element name="ReadTimezoneFile">
<short>Read the timezone file and initialize time routines</short>
<descr>
<p>
<var>ReadTimeZoneFile</var> reads the timezone file <var>fn</var> and initializes
the local time routines based on the information found there.
</p>
<p>
There should be no need to call this function. The initialization routines
of the <file>linux</file> unit call this routine at unit startup.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="GetTimezoneFile"/>
<link id="GetLocalTimezone"/>
</seealso>
</element>
<element name="SeekDir">
<short>Seek to position in directory</short>
<descr>
<p>
<var>SeekDir</var> sets the directory pointer to the <var>off</var>-th entry in the
directory structure pointed to by <var>p</var>.
</p>
<p>
For an example, see <link id="OpenDir"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="CloseDir"/>
<link id="ReadDir"/>
<link id="OpenDir"/>
<link id="TellDir"/>
</seealso>
</element>
<element name="Select">
<short>Wait for events on file descriptors</short>
<descr>
<p>
<var>Select</var> checks one of the file descriptors in the <var>FDSets</var> to see if its
status changed.
</p>
<p>
<var>readfds, writefds</var> and <var>exceptfds</var> are pointers to arrays of 256
bits. If you want a file descriptor to be checked, you set the
corresponding element in the array to 1. The other elements in the array
must be set to zero. Three arrays are passed : The entries in <var>readfds</var>
are checked to see if characters become available for reading. The entries
in <var>writefds</var> are checked to see if it is OK to write to them, while
entries in <var>exceptfds</var> are cheked to see if an exception occorred on
them.
</p>
<p>
You can use the functions <link id="FD_ZERO"/>
<link id="FD_Clr"/>,
<link id="FD_Set"/> or
<link id="FD_IsSet"/> to manipulate the individual elements of a set.
</p>
<p>
The pointers can be <var>Nil</var>.
</p>
<p>
<var>N</var> is the largest index of a nonzero entry plus 1. (= the largest
file-descriptor + 1).
</p>
<p>
<var>TimeOut</var> can be used to set a time limit.
If <var>TimeOut</var> can be two types :
</p>
<ol>
<li><var>TimeOut</var> is of type <var>PTime</var> and contains a
zero time, the call returns immediately. If <var>TimeOut</var> is <var>Nil</var>, the
kernel will wait forever, or until a status changed. </li>
<li><var>TimeOut</var> is of type <var>Longint</var>. If it is -1, this has the same
effect as a <var>Timeout</var> of type <var>PTime</var> which is <var>Nil</var>.
Otherwise, <var>TimeOut</var> contains a time in milliseconds.</li>
</ol>
<p>
When the TimeOut is reached, or one of the file descriptors has changed,
the <var>Select</var> call returns. On return, it will have modified the entries
in the array which have actually changed, and it returns the number of
entries that have been changed. If the timout was reached, and no decsriptor
changed, zero is returned; The arrays of indexes are undefined after that.
On error, -1 is returned.
</p>
</descr>
<errors>
<p>
On error, the function returns -1, and Errors are reported in LinuxError :
</p>
<dl>
<dt>SYS_EBADF</dt>
<dd>An invalid descriptor was specified in one of the sets.</dd>
<dt>SYS_EINTR</dt>
<dd>A non blocked signal was caught.</dd>
<dt>SYS_EINVAL</dt>
<dd><var>N</var> is negative or too big.</dd>
<dt>SYS_ENOMEM</dt>
<dd><var>Select</var> was unable to allocate memory for its internal tables.</dd>
</dl>
</errors>
<seealso>
<link id="SelectText"/>
<link id="GetFS"/>
<link id="FD_ZERO"/>
<link id="FD_Clr"/>
<link id="FD_Set"/>
<link id="FD_IsSet"/>
</seealso>
<example file="olinuxex/ex33"/>
</element>
<element name="SelectText">
<short>Wait for event on typed ontyped file.</short>
<descr>
<var>SelectText</var> executes the <link id="Select"/> call on a file of type
<var>Text</var>. You can specify a timeout in <var>TimeOut</var>. The SelectText call
determines itself whether it should check for read or write, depending on
how the file was opened : With <var>Reset</var> it is checked for reading, with
<var>Rewrite</var> and <var>Append</var> it is checked for writing.
</descr>
<errors>
See <link id="Select"/>. <var>SYS_EBADF</var> can also mean that the file wasn't
opened.
</errors>
<seealso>
<link id="Select"/>
<link id="GetFS"/>
</seealso>
</element>
<element name="SetPriority">
<short>Set process priority</short>
<descr>
<p>
SetPriority sets the priority with which a process is running.
Which process(es) is determined by the <var>Which</var> and <var>Who</var> variables.
<var>Which</var> can be one of the pre-defined constants:
</p>
<dl>
<dt>Prio_Process</dt><dd><var>Who</var> is interpreted as process ID</dd>
<dt>Prio_PGrp</dt><dd><var>Who</var> is interpreted as process group ID</dd>
<dt>Prio_User</dt><dd><var>Who</var> is interpreted as user ID</dd>
</dl>
<p>
<var>Prio</var> is a value in the range -20 to 20.
</p>
<p>
For an example, see <link id="Nice"/>.
</p>
</descr>
<errors>
<p>
Error checking must be done on LinuxError, since a priority can be negative.
</p>
<dl>
<dt>sys_esrch</dt>
<dd>No process found using <var>which</var> and <var>who</var>.</dd>
<dt>sys_einval</dt>
<dd> <var>Which</var> was not one of <var>Prio_Process</var>,
<var>Prio_Grp</var> or <var>Prio_User</var>.</dd>
<dt>sys_eperm</dt>
<dd>A process was found, but neither its effective or real
user ID match the effective user ID of the caller.</dd>
<dt>sys_eacces</dt>
<dd>A non-superuser tried to a priority increase.</dd>
</dl>
</errors>
<seealso>
<link id="GetPriority"/>
<link id="Nice"/>
</seealso>
</element>
<element name="Shell">
<short>Execute and feed command to system shell </short>
<descr>
<var>Shell</var> invokes the bash shell (<file>/bin/sh</file>), and feeds it the
command <var>Command</var> (using the <var>-c</var> option). The function then waits
for the command to complete, and then returns the exit
status of the command, or 127 if it could not complete the <link id="Fork"/>
or <link id="Execve"/> calls.
</descr>
<errors>
Errors are reported in LinuxError.
</errors>
<seealso>
<link id="POpen"/>
<link id="Fork"/>
<link id="Execve"/>
</seealso>
<example file="olinuxex/ex56"/>
</element>
<element name="SigAction">
<short>Install signal handler</short>
<descr>
<p>
Changes the action to take upon receipt of a signal. <var>Act</var> and
<var>Oldact</var> are pointers to a <var>SigActionRec</var> record.
<var>SigNum</var> specifies the signal, and can be any signal except
<b>SIGKILL</b> or <b>SIGSTOP</b>.
</p>
<p>
If <var>Act</var> is non-nil, then the new action for signal <var>SigNum</var> is taken
from it. If <var>OldAct</var> is non-nil, the old action is stored there.
<var>Sa_Handler</var> may be <var>SIG_DFL</var> for the default action or
<var>SIG_IGN</var> to ignore the signal.
<var>Sa_Mask</var> Specifies which signals should be ignord during the execution
of the signal handler.
<var>Sa_Flags</var> Speciefies a series of flags which modify the behaviour of
the signal handler. You can 'or' none or more of the following :
</p>
<dl>
<dt>SA_NOCLDSTOP</dt>
<dd>If signum is <b>SIGCHLD</b> do not receive notification when child processes stop.
</dd>
<dt>SA_ONESHOT or SA_RESETHAND</dt>
<dd>Restore the signal action to the default
state once the signal handler has been called.
</dd>
<dt>SA_RESTART</dt>
<dd>For compatibility with BSD signals.</dd>
<dt>SA_NOMASK or SA_NODEFER</dt>
<dd>Do not prevent the signal from being received from within its own signal handler.
</dd>
</dl>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_einval</dt>
<dd>an invalid signal was specified, or it was <b>SIGKILL</b> or <b>SIGSTOP</b>. </dd>
<dt>sys_efault</dt>
<dd><var>Act,OldAct</var> point outside this process address space </dd>
<dt>sys_eintr</dt><dd> System call was interrupted.</dd>
</dl>
</errors>
<seealso>
<link id="SigProcMask"/>
<link id="SigPending"/>
<link id="SigSuspend"/>
<link id="Kill"/>
</seealso>
<example file="olinuxex/ex57"/>
</element>
<element name="SigPending">
<short>Return set of currently pending signals</short>
<descr>
Sigpending allows the examination of pending signals (which have been raised
while blocked.) The signal mask of pending signals is returned.
</descr>
<errors>
None
</errors>
<seealso>
<link id="SigAction"/>
<link id="SigProcMask"/>
<link id="SigSuspend"/>
<link id="Signal"/>
<link id="Kill"/>
</seealso>
</element>
<element name="SigProcMask">
<short>Set list of blocked signals</short>
<descr>
<p>
Changes the list of currently blocked signals. The behaviour of the call
depends on <var>How</var> :
</p>
<dl>
<dt>SIG_BLOCK</dt>
<dd>The set of blocked signals is the union of the current set
and the <var>SSet</var> argument.</dd>
<dt>SIG_UNBLOCK</dt>
<dd>The signals in <var>SSet</var> are removed from the set of
currently blocked signals.</dd>
<dt>SIG_SETMASK</dt>
<dd>The list of blocked signals is set so <var>SSet</var>.
</dd>
</dl>
<p>
If <var>OldSSet</var> is non-nil, then the old set is stored in it.
</p>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors.
</p>
<dl>
<dt>sys_efault</dt>
<dd><var>SSet</var> or <var>OldSSet</var> point to an adress outside
the range of the process.</dd>
<dt>sys_eintr</dt>
<dd> System call was interrupted.</dd>
</dl>
</errors>
<seealso>
<link id="SigAction"/>
<link id="SigPending"/>
<link id="SigSuspend"/>
<link id="Kill"/>
</seealso>
</element>
<element name="SigRaise">
<short>Raise a signal (send to current process)</short>
<descr>
<var>SigRaise</var> sends a <var>Sig</var> signal to the current process.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Kill"/>
<link id="GetPid"/>
</seealso>
<example file="olinuxex/ex65"/>
</element>
<element name="SigSuspend">
<short>Set signal mask and suspend process till signal is received</short>
<descr>
SigSuspend temporarily replaces the signal mask for the process with the one
given in <var>Mask</var>, and then suspends the process until a signal is received.
</descr>
<errors>
None
</errors>
<seealso>
<link id="SigAction"/>
<link id="SigProcMask"/>
<link id="SigPending"/>
<link id="Signal"/>
<link id="Kill"/>
</seealso>
</element>
<element name="Signal">
<short>Install signal handler (deprecated)</short>
<descr>
<p>
<var>Signal</var> installs a new signal handler for signal <var>SigNum</var>. This call has
the same functionality as the <b>SigAction</b> call.
The return value for Signal is the old signal handler, or nil on error.
</p>
</descr>
<errors>
<p>
<var>LinuxError</var> is used to report errors :
</p>
<dl>
<dt>SIG_ERR</dt>
<dd>An error occurred.</dd>
</dl>
</errors>
<seealso>
<link id="SigAction"/>
<link id="Kill"/>
</seealso>
<example file="olinuxex/ex58"/>
</element>
<element name="StringToPPchar">
<short>Split string in list of null-terminated strings</short>
<descr>
<p>
<var>StringToPPChar</var> splits the string <var>S</var> in words, replacing any
whitespace with zero characters. It returns a pointer to an array of pchars
that point to the first letters of the words in <var>S</var>. This array is terminated
by a <var>Nil</var> pointer.
</p>
<p>
The function does <em> not</em> add a zero character to the end of the string
unless it ends on whitespace.
</p>
<p>
The function reserves memory on the heap to store the array of <var>PChar</var>;
The caller is responsible for freeing this memory.
</p>
<p>
This function can be called to create arguments for the various <var>Exec</var>
calls.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="CreateShellArgV"/>
<link id="Execve"/>
<link id="Execv"/>
</seealso>
<example file="olinuxex/ex70"/>
</element>
<element name="SymLink">
<short>Create a symbolic link</short>
<descr>
<p>
<var>SymLink</var> makes <var>Newpath</var> point to the file in <var>OldPath</var>, which doesn't
necessarily exist. The two files DO NOT have the same inode number.
This is known as a 'soft' link.
</p>
<p>The permissions of the link are irrelevant, as they are not used when
following the link. Ownership of the file is only checked in case of removal
or renaming of the link.
</p>
<p>
The function returns <var>True</var> if the call was succesfull, <var>False</var> if the call
failed.
</p>
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_eperm</dt>
<dd>The filesystem containing oldpath and newpath does not
support linking files.</dd>
<dt>sys_eaccess</dt>
<dd>Write access for the directory containing <var>Newpath</var>
is disallowed, or one of the directories in <var>OldPath</var> or
<var>NewPath</var> has no search (=execute) permission.</dd>
<dt>sys_enoent</dt>
<dd>A directory entry in <var>OldPath</var> or <var>NewPath</var> does
not exist or is a symbolic link pointing to a non-existent directory.</dd>
<dt>sys_enotdir</dt>
<dd>A directory entry in <var>OldPath</var> or <var>NewPath</var> is
nor a directory.</dd>
<dt>sys_enomem</dt><dd>Insufficient kernel memory.</dd>
<dt>sys_erofs</dt><dd>The files are on a read-only filesystem.</dd>
<dt>sys_eexist</dt><dd><var>NewPath</var> already exists.</dd>
<dt>sys_eloop</dt>
<dd> <var>OldPath</var> or <var>NewPath</var> has a reference to a circular
symbolic link, i.e. a symbolic link, whose expansion points to itself.
</dd>
<dt>sys_enospc</dt>
<dd>The device containing <var>NewPath</var> has no room for another entry.</dd>
</dl>
</errors>
<seealso>
<link id="Link"/>
<link id="UnLink"/>
<link id="ReadLink"/>
</seealso>
<example file="olinuxex/ex22"/>
</element>
<element name="SysInfo">
<short>Return kernel system information</short>
<descr>
<p>
<var>SysInfo</var> returns system information in <var>Info</var>. Returned information
in <var>Info</var> includes:
</p>
<dl>
<dt>uptime</dt><dd>Number of seconds since boot.</dd>
<dt>loads</dt><dd>1, 5 and 15 minute load averages.</dd>
<dt>totalram</dt><dd>total amount of main memory.</dd>
<dt>freeram</dt><dd>amount of free memory.</dd>
<dt>sharedram</dt><dd>amount of shared memory.</dd>
<dt>bufferram</dt><dd>amount of memory used by buffers.</dd>
<dt>totalswap</dt><dd>total amount of swapspace.</dd>
<dt>freeswap</dt><dd>amount of free swapspace.</dd>
<dt>procs</dt><dd>number of current processes.</dd>
</dl>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Uname"/>
</seealso>
<example file="olinuxex/ex64"/>
</element>
<element name="TCDrain">
<short>Terminal control: Wait till all data was transmitted</short>
<descr>
<p>
<var>TCDrain</var> waits until all data to file descriptor <var>Fd</var> is transmitted.
</p>
<p>
The function returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</p>
</descr>
<errors>
Errors are reported in LinuxError
</errors>
<seealso>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCFlow">
<short>Terminal control: Suspend transmission of data</short>
<descr>
<p>
<var>TCFlow</var> suspends/resumes transmission or reception of data to or from the file
descriptor <var>Fd</var>, depending on the action <var>Act</var>.
</p>
<p>
This can be one of the following pre-defined values:
</p>
<dl>
<dt>TCOOFF</dt><dd>suspend reception/transmission</dd>
<dt>TCOON</dt><dd>resume reception/transmission</dd>
<dt>TCIOFF</dt><dd>transmit a stop character to stop input from the terminal</dd>
<dt>TCION</dt><dd> transmit start to resume input from the terminal.</dd>
</dl>
<p>
The function returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</p>
</descr>
<errors>
Errors are reported in LinuxError.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCFlush">
<short>Terminal control: Discard data buffer</short>
<descr>
<p>
<var>TCFlush</var> discards all data sent or received to/from file descriptor
<var>fd</var>. <var>QSel</var> indicates which queue should be discard.
It can be one of the following pre-defined values :
</p>
<dl>
<dt>TCIFLUSH</dt><dd>input buffer</dd>
<dt>TCOFLUSH</dt><dd>output buffer</dd>
<dt>TCIOFLUSH</dt><dd>both input and output buffers</dd>
</dl>
<p>
The function returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</p>
</descr>
<errors>
Errors are reported in LinuxError.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCGetAttr">
<short>Terminal Control: Get terminal attributes</short>
<descr>
<var>TCGetAttr</var>
gets the terminal parameters from the terminal referred to by the file
descriptor <var>fd</var> and returns them in a <var>TermIOS</var> structure <var>tios</var>.
The function returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</descr>
<errors>
Errors are reported in LinuxError
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
<example file="olinuxex/ex55"/>
</element>
<element name="TCGetPGrp">
<short>Terminal control: Get process group</short>
<descr>
<var>TCGetPGrp</var>
returns the process group ID of a foreground process group in <var>Id</var>
The function returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</descr>
<errors>
Errors are reported in LinuxError
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCSendBreak">
<short>Terminal control: Send break</short>
<descr>
<var>TCSendBreak</var>
Sends zero-valued bits on an asynchrone serial connection decsribed by
file-descriptor <var>Fd</var>, for duration <var>Duration</var>.
The function returns <var>True</var> if the action was performed successfully,
<var>False</var> otherwise.
</descr>
<errors>
Errors are reported in LinuxError.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCSetAttr">
<short>Terminal control: Set attributes</short>
<descr>
<p>
<var>TCSetAttr</var> sets the terminal parameters you specify in a
<var>TermIOS</var> structure<var>Tios</var> for the terminal
referred to by the file descriptor <var>Fd</var>.
</p>
<p>
<var>OptAct</var> specifies an optional action when the set need to be done,
this could be one of the following pre-defined values:
</p>
<dl>
<dt>TCSANOW</dt><dd>set immediately.</dd>
<dt>TCSADRAIN</dt><dd>wait for output.</dd>
<dt>TCSAFLUSH</dt><dd>wait for output and discard all input not yet read.</dd>
</dl>
<p>
The function Returns <var>True</var> if the call was succesfull, <var>False</var>
otherwise.
</p>
<p>
For an example, see <link id="TCGetAttr"/>.
</p>
</descr>
<errors>
Errors are reported in LinuxError.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetPGrp"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TCSetPGrp">
<short>Terminal control: Set process group</short>
<descr>
<p>
<var>TCSetPGrp</var> Sets the Process Group Id to <var>Id</var>.
The function returns <var>True</var> if the call was successful, <var>False</var>
otherwise.
</p>
<p>
For an example, see <link id="TCGetPGrp"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TTYName"/>
<link id="IsATTY"/>
</seealso>
</element>
<element name="TTYName">
<short>Terminal control: Get terminal name</short>
<descr>
<p>
<var>TTYName</var>Returns the name of the terminal pointed to by <var>f</var>. <var>f</var>
must be a terminal. <var>f</var> can be of type:
</p>
<ol>
<li><var>longint</var> for file handles;</li>
<li><var>Text</var> for <var>text</var> variables such as <var>input</var> etc.</li>
</ol>
</descr>
<errors>
Returns an empty string in case of an error. <var>Linuxerror</var> may be set
to indicate what error occurred, but this is uncertain.
</errors>
<seealso>
<link id="TCDrain"/>
<link id="TCFlow"/>
<link id="TCFlush"/>
<link id="TCGetAttr"/>
<link id="TCGetPGrp"/>
<link id="TCSendBreak"/>
<link id="TCSetAttr"/>
<link id="TCSetPGrp"/>
<link id="IsATTY"/>
<link id="IOCtl"/>
</seealso>
</element>
<element name="TellDir">
<short>Return current location in a directory</short>
<descr>
<p>
<var>TellDir</var> returns the current location in the directory structure
pointed to by <var>p</var>. It returns -1 on failure.
</p>
<p>
For an example, see <link id="OpenDir"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="CloseDir"/>
<link id="ReadDir"/>
<link id="SeekDir"/>
<link id="OpenDir"/>
</seealso>
</element>
<element name="Umask">
<short>Set file creation mask.</short>
<descr>
Change the file creation mask for the current user to <var>Mask</var>. The
current mask is returned.
</descr>
<seealso>
<link id="Chmod"/>
</seealso>
<example file="olinuxex/ex27"/>
</element>
<element name="Uname">
<short>Return system name.</short>
<descr>
<var>Uname</var> gets the name and configuration of the current linux kernel,
and returns it in <var>unamerec</var>.
</descr>
<errors>
<var>LinuxError</var> is used to report errors.
</errors>
<seealso>
<link id="GetHostName"/>
<link id="GetDomainName"/>
</seealso>
</element>
<element name="UnLink">
<short>Unlink (i.e. remove) a file.</short>
<descr>
<p>
<var>UnLink</var> decreases the link count on file <var>Path</var>. <var>Path</var> can be
of type <var>PathStr</var> or <var>PChar</var>. If the link count is zero, the
file is removed from the disk.
The function returns <var>True</var> if the call was succesfull, <var>False</var> if the call
failed.
</p>
<p>
For an example, see <link id="Link"/>.
</p>
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_eaccess</dt>
<dd>You have no write access right in the directory containing <var>Path</var>,
or you have no search permission in one of the directory components of
<var>Path</var>.</dd>
<dt>sys_eperm</dt>
<dd>The directory containing pathname has the sticky-bit set and the process's
effective uid is neither the uid of the file to be deleted nor that of the
directory containing it.</dd>
<dt>sys_enoent</dt><dd>A component of the path doesn't exist.</dd>
<dt>sys_enotdir</dt><dd>A directory component of the path is not a directory.</dd>
<dt>sys_eisdir</dt><dd><var>Path</var> refers to a directory.</dd>
<dt>sys_enomem</dt><dd>Insufficient kernel memory.</dd>
<dt>sys_erofs</dt><dd><var>Path</var> is on a read-only filesystem.</dd>
</dl>
</errors>
<seealso>
<link id="Link"/>
<link id="SymLink"/>
</seealso>
</element>
<element name="Utime">
<short>Set access and modification times of a file (touch).</short>
<descr>
<var>Utime</var> sets the access and modification times of a file.
the <var>utimbuf</var> record contains 2 fields, <var>actime</var>, and <var>modtime</var>,
both of type Longint. They should be filled with an epoch-like time,
specifying, respectively, the last access time, and the last modification
time.
For some filesystem (most notably, FAT), these times are the same.
</descr>
<errors>
<p>
Errors are returned in <var>LinuxError</var>.
</p>
<dl>
<dt>sys_eaccess</dt>
<dd> One of the directories in <var>Path</var> has no
search (=execute) permission.</dd>
<dt>sys_enoent</dt>
<dd> A directory entry in <var>Path</var> does
not exist or is a symbolic link pointing to a non-existent directory.
</dd>
</dl>
<p>
Other errors may occur, but aren't documented.
</p>
</errors>
<seealso>
<link id="GetEpochTime"/>
<link id="Chown"/>
<link id="Access"/>
</seealso>
<example file="olinuxex/ex25"/>
</element>
<element name="WaitPid">
<short>Wait for a process to terminate</short>
<descr>
<p>
<var>WaitPid</var> waits for a child process with process ID <var>Pid</var> to exit. The
value of <var>Pid</var> can be one of the following:
</p>
<dl>
<dt>Pid < -1</dt>
<dd> Causes <var>WaitPid</var> to wait for any child process whose
process group ID equals the absolute value of <var>pid</var>.</dd>
<dt>Pid = -1</dt>
<dd>Causes <var>WaitPid</var> to wait for any child process.</dd>
<dt>Pid = 0</dt>
<dd>Causes <var>WaitPid</var> to wait for any child process whose
process group ID equals the one of the calling process.</dd>
<dt>Pid > 0</dt>
<dd> Causes <var>WaitPid</var> to wait for the child whose process ID
equals the value of <var>Pid</var>.</dd>
</dl>
<p>
The <var>Options</var> parameter can be used to specify further how <var>WaitPid</var>
behaves:
</p>
<dl>
<dt>WNOHANG</dt>
<dd> Causes <var>Waitpid</var> to return immediately if no child hasexited.</dd>
<dt>WUNTRACED</dt>
<dd> Causes <var>WaitPid</var> to return also for children which are
stopped, but whose status has not yet been reported.</dd>
<dt>__WCLONE</dt>
<dd> Causes <var>WaitPid</var> also to wait for threads created by
the <link id="Clone"/> call.</dd>
</dl>
<p>
Upon return, it returns the exit status of the process, or -1 in case of
failure.
</p>
<p>
For an example, see <link id="Fork"/>.
</p>
</descr>
<errors>
Errors are returned in LinuxError.
</errors>
<seealso>
<link id="Fork"/>
<link id="Execve"/>
</seealso>
</element>
<!-- constant Visibility: default -->
<element name="Seek_set">
<short>Seek option: Set absolute position.</short>
</element>
<!-- constant Visibility: default -->
<element name="Seek_Cur">
<short>Seek option: Set position relative to current position.</short>
</element>
<!-- constant Visibility: default -->
<element name="Seek_End">
<short>Seek option: Set position relative to end of file.</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Accmode">
<short>Bitmask to determine access mode in open flags.</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_RdOnly">
<short>File open mode: Read only</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_WrOnly">
<short>File open mode: Write only</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_RdWr">
<short>File open mode: Read/Write</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Creat">
<short>File open mode: Create if file does not yet exist.</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Excl">
<short>File open mode: Open exclusively</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_NoCtty">
<short>File open mode: No TTY control.</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Trunc">
<short>File open mode: Truncate file to length 0</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Append">
<short>File open mode: Append to file</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_NonBlock">
<short>File open mode: Open in non-blocking mode</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_NDelay">
<short>File open mode: Alias for <link id="Open_NonBlock"/></short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Sync">
<short>File open mode: Write to disc at once</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Direct">
<short>File open mode: Minimize caching effects</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_LargeFile">
<short>File open mode: Open for 64-bit I/O</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_Directory">
<short>File open mode: File must be directory.</short>
</element>
<!-- constant Visibility: default -->
<element name="Open_NoFollow">
<short>File open mode: Fail if file is symbolic link.</short>
</element>
<!-- constant Visibility: default -->
<element name="Wait_NoHang">
<short><link id="WaitPID"/>: Do not wait</short>
</element>
<!-- constant Visibility: default -->
<element name="Wait_UnTraced">
<short><link id="WaitPID"/>: Also report stopped but untraced processes</short>
</element>
<!-- constant Visibility: default -->
<element name="Wait_Any">
<short><link id="WaitPID"/>: Wait on any process</short>
</element>
<!-- constant Visibility: default -->
<element name="Wait_MyPGRP">
<short><link id="WaitPID"/>: Wait processes from current process group</short>
</element>
<!-- constant Visibility: default -->
<element name="Wait_Clone">
<short><link id="WaitPID"/>: Wait on clone processes only.</short>
</element>
<!-- constant Visibility: default -->
<element name="IOCtl_TCGETS">
<short>IOCTL call number: get Terminal Control settings</short>
</element>
<!-- record type Visibility: default -->
<element name="SysCallRegs">
<short>Register describing system calls.</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg1">
<short>Register 1</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg2">
<short>Register 2</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg3">
<short>Register 3</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg4">
<short>Register 4</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg5">
<short>Register 5</short>
</element>
<!-- variable Visibility: default -->
<element name="SysCallRegs.reg6">
<short>Register 6</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PSysCallRegs">
<short>Pointer to <link id="SysCallRegs"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TSysCallRegs">
<short>Alias for <link id="SysCallRegs"/> record</short>
</element>
<!-- alias type Visibility: default -->
<element name="TDirEnt">
<short>Alias for <link id="DirEnt"/> record</short>
</element>
<!-- alias type Visibility: default -->
<element name="dev_t">
<short>Device descriptor type</short>
</element>
<!-- variable Visibility: default -->
<element name="Stat.blksze">
<short>Block size</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PStat">
<short>Pointer to <link id="Stat"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TStat">
<short>Alias for <link id="Stat"/> record.</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PStatFS">
<short>Pointer to <link id="StatFS"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TStatFS">
<short>Alias for <link id="StatFS"/> type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TFDSet">
<short>Alias for <link id="FDSet"/> type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TTimeVal">
<short>Alias for <link id="TimeVal"/> record.</short>
</element>
<!-- record type Visibility: default -->
<element name="timezone">
<short>Record describing a timezone</short>
</element>
<!-- variable Visibility: default -->
<element name="timezone.minuteswest">
<short>Minutes west of GMT</short>
</element>
<!-- variable Visibility: default -->
<element name="timezone.dsttime">
<short>Daylight savings time</short>
</element>
<!-- pointer type Visibility: default -->
<element name="ptimezone">
<short>Pointer to <link id="TimeZone"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TTimeZone">
<short>Alias for <link id="TimeZone"/> record.</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PUTSName">
<short>Pointer to <link id="UTSName"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TUTSName">
<short>Alias for <link id="UTSName"/> record.</short>
</element>
<!-- constant Visibility: default -->
<element skip="1" name="syscall_nr_setup"/>
<element skip="1" name="syscall_nr_exit"/>
<element skip="1" name="syscall_nr_fork"/>
<element skip="1" name="syscall_nr_read"/>
<element skip="1" name="syscall_nr_write"/>
<element skip="1" name="syscall_nr_open"/>
<element skip="1" name="syscall_nr_close"/>
<element skip="1" name="syscall_nr_waitpid"/>
<element skip="1" name="syscall_nr_creat"/>
<element skip="1" name="syscall_nr_link"/>
<element skip="1" name="syscall_nr_unlink"/>
<element skip="1" name="syscall_nr_execve"/>
<element skip="1" name="syscall_nr_chdir"/>
<element skip="1" name="syscall_nr_time"/>
<element skip="1" name="syscall_nr_mknod"/>
<element skip="1" name="syscall_nr_chmod"/>
<element skip="1" name="syscall_nr_chown"/>
<element skip="1" name="syscall_nr_break"/>
<element skip="1" name="syscall_nr_oldstat"/>
<element skip="1" name="syscall_nr_lseek"/>
<element skip="1" name="syscall_nr_getpid"/>
<element skip="1" name="syscall_nr_mount"/>
<element skip="1" name="syscall_nr_umount"/>
<element skip="1" name="syscall_nr_setuid"/>
<element skip="1" name="syscall_nr_getuid"/>
<element skip="1" name="syscall_nr_stime"/>
<element skip="1" name="syscall_nr_ptrace"/>
<element skip="1" name="syscall_nr_alarm"/>
<element skip="1" name="syscall_nr_oldfstat"/>
<element skip="1" name="syscall_nr_pause"/>
<element skip="1" name="syscall_nr_utime"/>
<element skip="1" name="syscall_nr_stty"/>
<element skip="1" name="syscall_nr_gtty"/>
<element skip="1" name="syscall_nr_access"/>
<element skip="1" name="syscall_nr_nice"/>
<element skip="1" name="syscall_nr_ftime"/>
<element skip="1" name="syscall_nr_sync"/>
<element skip="1" name="syscall_nr_kill"/>
<element skip="1" name="syscall_nr_rename"/>
<element skip="1" name="syscall_nr_mkdir"/>
<element skip="1" name="syscall_nr_rmdir"/>
<element skip="1" name="syscall_nr_dup"/>
<element skip="1" name="syscall_nr_pipe"/>
<element skip="1" name="syscall_nr_times"/>
<element skip="1" name="syscall_nr_prof"/>
<element skip="1" name="syscall_nr_brk"/>
<element skip="1" name="syscall_nr_setgid"/>
<element skip="1" name="syscall_nr_getgid"/>
<element skip="1" name="syscall_nr_signal"/>
<element skip="1" name="syscall_nr_geteuid"/>
<element skip="1" name="syscall_nr_getegid"/>
<element skip="1" name="syscall_nr_acct"/>
<element skip="1" name="syscall_nr_phys"/>
<element skip="1" name="syscall_nr_lock"/>
<element skip="1" name="syscall_nr_ioctl"/>
<element skip="1" name="syscall_nr_fcntl"/>
<element skip="1" name="syscall_nr_mpx"/>
<element skip="1" name="syscall_nr_setpgid"/>
<element skip="1" name="syscall_nr_ulimit"/>
<element skip="1" name="syscall_nr_oldolduname"/>
<element skip="1" name="syscall_nr_umask"/>
<element skip="1" name="syscall_nr_chroot"/>
<element skip="1" name="syscall_nr_ustat"/>
<element skip="1" name="syscall_nr_dup2"/>
<element skip="1" name="syscall_nr_getppid"/>
<element skip="1" name="syscall_nr_getpgrp"/>
<element skip="1" name="syscall_nr_setsid"/>
<element skip="1" name="syscall_nr_sigaction"/>
<element skip="1" name="syscall_nr_sgetmask"/>
<element skip="1" name="syscall_nr_ssetmask"/>
<element skip="1" name="syscall_nr_setreuid"/>
<element skip="1" name="syscall_nr_setregid"/>
<element skip="1" name="syscall_nr_sigsuspend"/>
<element skip="1" name="syscall_nr_sigpending"/>
<element skip="1" name="syscall_nr_sethostname"/>
<element skip="1" name="syscall_nr_setrlimit"/>
<element skip="1" name="syscall_nr_getrlimit"/>
<element skip="1" name="syscall_nr_getrusage"/>
<element skip="1" name="syscall_nr_gettimeofday"/>
<element skip="1" name="syscall_nr_settimeofday"/>
<element skip="1" name="syscall_nr_getgroups"/>
<element skip="1" name="syscall_nr_setgroups"/>
<element skip="1" name="syscall_nr_select"/>
<element skip="1" name="syscall_nr_symlink"/>
<element skip="1" name="syscall_nr_oldlstat"/>
<element skip="1" name="syscall_nr_readlink"/>
<element skip="1" name="syscall_nr_uselib"/>
<element skip="1" name="syscall_nr_swapon"/>
<element skip="1" name="syscall_nr_reboot"/>
<element skip="1" name="syscall_nr_readdir"/>
<element skip="1" name="syscall_nr_mmap"/>
<element skip="1" name="syscall_nr_munmap"/>
<element skip="1" name="syscall_nr_truncate"/>
<element skip="1" name="syscall_nr_ftruncate"/>
<element skip="1" name="syscall_nr_fchmod"/>
<element skip="1" name="syscall_nr_fchown"/>
<element skip="1" name="syscall_nr_getpriority"/>
<element skip="1" name="syscall_nr_setpriority"/>
<element skip="1" name="syscall_nr_profil"/>
<element skip="1" name="syscall_nr_statfs"/>
<element skip="1" name="syscall_nr_fstatfs"/>
<element skip="1" name="syscall_nr_ioperm"/>
<element skip="1" name="syscall_nr_socketcall"/>
<element skip="1" name="syscall_nr_syslog"/>
<element skip="1" name="syscall_nr_setitimer"/>
<element skip="1" name="syscall_nr_getitimer"/>
<element skip="1" name="syscall_nr_stat"/>
<element skip="1" name="syscall_nr_lstat"/>
<element skip="1" name="syscall_nr_fstat"/>
<element skip="1" name="syscall_nr_olduname"/>
<element skip="1" name="syscall_nr_iopl"/>
<element skip="1" name="syscall_nr_vhangup"/>
<element skip="1" name="syscall_nr_idle"/>
<element skip="1" name="syscall_nr_vm86old"/>
<element skip="1" name="syscall_nr_wait4"/>
<element skip="1" name="syscall_nr_swapoff"/>
<element skip="1" name="syscall_nr_sysinfo"/>
<element skip="1" name="syscall_nr_ipc"/>
<element skip="1" name="syscall_nr_fsync"/>
<element skip="1" name="syscall_nr_sigreturn"/>
<element skip="1" name="syscall_nr_clone"/>
<element skip="1" name="syscall_nr_setdomainname"/>
<element skip="1" name="syscall_nr_uname"/>
<element skip="1" name="syscall_nr_modify_ldt"/>
<element skip="1" name="syscall_nr_adjtimex"/>
<element skip="1" name="syscall_nr_mprotect"/>
<element skip="1" name="syscall_nr_sigprocmask"/>
<element skip="1" name="syscall_nr_create_module"/>
<element skip="1" name="syscall_nr_init_module"/>
<element skip="1" name="syscall_nr_delete_module"/>
<element skip="1" name="syscall_nr_get_kernel_syms"/>
<element skip="1" name="syscall_nr_quotactl"/>
<element skip="1" name="syscall_nr_getpgid"/>
<element skip="1" name="syscall_nr_fchdir"/>
<element skip="1" name="syscall_nr_bdflush"/>
<element skip="1" name="syscall_nr_sysfs"/>
<element skip="1" name="syscall_nr_personality"/>
<element skip="1" name="syscall_nr_afs_syscall"/>
<element skip="1" name="syscall_nr_setfsuid"/>
<element skip="1" name="syscall_nr_setfsgid"/>
<element skip="1" name="syscall_nr__llseek"/>
<element skip="1" name="syscall_nr_getdents"/>
<element skip="1" name="syscall_nr__newselect"/>
<element skip="1" name="syscall_nr_flock"/>
<element skip="1" name="syscall_nr_msync"/>
<element skip="1" name="syscall_nr_readv"/>
<element skip="1" name="syscall_nr_writev"/>
<element skip="1" name="syscall_nr_getsid"/>
<element skip="1" name="syscall_nr_fdatasync"/>
<element skip="1" name="syscall_nr__sysctl"/>
<element skip="1" name="syscall_nr_mlock"/>
<element skip="1" name="syscall_nr_munlock"/>
<element skip="1" name="syscall_nr_mlockall"/>
<element skip="1" name="syscall_nr_munlockall"/>
<element skip="1" name="syscall_nr_sched_setparam"/>
<element skip="1" name="syscall_nr_sched_getparam"/>
<element skip="1" name="syscall_nr_sched_setscheduler"/>
<element skip="1" name="syscall_nr_sched_getscheduler"/>
<element skip="1" name="syscall_nr_sched_yield"/>
<element skip="1" name="syscall_nr_sched_get_priority_max"/>
<element skip="1" name="syscall_nr_sched_get_priority_min"/>
<element skip="1" name="syscall_nr_sched_rr_get_interval"/>
<element skip="1" name="syscall_nr_nanosleep"/>
<element skip="1" name="syscall_nr_mremap"/>
<element skip="1" name="syscall_nr_setresuid"/>
<element skip="1" name="syscall_nr_getresuid"/>
<element skip="1" name="syscall_nr_vm86"/>
<element skip="1" name="syscall_nr_query_module"/>
<element skip="1" name="syscall_nr_poll"/>
<element skip="1" name="syscall_nr_sigaltstack"/>
<element skip="1" name="Sys_EPERM"/>
<element skip="1" name="Sys_ENOENT"/>
<element skip="1" name="Sys_ESRCH"/>
<element skip="1" name="Sys_EINTR"/>
<element skip="1" name="Sys_EIO"/>
<element skip="1" name="Sys_ENXIO"/>
<element skip="1" name="Sys_E2BIG"/>
<element skip="1" name="Sys_ENOEXEC"/>
<element skip="1" name="Sys_EBADF"/>
<element skip="1" name="Sys_ECHILD"/>
<element skip="1" name="Sys_EAGAIN"/>
<element skip="1" name="Sys_ENOMEM"/>
<element skip="1" name="Sys_EACCES"/>
<element skip="1" name="Sys_EFAULT"/>
<element skip="1" name="Sys_ENOTBLK"/>
<element skip="1" name="Sys_EBUSY"/>
<element skip="1" name="Sys_EEXIST"/>
<element skip="1" name="Sys_EXDEV"/>
<element skip="1" name="Sys_ENODEV"/>
<element skip="1" name="Sys_ENOTDIR"/>
<element skip="1" name="Sys_EISDIR"/>
<element skip="1" name="Sys_EINVAL"/>
<element skip="1" name="Sys_ENFILE"/>
<element skip="1" name="Sys_EMFILE"/>
<element skip="1" name="Sys_ENOTTY"/>
<element skip="1" name="Sys_ETXTBSY"/>
<element skip="1" name="Sys_EFBIG"/>
<element skip="1" name="Sys_ENOSPC"/>
<element skip="1" name="Sys_ESPIPE"/>
<element skip="1" name="Sys_EROFS"/>
<element skip="1" name="Sys_EMLINK"/>
<element skip="1" name="Sys_EPIPE"/>
<element skip="1" name="Sys_EDOM"/>
<element skip="1" name="Sys_ERANGE"/>
<element skip="1" name="Sys_EDEADLK"/>
<element skip="1" name="Sys_ENAMETOOLONG"/>
<element skip="1" name="Sys_ENOLCK"/>
<element skip="1" name="Sys_ENOSYS"/>
<element skip="1" name="Sys_ENOTEMPTY"/>
<element skip="1" name="Sys_ELOOP"/>
<element skip="1" name="Sys_EWOULDBLOCK"/>
<element skip="1" name="Sys_ENOMSG"/>
<element skip="1" name="Sys_EIDRM"/>
<element skip="1" name="Sys_ECHRNG"/>
<element skip="1" name="Sys_EL2NSYNC"/>
<element skip="1" name="Sys_EL3HLT"/>
<element skip="1" name="Sys_EL3RST"/>
<element skip="1" name="Sys_ELNRNG"/>
<element skip="1" name="Sys_EUNATCH"/>
<element skip="1" name="Sys_ENOCSI"/>
<element skip="1" name="Sys_EL2HLT"/>
<element skip="1" name="Sys_EBADE"/>
<element skip="1" name="Sys_EBADR"/>
<element skip="1" name="Sys_EXFULL"/>
<element skip="1" name="Sys_ENOANO"/>
<element skip="1" name="Sys_EBADRQC"/>
<element skip="1" name="Sys_EBADSLT"/>
<element skip="1" name="Sys_EDEADLOCK"/>
<element skip="1" name="Sys_EBFONT"/>
<element skip="1" name="Sys_ENOSTR"/>
<element skip="1" name="Sys_ENODATA"/>
<element skip="1" name="Sys_ETIME"/>
<element skip="1" name="Sys_ENOSR"/>
<element skip="1" name="Sys_ENONET"/>
<element skip="1" name="Sys_ENOPKG"/>
<element skip="1" name="Sys_EREMOTE"/>
<element skip="1" name="Sys_ENOLINK"/>
<element skip="1" name="Sys_EADV"/>
<element skip="1" name="Sys_ESRMNT"/>
<element skip="1" name="Sys_ECOMM"/>
<element skip="1" name="Sys_EPROTO"/>
<element skip="1" name="Sys_EMULTIHOP"/>
<element skip="1" name="Sys_EDOTDOT"/>
<element skip="1" name="Sys_EBADMSG"/>
<element skip="1" name="Sys_EOVERFLOW"/>
<element skip="1" name="Sys_ENOTUNIQ"/>
<element skip="1" name="Sys_EBADFD"/>
<element skip="1" name="Sys_EREMCHG"/>
<element skip="1" name="Sys_ELIBACC"/>
<element skip="1" name="Sys_ELIBBAD"/>
<element skip="1" name="Sys_ELIBSCN"/>
<element skip="1" name="Sys_ELIBMAX"/>
<element skip="1" name="Sys_ELIBEXEC"/>
<element skip="1" name="Sys_EILSEQ"/>
<element skip="1" name="Sys_ERESTART"/>
<element skip="1" name="Sys_ESTRPIPE"/>
<element skip="1" name="Sys_EUSERS"/>
<element skip="1" name="Sys_ENOTSOCK"/>
<element skip="1" name="Sys_EDESTADDRREQ"/>
<element skip="1" name="Sys_EMSGSIZE"/>
<element skip="1" name="Sys_EPROTOTYPE"/>
<element skip="1" name="Sys_ENOPROTOOPT"/>
<element skip="1" name="Sys_EPROTONOSUPPORT"/>
<element skip="1" name="Sys_ESOCKTNOSUPPORT"/>
<element skip="1" name="Sys_EOPNOTSUPP"/>
<element skip="1" name="Sys_EPFNOSUPPORT"/>
<element skip="1" name="Sys_EAFNOSUPPORT"/>
<element skip="1" name="Sys_EADDRINUSE"/>
<element skip="1" name="Sys_EADDRNOTAVAIL"/>
<element skip="1" name="Sys_ENETDOWN"/>
<element skip="1" name="Sys_ENETUNREACH"/>
<element skip="1" name="Sys_ENETRESET"/>
<element skip="1" name="Sys_ECONNABORTED"/>
<element skip="1" name="Sys_ECONNRESET"/>
<element skip="1" name="Sys_ENOBUFS"/>
<element skip="1" name="Sys_EISCONN"/>
<element skip="1" name="Sys_ENOTCONN"/>
<element skip="1" name="Sys_ESHUTDOWN"/>
<element skip="1" name="Sys_ETOOMANYREFS"/>
<element skip="1" name="Sys_ETIMEDOUT"/>
<element skip="1" name="Sys_ECONNREFUSED"/>
<element skip="1" name="Sys_EHOSTDOWN"/>
<element skip="1" name="Sys_EHOSTUNREACH"/>
<element skip="1" name="Sys_EALREADY"/>
<element skip="1" name="Sys_EINPROGRESS"/>
<element skip="1" name="Sys_ESTALE"/>
<element skip="1" name="Sys_EUCLEAN"/>
<element skip="1" name="Sys_ENOTNAM"/>
<element skip="1" name="Sys_ENAVAIL"/>
<element skip="1" name="Sys_EISNAM"/>
<element skip="1" name="Sys_EREMOTEIO"/>
<element skip="1" name="Sys_EDQUOT"/>
<element skip="1" name="Sys_ERROR_MAX"/>
<!-- alias type Visibility: default -->
<element name="SigSet">
<short>Signal set type</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PSigSet">
<short>Pointer to signal set.</short>
</element>
<!-- constant Visibility: default -->
<element name="SA_ONSTACK">
<short>Socket option</short>
</element>
<!-- constant Visibility: default -->
<element name="SI_PAD_SIZE">
<short>Signal information record pad bytes size. Do not use.</short>
</element>
<!-- alias type Visibility: default -->
<element name="Size_T">
<short>Size type</short>
</element>
<!-- constant Visibility: default -->
<element name="SS_ONSTACK">
<short>Socket options</short>
</element>
<!-- constant Visibility: default -->
<element name="SS_DISABLE">
<short>Socket options</short>
</element>
<!-- constant Visibility: default -->
<element name="MINSIGSTKSZ">
<short></short>
</element>
<!-- constant Visibility: default -->
<element name="SIGSTKSZ">
<short>Signal Stack size error</short>
</element>
<!-- record type Visibility: default -->
<element name="SigAltStack">
<short>Alternate stack registers record </short>
</element>
<!-- variable Visibility: default -->
<element name="SigAltStack.ss_sp">
<short>Stack pointer</short>
</element>
<!-- variable Visibility: default -->
<element name="SigAltStack.ss_flags">
<short>Flags</short>
</element>
<!-- variable Visibility: default -->
<element name="SigAltStack.ss_size">
<short>Stack size</short>
</element>
<!-- alias type Visibility: default -->
<element name="stack_t">
<short>Alias for <link id="SigAltStack"/> type</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PSigAltStack">
<short>Pointer to <link id="SigAltStack"/> record</short>
</element>
<!-- pointer type Visibility: default -->
<element name="pstack_t">
<short>Pointer to <link id="stack_t"/> record</short>
</element>
<!-- variable Visibility: default -->
<element name="ErrNo">
<short>Error number of last operation.</short>
</element>
<!-- constant Visibility: default -->
<element name="CSIGNAL">
<short><link id="Clone"/> option: Signal mask to be sent at exit</short>
</element>
<!-- constant Visibility: default -->
<element name="CLONE_VM">
<short><link id="Clone"/> option: VM shared between processes</short>
</element>
<!-- constant Visibility: default -->
<element name="CLONE_FS">
<short><link id="Clone"/> option: fs info shared between processes</short>
</element>
<!-- constant Visibility: default -->
<element name="CLONE_FILES">
<short><link id="Clone"/> option: open files shared between processes</short>
</element>
<!-- constant Visibility: default -->
<element name="CLONE_SIGHAND">
<short><link id="Clone"/> option: signal handlers shared between processes</short>
</element>
<!-- constant Visibility: default -->
<element name="CLONE_PID">
<short><link id="Clone"/> option: PID shared between processes</short>
</element>
<!-- function type Visibility: default -->
<element name="TCloneFunc">
<short>Clone function prototype.</short>
</element>
<!-- constant Visibility: default -->
<element name="WNOHANG">
<short><link id="Waitpid"/> option: Do not wait for processes to terminate.</short>
</element>
<!-- constant Visibility: default -->
<element name="WUNTRACED">
<short><link id="Waitpid"/> option: Also report children wich were stopped but not yet reported</short>
</element>
<!-- constant Visibility: default -->
<element name="__WCLONE">
<short>Waitpid option: Wait for clone children only</short>
</element>
<!-- constant Visibility: default -->
<element name="P_IN">
<short>Input file descriptor of pipe pair.</short>
</element>
<!-- constant Visibility: default -->
<element name="P_OUT">
<short>Output file descriptor of pipe pair.</short>
</element>
<!-- array type Visibility: default -->
<element name="Tpipe">
<short>Array describing a pipe pair of filedescriptors.</short>
</element>
<!-- alias type Visibility: default -->
<element name="ComStr">
<short>Command-line string type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="PathStr">
<short>Filename path part string type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="DirStr">
<short>Filename directory part string type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="NameStr">
<short>Filename name part string type.</short>
</element>
<!-- alias type Visibility: default -->
<element name="ExtStr">
<short>Filename extension part string type.</short>
</element>
<!-- record type Visibility: default -->
<element name="winsize">
<short>Record describing terminal window size.</short>
</element>
<!-- variable Visibility: default -->
<element name="winsize.ws_row">
<short>Number of rows</short>
</element>
<!-- variable Visibility: default -->
<element name="winsize.ws_col">
<short>Number of columns</short>
</element>
<!-- variable Visibility: default -->
<element name="winsize.ws_xpixel">
<short>Number of pixels in horizontal direction</short>
</element>
<!-- variable Visibility: default -->
<element name="winsize.ws_ypixel">
<short>Number of pixels in vertical direction</short>
</element>
<!-- alias type Visibility: default -->
<element name="TWinSize">
<short>Alias for <link id="WinSize"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TTermio">
<short>Alias for <link id="TermIO"/> record</short>
</element>
<!-- variable Visibility: default -->
<element name="Termios.c_ispeed">
<short>Input speed</short>
</element>
<!-- variable Visibility: default -->
<element name="Termios.c_ospeed">
<short>Output speed</short>
</element>
<!-- alias type Visibility: default -->
<element name="TTermios">
<short>Alias for <link id="Termios"/> record.</short>
</element>
<element name="VINTR" skip="1" />
<element name="VQUIT" skip="1" />
<element name="VERASE" skip="1" />
<element name="VKILL" skip="1" />
<element name="VEOF" skip="1" />
<element name="VTIME" skip="1" />
<element name="VMIN" skip="1" />
<element name="VSWTC" skip="1" />
<element name="VSTART" skip="1" />
<element name="VSTOP" skip="1" />
<element name="VSUSP" skip="1" />
<element name="VEOL" skip="1" />
<element name="VREPRINT" skip="1" />
<element name="VDISCARD" skip="1" />
<element name="VWERASE" skip="1" />
<element name="VLNEXT" skip="1" />
<element name="VEOL2" skip="1" />
<element name="IGNBRK" skip="1" />
<element name="BRKINT" skip="1" />
<element name="IGNPAR" skip="1" />
<element name="PARMRK" skip="1" />
<element name="INPCK" skip="1" />
<element name="ISTRIP" skip="1" />
<element name="INLCR" skip="1" />
<element name="IGNCR" skip="1" />
<element name="ICRNL" skip="1" />
<element name="IUCLC" skip="1" />
<element name="IXON" skip="1" />
<element name="IXANY" skip="1" />
<element name="IXOFF" skip="1" />
<element name="IMAXBEL" skip="1" />
<element name="OPOST" skip="1" />
<element name="OLCUC" skip="1" />
<element name="ONLCR" skip="1" />
<element name="OCRNL" skip="1" />
<element name="ONOCR" skip="1" />
<element name="ONLRET" skip="1" />
<element name="OFILL" skip="1" />
<element name="OFDEL" skip="1" />
<element name="NLDLY" skip="1" />
<element name="NL0" skip="1" />
<element name="NL1" skip="1" />
<element name="CRDLY" skip="1" />
<element name="CR0" skip="1" />
<element name="CR1" skip="1" />
<element name="CR2" skip="1" />
<element name="CR3" skip="1" />
<element name="TABDLY" skip="1" />
<element name="TAB0" skip="1" />
<element name="TAB1" skip="1" />
<element name="TAB2" skip="1" />
<element name="TAB3" skip="1" />
<element name="XTABS" skip="1" />
<element name="BSDLY" skip="1" />
<element name="BS0" skip="1" />
<element name="BS1" skip="1" />
<element name="VTDLY" skip="1" />
<element name="VT0" skip="1" />
<element name="VT1" skip="1" />
<element name="FFDLY" skip="1" />
<element name="FF0" skip="1" />
<element name="FF1" skip="1" />
<element name="CBAUD" skip="1" />
<element name="B0" skip="1" />
<element name="B50" skip="1" />
<element name="B75" skip="1" />
<element name="B110" skip="1" />
<element name="B134" skip="1" />
<element name="B150" skip="1" />
<element name="B200" skip="1" />
<element name="B300" skip="1" />
<element name="B600" skip="1" />
<element name="B1200" skip="1" />
<element name="B1800" skip="1" />
<element name="B2400" skip="1" />
<element name="B4800" skip="1" />
<element name="B9600" skip="1" />
<element name="B19200" skip="1" />
<element name="B38400" skip="1" />
<element name="EXTA" skip="1" />
<element name="EXTB" skip="1" />
<element name="CSIZE" skip="1" />
<element name="CS5" skip="1" />
<element name="CS6" skip="1" />
<element name="CS7" skip="1" />
<element name="CS8" skip="1" />
<element name="CSTOPB" skip="1" />
<element name="CREAD" skip="1" />
<element name="PARENB" skip="1" />
<element name="PARODD" skip="1" />
<element name="HUPCL" skip="1" />
<element name="CLOCAL" skip="1" />
<element name="CBAUDEX" skip="1" />
<element name="B57600" skip="1" />
<element name="B115200" skip="1" />
<element name="B230400" skip="1" />
<element name="B460800" skip="1" />
<element name="CIBAUD" skip="1" />
<element name="CMSPAR" skip="1" />
<element name="CRTSCTS" skip="1" />
<element name="ISIG" skip="1" />
<element name="ICANON" skip="1" />
<element name="XCASE" skip="1" />
<element name="ECHO" skip="1" />
<element name="ECHOE" skip="1" />
<element name="ECHOK" skip="1" />
<element name="ECHONL" skip="1" />
<element name="NOFLSH" skip="1" />
<element name="TOSTOP" skip="1" />
<element name="ECHOCTL" skip="1" />
<element name="ECHOPRT" skip="1" />
<element name="ECHOKE" skip="1" />
<element name="FLUSHO" skip="1" />
<element name="PENDIN" skip="1" />
<element name="IEXTEN" skip="1" />
<element name="TIOCM_LE" skip="1" />
<element name="TIOCM_DTR" skip="1" />
<element name="TIOCM_RTS" skip="1" />
<element name="TIOCM_ST" skip="1" />
<element name="TIOCM_SR" skip="1" />
<element name="TIOCM_CTS" skip="1" />
<element name="TIOCM_CAR" skip="1" />
<element name="TIOCM_RNG" skip="1" />
<element name="TIOCM_DSR" skip="1" />
<element name="TIOCM_CD" skip="1" />
<element name="TIOCM_RI" skip="1" />
<element name="TIOCM_OUT1" skip="1" />
<element name="TIOCM_OUT2" skip="1" />
<element name="TCSANOW" skip="1" />
<element name="TCSADRAIN" skip="1" />
<element name="TCSAFLUSH" skip="1" />
<element name="TCOOFF" skip="1" />
<element name="TCOON" skip="1" />
<element name="TCIOFF" skip="1" />
<element name="TCION" skip="1" />
<element name="TCIFLUSH" skip="1" />
<element name="TCOFLUSH" skip="1" />
<element name="TCIOFLUSH" skip="1" />
<!-- alias type Visibility: default -->
<element name="UTimeBuf">
<short>Alias for <link id="UTimBuf"/> record.</short>
</element>
<!-- alias type Visibility: default -->
<element name="TUTimeBuf">
<short>Alias for <link id="UTimBuf"/> record.</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PUTimeBuf">
<short>Pointer to <link id="UTimeBuf"/> record</short>
</element>
<!-- record type Visibility: default -->
<element name="TSysinfo">
<short>Record with system information, used by the <link id="SysInfo"/> call.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.uptime">
<short>Number of seconds since boot.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.loads">
<short>1, 5 and 15 minute load averages.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.totalram">
<short>total amount of main memory.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.freeram">
<short>amount of free memory.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.sharedram">
<short>amount of shared memory.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.bufferram">
<short>amount of memory used by buffers.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.totalswap">
<short>total amount of swapspace.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.freeswap">
<short>amount of free swapspace.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.procs">
<short>number of current processes.</short>
</element>
<!-- variable Visibility: default -->
<element name="TSysinfo.s">
<short>?</short>
</element>
<!-- pointer type Visibility: default -->
<element name="PSysInfo">
<short>Pointer to <link id="TSysInfo"/> record.</short>
</element>
<!-- function Visibility: default -->
<element name="SysCall">
<short>Execute system call.</short>
<descr>
<var>SysCall</var> can be used to execute a direct system call.
The call parameters must be encoded in <var>regs</var> and the call number
must be specified by <var>callnr</var>. The call result is returned, and any
modified registers are in <var>regs</var>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="SysCallregs"/>
</seealso>
</element>
<!-- variable Visibility: default -->
<element name="tzdaylight">
<short>Indicates whether daylight savings time is active.</short>
</element>
<!-- variable Visibility: default -->
<element name="tzseconds">
<short>Seconds west of GMT</short>
</element>
<!-- variable Visibility: default -->
<element name="tzname">
<short>Timezone name.</short>
</element>
<!-- function Visibility: default -->
<element name="SetTime">
<short>Set the current system time.</short>
<descr>
<p>
<var>SetTime</var> sets the system time to <var>hour</var>, <var>min</var>,
<var>Sec</var>. This is the kernel time, so it is in GMT. The date is not
touched. The function returns <var>True</var> if the call was executed corretly,
<var>False</var> otherwise.
</p>
<remark>
You must be root to execute this call.
</remark>
</descr>
<errors>
Errors are returned in <link id="LinuxError"/>
</errors>
<seealso>
<link id="GetTime"/>
<link id="SetDate"/>
<link id="SetDateTime"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="SetDate">
<short>Set the current system date.</short>
<descr>
<p>
<var>SetDate</var> sets the system date to <var>year</var>, <var>month</var>,
<var>day</var>. This is the kernel date, so it is in GMT. The time is not
touched. The function returns <var>True</var> if the call was executed
corretly, <var>False</var> otherwise.
</p>
<remark>
You must be root to execute this call.
</remark>
</descr>
<errors>
Errors are returned in <link id="LinuxError"/>
</errors>
<seealso>
<link id="GetDate"/>
<link id="SetTime"/>
<link id="SetDateTime"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="SetDateTime">
<short>Set the current system date and time</short>
<descr>
<p>
<var>SetDate</var> sets the system date and time to <var>year</var>,
<var>month</var>, <var>day</var>, <var>hour</var>, <var>min</var>, <var>Sec</var>.
This is the kernel date/time, so it is in GMT. The time is not
touched. The function returns <var>True</var> if the call was executed
corretly, <var>False</var> otherwise.
</p>
<remark>
You must be root to execute this call.
</remark>
</descr>
<errors>
Errors are returned in <link id="LinuxError"/>
</errors>
<seealso>
<link id="SetDate"/>
<link id="SetTime"/>
<link id="GetDateTime"/>
</seealso>
</element>
<!-- procedure Visibility: default -->
<element name="ExitProcess">
<short>Exit the current process</short>
<descr>
<p>
<var>ExitProcess</var> exits the currently running process, and report
<var>Val</var> as the exit status.
</p>
<remark>
If this call is executed, the normal unit finalization code will not be
executed. This may lead to unexpected errors and stray files on your system.
It is therefore recommended to use the <var>Halt</var> call instead.
</remark>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="Fork"/>
<link id="ExecVE"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WaitProcess">
<short>Wait for process to terminate.</short>
<descr>
<p>
<var>WaitProcess</var> waits for process <var>PID</var> to exit.
<var>WaitProcess</var> is equivalent to the <link id="WaitPID"/> call:
</p>
<code>
WaitPid(PID,@result,0)
</code>
<p>
Handles of Signal interrupts (errno=EINTR), and returns the Exitcode of
Process <var>PID</var> (>=0) or -Status if it was terminated
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="WaitPID"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WEXITSTATUS">
<short>Extract the exit status from the <link id="WaitPID"/> result.</short>
<descr>
<var>WEXITSTATUS</var> can be used to extract the exit status from
<var>Status</var>, the result of the <link id="WaitPID"/> call.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WTERMSIG">
<short>Return the signal that caused a process to exit.</short>
<descr>
<var>WTERMSIG</var> extracts from <var>Status</var> the signal number which
caused the process to exit.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WSTOPSIG">
<short>Return the exit code from the process.</short>
<descr>
<var>WSTOPSIG</var> is an alias for <link id="WEXITSTATUS"/>.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WIFEXITED">
<short>Check whether the process exited normally</short>
<descr>
<var>WIFEXITED</var> checks <var>Status</var> and returns <var>True</var> if
the status indicates that the process terminated normally, i.e. was not
stopped by a signal.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WIFSTOPPED">
<short>Check whether the process is currently stopped.</short>
<descr>
<var>WIFSTOPPED</var> checks <var>Status</var> and returns <var>true</var>
if the process is currently stopped. This is only possible if WUNTRACED was
specified in the options of <link id="WaitPID"/>.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="WIFSIGNALED">
<short>Check whether the process was exited by a signal.</short>
<descr>
<var>WIFSIGNALED</var> returns <var>True</var> if <var>Status</var>
indicates that the process exited because it received a signal.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="W_EXITCODE"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="W_EXITCODE">
<short>Construct an exit status based on an return code and signal.</short>
<descr>
<var>W_EXITCODE</var> combines <var>ReturnCode</var> and <var>Signal</var>
to a status code fit for <var>WaitPid</var>.
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_STOPCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="W_STOPCODE">
<short>Construct an exit status based on a signal.</short>
<descr>
<var>W_STOPCODE</var> constructs an exit status based on
<var>Signal</var>, which will cause <link id="WIFSIGNALED"/> to return
<var>True</var>
</descr>
<seealso>
<link id="WaitPID"/>
<link id="WaitProcess"/>
<link id="WTERMSIG"/>
<link id="WSTOPSIG"/>
<link id="WIFEXITED"/>
<link id="WIFSTOPPED"/>
<link id="WIFSIGNALED"/>
<link id="W_EXITCODE"/>
<link id="WEXITSTATUS"/>
</seealso>
</element>
<!-- constant Visibility: default -->
<element name="MAP_GROWSDOWN">
<short><link id="MMap"/> option: Memory grows downward (like a stack)</short>
</element>
<!-- constant Visibility: default -->
<element name="MAP_DENYWRITE">
<short><link id="MMap"/> option: Ignored.</short>
</element>
<!-- constant Visibility: default -->
<element name="MAP_EXECUTABLE">
<short><link id="MMap"/> option: Ignored.</short>
</element>
<!-- constant Visibility: default -->
<element name="MAP_LOCKED">
<short><link id="MMap"/> option: lock the pages in memory.</short>
</element>
<!-- constant Visibility: default -->
<element name="MAP_NORESERVE">
<short><link id="MMap"/> option: Do not reserve swap pages for this memory.</short>
</element>
<!-- record type Visibility: default -->
<element name="tmmapargs">
<short>Record containing mmap args.</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.address">
<short>Address pointer</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.size">
<short>Size of region.</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.prot">
<short>Memory protection flags</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.flags">
<short>Flags</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.fd">
<short>File descriptor</short>
</element>
<!-- variable Visibility: default -->
<element name="tmmapargs.offset">
<short>Offset: Multiple of page size</short>
</element>
<!-- function Visibility: default -->
<element name="IoPL">
<short>Set I/O privilege level</short>
<descr>
<var>IoPL</var> sets the I/O privilige level. It is intended for
completeness only, one should normally not use it.
</descr>
</element>
<element name="Sh">
<short>Signal handler</short>
</element>
<!-- variable Visibility: default -->
<element name="Sa">
<short>Sigaction handler</short>
</element>
</module>
</package>
</fpdoc-descriptions>
|