summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-13 07:59:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-13 07:59:19 -0700
commit753b4a6d7eac7d7f0d46eab124df0aca80431f74 (patch)
tree56acb3e9bc6ba8754f49e56a0a2c3661d24904ae /stdlib
parent3656ba07ccf49eb25cf3b1f30298de9b2c0955d4 (diff)
downloadtxr-753b4a6d7eac7d7f0d46eab124df0aca80431f74.tar.gz
txr-753b4a6d7eac7d7f0d46eab124df0aca80431f74.tar.bz2
txr-753b4a6d7eac7d7f0d46eab124df0aca80431f74.zip
New functions: getrlimit, setrlimit.
* stdlib/doc-syms.tl: Updated. * sysif.c (rlim_s, cur_s, max_s): New symbol variables. (rlim_st): New variable. (getrlimit_wrap, setrlimit_wrap): New functions. (sysif_init): gc-protect rlim-st. Initialize symbol vsariables. Create rlim struct type. Register getrlimit and setrlimit intrinsics. Register variables rlim-saved-max, rlim-saved-cur, rlim-infinity, rlimit-core, rlimit-cpu, rlimit-data, rlimit-fsize, rlimit-nofile, rlimit-stack and rlimit-as. * txr.1: Documented under new Unix Resource Limits section.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/doc-syms.tl6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index 0d69f2a2..47581464 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -883,6 +883,7 @@
("getpwuid" "N-03E528C6")
("getresgid" "N-03D37234")
("getresuid" "N-03D37234")
+ ("getrlimit" "N-03AB0CF0")
("getuid" "N-00125C22")
("gid-t" "N-01D716FE")
("ginterate" "N-02F671F4")
@@ -1550,6 +1551,10 @@
("rlcp" "N-024EB211")
("rlcp-tree" "N-024EB211")
("rlet" "N-008212A0")
+ ("rlim" "N-0178F77B")
+ ("rlim-infinity" "N-01548AE6")
+ ("rlim-saved-cur" "N-01548AE6")
+ ("rlim-saved-max" "N-01548AE6")
("rlist" "N-02FD60D0")
("rlist*" "N-02FD60D0")
("rmdir" "N-03D90503")
@@ -1643,6 +1648,7 @@
("setpwent" "N-0377C43A")
("setresgid" "N-027671E8")
("setresuid" "N-027671E8")
+ ("setrlimit" "N-03AB0CF0")
("setuid" "N-03897D65")
("seventh" "N-01B0FA33")
("sh" "N-0158244A")