summaryrefslogtreecommitdiffstats
path: root/src/bfstd.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-06 10:03:43 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-06 10:07:50 -0500
commit816574513e0e163aff9f183721697f157eb158fa (patch)
tree3cde4d557838a9af08803e5314350f81276129af /src/bfstd.h
parent5fb1ed2d9803bfa5eefdc49ae232f9ea4afff018 (diff)
downloadbfs-816574513e0e163aff9f183721697f157eb158fa.tar.xz
bfstd: Expose rlim_cmp()
Diffstat (limited to 'src/bfstd.h')
-rw-r--r--src/bfstd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h
index 4e36aca..6cb2d7b 100644
--- a/src/bfstd.h
+++ b/src/bfstd.h
@@ -187,6 +187,13 @@ const char *xstrerror(int errnum);
*/
void xstrmode(mode_t mode, char str[11]);
+#include <sys/resource.h>
+
+/**
+ * Compare two rlim_t values, accounting for infinite limits.
+ */
+int rlim_cmp(rlim_t a, rlim_t b);
+
#include <sys/types.h>
/**