libslack(lim) - POSIX.1 limits module
#include <slack/std.h> #include <slack/lim.h>
long limit_arg(void); long limit_child(void); long limit_tick(void); long limit_group(void); long limit_open(void); long limit_stream(void); long limit_tzname(void); long limit_job(void); long limit_save_ids(void); long limit_version(void); long limit_pcanon(const char *path); long limit_fcanon(int fd); long limit_canon(void); long limit_pinput(const char *path); long limit_finput(int fd); long limit_input(void); long limit_pvdisable(const char *path); long limit_fvdisable(int fd); long limit_vdisable(void); long limit_plink(const char *path); long limit_flink(int fd); long limit_link(void); long limit_pname(const char *path); long limit_fname(int fd); long limit_name(void); long limit_ppath(const char *path); long limit_fpath(int fd); long limit_path(void); long limit_ppipe(const char *path); long limit_fpipe(int fd); long limit_pnotrunc(const char *path); long limit_fnotrunc(int fd); long limit_notrunc(void); long limit_pchown(const char *path); long limit_fchown(int fd); long limit_chown(void);
This module provides functions for simply and reliably obtaining a POSIX.1 limit for the current system or a usable default when a particular facility is unlimited on the current system. These functions always return a usable value.
long limit_arg(void)
long limit_child(void)
long limit_tick(void)
long limit_group(void)
long limit_open(void)
long limit_stream(void)
long limit_tzname(void)
long limit_job(void)
long limit_save_ids(void)
long limit_version(void)
long limit_pcanon(const char *path)
path
. If indeterminate, a usable value (255) is returned.
long limit_fcanon(int fd)
fd
. If indeterminate, a usable value (255) is returned.
long limit_canon(void)
/dev/tty
). If indeterminate, a usable value (255) is returned.
long limit_pinput(const char *path)
path
. If indeterminate, a usable value (255) is returned.
long limit_finput(int fd)
fd
. If indeterminate, a usable value (255) is returned.
long limit_input(void)
/dev/tty
). If indeterminate, a usable value (255) is returned.
long limit_pvdisable(const char *path)
path
.
long limit_fvdisable(int fd)
fd
.
long limit_vdisable(void)
/dev/tty
).
long limit_plink(const char *path)
path
. If
indeterminate, a usable value (32768) is returned.
long limit_flink(int fd)
fd
. If
indeterminate, a usable value (32768) is returned.
long limit_link(void)
/
). If
indeterminate, a usable value (32768) is returned.
long limit_pname(const char *path)
path
that the process can create. If indeterminate, a usable value (1024)
is returned.
long limit_fname(int fd)
fd
that the process can create. If indeterminate, a usable value (1024)
is returned.
long limit_name(void)
/
) that
the process can create. If indeterminate, a usable value (1024) is returned.
long limit_ppath(const char *path)
nul
character) when path
is the current directory. If indeterminate, a usable
value (4096) is returned.
long limit_fpath(int fd)
nul
character) when fd
refers to the current directory. If indeterminate, a
usable value (4096) is returned.
long limit_path(void)
nul
character). If indeterminate, a usable value (4096) is returned.
long limit_ppipe(const char *path)
path
. If
indeterminate, a usable value (4096) is returned.
long limit_fpipe(int fd)
fd
. If indeterminate, a usable value (4096) is returned.
long limit_pnotrunc(const char *path)
path
.
long limit_fnotrunc(int fd)
fd
.
long limit_notrunc(void)
long limit_pchown(const char *path)
path
or the files contained in the directory referred to by path
.
long limit_fchown(int fd)
fd
or the files contained in the directory referred to by fd
.
long limit_chown(void)
The functions that return a condition return 1 when the condition is true or
0
when it is false. All of the others either return the system limit
indicated or a predetermined, usable value when the indicated limit is
indeterminate. These functions never return -1
.
MT-Safe
libslack(3), sysconf(2), pathconf(2), fpathconf(2), locker(3)
20020916 raf <raf@raf.org>