diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-06 10:03:43 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-06 10:07:50 -0500 |
commit | 816574513e0e163aff9f183721697f157eb158fa (patch) | |
tree | 3cde4d557838a9af08803e5314350f81276129af /src/bfstd.h | |
parent | 5fb1ed2d9803bfa5eefdc49ae232f9ea4afff018 (diff) | |
download | bfs-816574513e0e163aff9f183721697f157eb158fa.tar.xz |
bfstd: Expose rlim_cmp()
Diffstat (limited to 'src/bfstd.h')
-rw-r--r-- | src/bfstd.h | 7 |
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> /** |