Man page - prlimit(2)
Packages contains this manual
- __malloc_initialize_hook(3)
- getpwuid(3)
- frexpl(3)
- fchown(2)
- setttyent(3)
- pthread_attr_setstacksize(3)
- calloc(3)
- clog(3)
- seteuid(2)
- res_nquerydomain(3)
- y0l(3)
- catanl(3)
- catanh(3)
- inet_addr(3)
- getcwd(2)
- epoll_create1(2)
- atol(3)
- pciconfig_write(2)
- htonl(3)
- timer_settime(2)
- munmap(2)
- cexpl(3)
- rt_sigsuspend(2)
- msgctl(2)
- tan(3)
- get_mempolicy(2)
- roundf(3)
- towctrans(3)
- xdr_opaque(3)
- psignal(3)
- error_at_line(3)
- xdrmem_create(3)
- select(2)
- getdate_r(3)
- getprotobyname_r(3)
- nrand48_r(3)
- inet_netof(3)
- inet_ntoa(3)
- nextafterl(3)
- innetgr(3)
- on_exit(3)
- expm1l(3)
- strfmon(3)
- strdup(3)
- getservbyport(3)
- arch_prctl(2)
- j0(3)
- wait4(2)
- personality(2)
- bpf(2)
- pvalloc(3)
- getresuid32(2)
- des_setparity(3)
- prctl(2)
- clog10(3)
- aio_init(3)
- pthread_getconcurrency(3)
- csinl(3)
- linkat(2)
- vsscanf(3)
- isascii(3)
- xdr_union(3)
- nan(3)
- utimensat(2)
- ioctl_vt(2)
- _newselect(2)
- ldexpl(3)
- fabsf(3)
- chown(2)
- mkstemps(3)
- pthread_attr_getstacksize(3)
- listxattr(2)
- getpgrp(2)
- xdr_short(3)
- tcflush(3)
- pthread_cond_wait(3)
- argz_add(3)
- wcpncpy(3)
- reallocarray(3)
- llrintf(3)
- outsl(2)
- qsort(3)
- authnone_create(3)
- tzname(3)
- setresuid32(2)
- isspace(3)
- open_by_handle_at(2)
- drem(3)
- conjf(3)
- nanosleep(2)
- pthread_kill(3)
- putc(3)
- pthread_condattr_destroy(3)
- getpwuid_r(3)
- strverscmp(3)
- res_init(3)
- cacosl(3)
- qecvt_r(3)
- iswgraph(3)
- gethostbyname(3)
- ntohl(3)
- acct(2)
- asinl(3)
- envz_merge(3)
- strdupa(3)
- idle(2)
- getopt_long_only(3)
- hstrerror(3)
- fanotify_init(2)
- fputs_unlocked(3)
- sleep(3)
- vfprintf(3)
- scalb(3)
- nanl(3)
- lchown32(2)
- getnetent_r(3)
- fcntl(2)
- inw(2)
- rintl(3)
- arc4random(3)
- getsockopt(2)
- ilogbl(3)
- clog2(3)
- encrypt(3)
- sqrtf(3)
- isspace_l(3)
- tanl(3)
- cfmakeraw(3)
- assert(3)
- strtoull(3)
- xdrstdio_create(3)
- optopt(3)
- setrlimit(2)
- lround(3)
- xdr_accepted_reply(3)
- fmin(3)
- mq_notify(3)
- svcerr_auth(3)
- sbrk(2)
- recv(2)
- mq_unlink(2)
- strxfrm(3)
- ctan(3)
- atoi(3)
- xcrypt(3)
- sgetspent(3)
- fread(3)
- isless(3)
- ceil(3)
- pthread_cond_broadcast(3)
- oldfstat(2)
- outl(2)
- times(2)
- wcslen(3)
- popen(3)
- wprintf(3)
- labs(3)
- getrpcbynumber(3)
- shmat(2)
- clock_gettime(2)
- btree(3)
- s390_sthyi(2)
- siggetmask(3)
- getgid32(2)
- puts(3)
- scalblnl(3)
- strpbrk(3)
- catanhl(3)
- vlimit(3)
- getrpcent(3)
- tgammal(3)
- strtoll(3)
- funlockfile(3)
- xdecrypt(3)
- pthread_key_delete(3)
- setgrent(3)
- wmemmove(3)
- gnu_dev_major(3)
- regexec(3)
- lrintl(3)
- __ppc_set_ppr_med(3)
- rmdir(2)
- io_getevents(2)
- request_key(2)
- ecvt(3)
- __ppc_mdoom(3)
- mktemp(3)
- key_gendes(3)
- le64toh(3)
- statvfs(3)
- rpc(3)
- getdate_err(3)
- munlockall(2)
- close(2)
- xdr_rejected_reply(3)
- dlerror(3)
- le32toh(3)
- feclearexcept(3)
- insque(3)
- clntraw_create(3)
- getutid(3)
- strtof(3)
- settimeofday(2)
- mkdir(2)
- rewind(3)
- logf(3)
- tmpnam(3)
- iswpunct(3)
- wcrtomb(3)
- epoll_pwait(2)
- getitimer(2)
- wordexp(3)
- clog2f(3)
- capset(2)
- strrchr(3)
- outsb(2)
- freeifaddrs(3)
- getwc_unlocked(3)
- ustat(2)
- bswap_16(3)
- program_invocation_short_name(3)
- ldiv(3)
- exp10f(3)
- vprintf(3)
- wcsncpy(3)
- iscntrl(3)
- readlink(2)
- semget(2)
- connect(2)
- psiginfo(3)
- epoll_ctl(2)
- removexattr(2)
- envz_strip(3)
- fgetxattr(2)
- atexit(3)
- putgrent(3)
- bswap(3)
- getegid32(2)
- qecvt(3)
- asinh(3)
- isfdtype(3)
- setenv(3)
- readdir(3)
- rtime(3)
- nearbyint(3)
- getgroups32(2)
- statx(2)
- modify_ldt(2)
- cpow(3)
- eventfd_read(3)
- sendfile64(2)
- getnetbyname(3)
- fremovexattr(2)
- uselib(2)
- inet(3)
- endutxent(3)
- clnt_spcreateerror(3)
- pututline(3)
- nexttowardl(3)
- getipnodebyaddr(3)
- fts_set(3)
- memmem(3)
- fmodl(3)
- setfsuid32(2)
- wordfree(3)
- fadvise64(2)
- getppid(2)
- qsort_r(3)
- toupper(3)
- getwc(3)
- fputws(3)
- mrand48(3)
- preadv(2)
- sincosf(3)
- fstatat64(2)
- dirfd(3)
- jnf(3)
- static_assert(3)
- wctype(3)
- vwarn(3)
- setfsent(3)
- listen(2)
- wcstok(3)
- argz_insert(3)
- select_tut(2)
- ctanl(3)
- getunwind(2)
- difftime(3)
- daylight(3)
- sigpause(3)
- wcscat(3)
- dlclose(3)
- __ppc_set_ppr_med_low(3)
- pread(2)
- fstatvfs(3)
- cbrtf(3)
- strnlen(3)
- sinhl(3)
- inl_p(2)
- setregid32(2)
- putwc(3)
- register_printf_type(3)
- nextafterf(3)
- opendir(3)
- strtod(3)
- tgamma(3)
- malloc_get_state(3)
- aio_write(3)
- timezone(3)
- xdr_pmaplist(3)
- sysfs(2)
- index(3)
- svcerr_noproc(3)
- envz(3)
- klogctl(3)
- pselect(2)
- get_current_dir_name(3)
- xdr_char(3)
- asinhf(3)
- preadv2(2)
- inotify_init1(2)
- pthread_attr_setstackaddr(3)
- getline(3)
- tanhf(3)
- rtnetlink(3)
- pkey_alloc(2)
- edata(3)
- stailq(3)
- isastream(2)
- setregid(2)
- copy_file_range(2)
- rcmd_af(3)
- futex(2)
- prof(2)
- siglongjmp(3)
- hdestroy(3)
- catan(3)
- pthread_cond_signal(3)
- mkfifoat(3)
- clntudp_create(3)
- getentropy(3)
- vsprintf(3)
- fabs(3)
- lseek64(3)
- pthread_setname_np(3)
- conjl(3)
- chroot(2)
- ccoshf(3)
- erand48_r(3)
- wcsnrtombs(3)
- rindex(3)
- fputc_unlocked(3)
- setresgid32(2)
- gettimeofday(2)
- cexp(3)
- inotify_add_watch(2)
- set_robust_list(2)
- nice(2)
- strtold(3)
- mq_getattr(3)
- xdr(3)
- getxattr(2)
- getrandom(2)
- splice(2)
- strerror(3)
- fcntl64(2)
- fnmatch(3)
- ungetwc(3)
- getspnam_r(3)
- clearenv(3)
- atan2(3)
- get_myaddress(3)
- open(2)
- pthread_setcancelstate(3)
- newlocale(3)
- open_memstream(3)
- setprotoent(3)
- logbf(3)
- ilogb(3)
- wmemcpy(3)
- tcsendbreak(3)
- be16toh(3)
- perfmonctl(2)
- strtoq(3)
- getgrgid_r(3)
- pthread_timedjoin_np(3)
- memfd_create(2)
- getttynam(3)
- mcheck_pedantic(3)
- _llseek(2)
- renameat2(2)
- ioperm(2)
- ecb_crypt(3)
- pthread_condattr_init(3)
- fminl(3)
- lio_listio(3)
- envz_add(3)
- setbuf(3)
- setkey(3)
- expm1(3)
- strtoul(3)
- getcwd(3)
- setutxent(3)
- getrpcent_r(3)
- unimplemented(2)
- fclose(3)
- epoll_create(2)
- getfsent(3)
- key_secretkey_is_set(3)
- vserver(2)
- vswprintf(3)
- sigsuspend(2)
- pututxline(3)
- clnt_freeres(3)
- cacheflush(2)
- ioprio_set(2)
- alarm(2)
- fgetc(3)
- __fpurge(3)
- getlogin_r(3)
- vfork(2)
- bstring(3)
- div(3)
- getrusage(2)
- gettid(2)
- dprintf(3)
- strtoumax(3)
- jrand48(3)
- iswcntrl(3)
- vwarnx(3)
- cacos(3)
- ccoshl(3)
- fesetexceptflag(3)
- res_nclose(3)
- shmop(2)
- mcheck_check_all(3)
- vscanf(3)
- tolower(3)
- landlock_add_rule(2)
- argz_next(3)
- lroundl(3)
- ruserok(3)
- glob(3)
- brk(2)
- rename(2)
- strcspn(3)
- sched_getscheduler(2)
- wcstoumax(3)
- dbopen(3)
- xdr_bytes(3)
- fegetenv(3)
- scalbf(3)
- pkey_free(2)
- fgetgrent(3)
- strchrnul(3)
- fork(2)
- log1pf(3)
- strtoimax(3)
- fputs(3)
- putspent(3)
- ttyname_r(3)
- iswlower(3)
- epoll_wait(2)
- minor(3)
- wcsspn(3)
- sendmmsg(2)
- pthread_attr_getsigmask_np(3)
- erand48(3)
- setpgrp(2)
- db(3)
- readv(2)
- cimagf(3)
- pthread_sigmask(3)
- getresuid(2)
- gamma(3)
- logwtmp(3)
- imaxabs(3)
- y1(3)
- swapoff(2)
- svcerr_weakauth(3)
- mbtowc(3)
- madvise(2)
- __fbufsize(3)
- swapon(2)
- towlower(3)
- asin(3)
- initgroups(3)
- svc_getreqset(3)
- pthread_attr_destroy(3)
- scalblnf(3)
- ispunct(3)
- casin(3)
- xdr_pmap(3)
- sigvec(3)
- dlmopen(3)
- localeconv(3)
- tcgetattr(3)
- mempcpy(3)
- clnt_perrno(3)
- clock_getcpuclockid(3)
- setaliasent(3)
- clock(3)
- ftok(3)
- svc_run(3)
- getsubopt(3)
- coshf(3)
- pow(3)
- getpwent(3)
- ntp_gettime(3)
- xdrrec_skiprecord(3)
- symlink(2)
- shmctl(2)
- mq_timedreceive(2)
- malloc(3)
- tgkill(2)
- l64a(3)
- unlockpt(3)
- mallopt(3)
- creal(3)
- syscalls(2)
- set_tid_address(2)
- exp2f(3)
- fstatfs(2)
- statfs(2)
- dreml(3)
- feenableexcept(3)
- ftw(3)
- fanotify_mark(2)
- clnt_sperror(3)
- realpath(3)
- sysconf(3)
- _syscall(2)
- set_mempolicy(2)
- mq_unlink(3)
- freehostent(3)
- rresvport_af(3)
- nl_langinfo_l(3)
- fmaxl(3)
- iscntrl_l(3)
- copysignf(3)
- llseek(2)
- bzero(3)
- ioctl_fsmap(2)
- remquof(3)
- malloc_trim(3)
- pthread_getattr_default_np(3)
- isalnum_l(3)
- mlock(2)
- nearbyintf(3)
- confstr(3)
- sinf(3)
- ioctl_eventpoll(2)
- sigstack(3)
- seed48_r(3)
- utmpname(3)
- malloc_stats(3)
- stpncpy(3)
- getservbyport_r(3)
- cabsl(3)
- isblank(3)
- sigprocmask(2)
- isinfl(3)
- isinff(3)
- pathconf(3)
- xdr_u_short(3)
- acos(3)
- timerfd_create(2)
- key_encryptsession(3)
- log2f(3)
- oldlstat(2)
- res_querydomain(3)
- memcmp(3)
- gethostbyaddr(3)
- sighold(3)
- gtty(2)
- xdr_void(3)
- getmsg(2)
- io_setup(2)
- ttyslot(3)
- recno(3)
- cuserid(3)
- nanf(3)
- pthread_getaffinity_np(3)
- if_indextoname(3)
- remainderf(3)
- putpwent(3)
- pow10f(3)
- pwritev(2)
- swapcontext(3)
- cfsetospeed(3)
- envz_remove(3)
- cosh(3)
- a64l(3)
- uselocale(3)
- yn(3)
- msgget(2)
- pthread_equal(3)
- prlimit(2)
- setspent(3)
- newfstatat(2)
- renameat(2)
- truncf(3)
- pthread_yield(3)
- tkill(2)
- islessequal(3)
- isnanf(3)
- sethostent(3)
- setvbuf(3)
- gnu_get_libc_release(3)
- atoll(3)
- getgrnam(3)
- get_robust_list(2)
- __ppc_yield(3)
- __memalign_hook(3)
- eventfd2(2)
- mq_setattr(3)
- tmpnam_r(3)
- pmap_getport(3)
- svcfd_create(3)
- getfsspec(3)
- setgid(2)
- getlogin(3)
- get_nprocs(3)
- canonicalize_file_name(3)
- pthread_mutexattr_getrobust(3)
- strerrorname_np(3)
- csinh(3)
- malloc_set_state(3)
- tcgetsid(3)
- ssignal(3)
- secure_getenv(3)
- significandl(3)
- wcschr(3)
- isgraph(3)
- pthread_mutexattr_gettype(3)
- creat(2)
- cabsf(3)
- __ppc_set_ppr_med_high(3)
- fchdir(2)
- backtrace_symbols(3)
- exp10l(3)
- euidaccess(3)
- sync_file_range(2)
- getutxline(3)
- isdigit(3)
- sinhf(3)
- lgetxattr(2)
- getaliasent(3)
- memrchr(3)
- io_submit(2)
- clnt_create(3)
- __setfpucw(3)
- _flushlbf(3)
- lcong48_r(3)
- clog10l(3)
- pmap_getmaps(3)
- memalign(3)
- xdr_authunix_parms(3)
- execl(3)
- getdate(3)
- cfsetispeed(3)
- tanhl(3)
- wmempcpy(3)
- outw_p(2)
- faccessat(2)
- rresvport(3)
- nextup(3)
- fgetgrent_r(3)
- getopt(3)
- xdr_vector(3)
- aio_error(3)
- frexpf(3)
- getpw(3)
- sscanf(3)
- mprotect(2)
- exp(3)
- sched_getaffinity(2)
- accept4(2)
- remainderl(3)
- pthread_key_create(3)
- endian(3)
- setmntent(3)
- get_phys_pages(3)
- argz(3)
- _exit(2)
- towupper_l(3)
- lrand48(3)
- csqrt(3)
- hdestroy_r(3)
- remquo(3)
- feof_unlocked(3)
- isprint(3)
- pivot_root(2)
- arc4random_uniform(3)
- strfroml(3)
- getdomainname(2)
- va_end(3)
- getresgid(2)
- cosf(3)
- endhostent(3)
- setgid32(2)
- ioctl_fs(2)
- getaddrinfo(3)
- fgetwc(3)
- lock(2)
- getservbyname_r(3)
- sys_nerr(3)
- insb(2)
- usleep(3)
- security(2)
- cfree(3)
- tanf(3)
- fprintf(3)
- pthread_mutexattr_setpshared(3)
- xprt_unregister(3)
- alphasort(3)
- getgrent(3)
- scandirat(3)
- iruserok(3)
- ttyname(3)
- tdestroy(3)
- strcasecmp(3)
- getpgid(2)
- drand48_r(3)
- mmap(2)
- sigtimedwait(2)
- pthread_once(3)
- mq_receive(3)
- pthread_mutexattr_setkind_np(3)
- iopl(2)
- s390_runtime_instr(2)
- lckpwdf(3)
- memmove(3)
- __fpending(3)
- mbsrtowcs(3)
- restart_syscall(2)
- memset(3)
- significandf(3)
- openat2(2)
- timeradd(3)
- conj(3)
- flockfile(3)
- madvise1(2)
- inet_aton(3)
- fstatfs64(2)
- fmax(3)
- fmemopen(3)
- fmaf(3)
- lseek(2)
- registerrpc(3)
- kexec_file_load(2)
- gammal(3)
- feof(3)
- pidfd_open(2)
- crealf(3)
- clogl(3)
- getutmp(3)
- umount(2)
- inet_pton(3)
- flistxattr(2)
- xdr_wrapstring(3)
- socketcall(2)
- setrpcent(3)
- rint(3)
- vm86(2)
- sincosl(3)
- getprotoent_r(3)
- mknod(2)
- getdents64(2)
- gai_cancel(3)
- srandom_r(3)
- getnetbyname_r(3)
- sigaddset(3)
- htole16(3)
- endnetent(3)
- nextafter(3)
- timerisset(3)
- getgrent_r(3)
- freeaddrinfo(3)
- endprotoent(3)
- mbind(2)
- sigorset(3)
- pthread_rwlockattr_setkind_np(3)
- cimag(3)
- waitid(2)
- abs(3)
- unlink(2)
- recvmsg(2)
- getaliasbyname(3)
- wctrans(3)
- kill(2)
- strtol(3)
- __ppc_set_ppr_very_low(3)
- membarrier(2)
- getnetbyaddr_r(3)
- writev(2)
- errx(3)
- tfind(3)
- clone3(2)
- __freading(3)
- outw(2)
- regfree(3)
- accept(2)
- timer_getoverrun(2)
- shmdt(2)
- svcerr_decode(3)
- getnameinfo(3)
- endusershell(3)
- execvpe(3)
- cbc_crypt(3)
- res_send(3)
- xdr_destroy(3)
- getcontext(3)
- pkey_mprotect(2)
- twalk_r(3)
- isalnum(3)
- timercmp(3)
- setxattr(2)
- pthread_cleanup_pop_restore_np(3)
- stat(2)
- isupper(3)
- vsyslog(3)
- strlen(3)
- pthread_attr_setinheritsched(3)
- xdr_inline(3)
- strtouq(3)
- raise(3)
- getpeername(2)
- capget(2)
- atanl(3)
- ferror_unlocked(3)
- isxdigit_l(3)
- modfl(3)
- pthread_mutexattr_init(3)
- pthread_mutexattr_getkind_np(3)
- phys(2)
- llabs(3)
- sched_rr_get_interval(2)
- asprintf(3)
- explicit_bzero(3)
- asctime(3)
- clone(2)
- munlock(2)
- __realloc_hook(3)
- atof(3)
- rt_tgsigqueueinfo(2)
- syslog(2)
- inet_makeaddr(3)
- epoll_pwait2(2)
- iswalpha(3)
- netlink(3)
- sched_setattr(2)
- sigdescr_np(3)
- access(2)
- getc_unlocked(3)
- dysize(3)
- inet_net_pton(3)
- sched_setparam(2)
- timerfd_settime(2)
- nexttowardf(3)
- expf(3)
- svcerr_progvers(3)
- getwchar(3)
- ftime(3)
- if_nametoindex(3)
- argz_add_sep(3)
- vasprintf(3)
- unlinkat(2)
- putenv(3)
- pthread_mutexattr_setrobust_np(3)
- error_message_count(3)
- setfsgid(2)
- cmsg(3)
- setpwent(3)
- cfgetospeed(3)
- end(3)
- pidfd_send_signal(2)
- scalbn(3)
- closelog(3)
- srandom(3)
- argz_replace(3)
- ioctl_tty(2)
- va_arg(3)
- towlower_l(3)
- isblank_l(3)
- remove(3)
- expl(3)
- fscanf(3)
- versionsort(3)
- pow10(3)
- hsearch(3)
- gethostid(3)
- fchownat(2)
- group_member(3)
- getchar_unlocked(3)
- getservbyname(3)
- pthread_mutexattr_destroy(3)
- setpgid(2)
- acosf(3)
- ctanhf(3)
- shm_open(3)
- towupper(3)
- getdents(2)
- chown32(2)
- hypotf(3)
- undocumented(3)
- drand48(3)
- csinf(3)
- ctime_r(3)
- setlinebuf(3)
- ulimit(3)
- spu_create(2)
- fcvt_r(3)
- ipc(2)
- ftruncate64(2)
- fdopen(3)
- svcerr_noprog(3)
- getrpcport(3)
- csin(3)
- sinh(3)
- nrand48(3)
- openpty(3)
- xdr_double(3)
- pthread_attr_getscope(3)
- vfscanf(3)
- catanhf(3)
- inb(2)
- wcpcpy(3)
- ldexp(3)
- getopt_long(3)
- strerrordesc_np(3)
- mbsinit(3)
- argz_stringify(3)
- setbuffer(3)
- byteorder(3)
- expm1f(3)
- pthread_attr_setscope(3)
- gnu_dev_makedev(3)
- pipe(2)
- updwtmp(3)
- fts_read(3)
- ioctl_fat(2)
- h_errno(3)
- sem_getvalue(3)
- iswupper(3)
- lrint(3)
- perror(3)
- xdr_u_int(3)
- timer_create(2)
- iswdigit(3)
- fgetspent(3)
- fwrite_unlocked(3)
- reboot(2)
- ftruncate(2)
- getutmpx(3)
- pwrite64(2)
- getauxval(3)
- xdr_pointer(3)
- getprotobynumber(3)
- svc_destroy(3)
- vmsplice(2)
- inet_network(3)
- readdir_r(3)
- setsockopt(2)
- rexec(3)
- flock(2)
- getw(3)
- mmap2(2)
- j1f(3)
- cprojf(3)
- mkstemp(3)
- symlinkat(2)
- tempnam(3)
- pthread_attr_getaffinity_np(3)
- gethostbyname_r(3)
- signalfd4(2)
- sys_siglist(3)
- erfc(3)
- truncate64(2)
- verr(3)
- pthread_kill_other_threads_np(3)
- eaccess(3)
- fsetpos(3)
- slist(3)
- pmap_unset(3)
- modf(3)
- ioctl_pipe(2)
- vfwprintf(3)
- getresgid32(2)
- statfs64(2)
- cexp2(3)
- stdio_ext(3)
- login_tty(3)
- xdr_long(3)
- dlsym(3)
- clog2l(3)
- malloc_usable_size(3)
- fegetexceptflag(3)
- basename(3)
- fwrite(3)
- vhangup(2)
- printf(3)
- setnetent(3)
- gethostbyname2(3)
- mallinfo2(3)
- signbit(3)
- clnt_broadcast(3)
- sched_yield(2)
- sem_open(3)
- sigsetjmp(3)
- cacoshl(3)
- sem_unlink(3)
- setresuid(2)
- signgam(3)
- putw(3)
- imaxdiv(3)
- regex(3)
- alloc_hugepages(2)
- modff(3)
- exp10(3)
- cprojl(3)
- utime(2)
- clogf(3)
- pthread_mutex_unlock(3)
- erff(3)
- ioctl_userfaultfd(2)
- iswprint(3)
- roundl(3)
- sqrtl(3)
- fpurge(3)
- getusershell(3)
- fcloseall(3)
- xdr_opaque_auth(3)
- gethostent_r(3)
- fgetwc_unlocked(3)
- fchmod(2)
- strptime(3)
- lutimes(3)
- htole64(3)
- putchar_unlocked(3)
- create_module(2)
- isascii_l(3)
- sigaction(2)
- stdout(3)
- geteuid32(2)
- xprt_register(3)
- freopen(3)
- ccosl(3)
- pthread_setschedprio(3)
- rt_sigaction(2)
- getmntent(3)
- putwchar_unlocked(3)
- logl(3)
- remque(3)
- unsetenv(3)
- sigwaitinfo(2)
- pthread_mutexattr_getrobust_np(3)
- initstate_r(3)
- getfsfile(3)
- exp2l(3)
- isatty(3)
- lgamma_r(3)
- lrintf(3)
- outb(2)
- __clone2(2)
- strcpy(3)
- clnt_call(3)
- hypot(3)
- fegetexcept(3)
- tcsetpgrp(3)
- gets(3)
- malloc_info(3)
- nextupf(3)
- pthread_attr_getdetachstate(3)
- getaliasent_r(3)
- fstat64(2)
- futimesat(2)
- dl_iterate_phdr(3)
- posix_madvise(3)
- endnetgrent(3)
- tolower_l(3)
- pthread_attr_setstack(3)
- pread64(2)
- sigsetops(3)
- stty(2)
- process_vm_readv(2)
- isfinite(3)
- gethostbyaddr_r(3)
- cproj(3)
- gai_strerror(3)
- key_decryptsession(3)
- inet_ntop(3)
- __ppc_mdoio(3)
- btowc(3)
- setstate_r(3)
- if_nameindex(3)
- fdetach(2)
- random_r(3)
- iruserok_af(3)
- truncl(3)
- clearerr(3)
- lgammaf(3)
- lfind(3)
- ctanf(3)
- strcat(3)
- pthread_attr_getschedpolicy(3)
- pthread_rwlockattr_getkind_np(3)
- sigrelse(3)
- daemon(3)
- pthread_setcanceltype(3)
- sigevent(7)
- iswalnum(3)
- pmap_set(3)
- stdin(3)
- ceilf(3)
- asctime_r(3)
- poll(2)
- svc_unregister(3)
- isnanl(3)
- carg(3)
- getprotobyname(3)
- arm_fadvise(2)
- optind(3)
- mount_setattr(2)
- dlvsym(3)
- ntp_adjtime(3)
- abort(3)
- pthread_getname_np(3)
- execlp(3)
- bind(2)
- bsearch(3)
- endspent(3)
- register_printf_specifier(3)
- landlock_create_ruleset(2)
- mkostemp(3)
- setgroups(2)
- toupper_l(3)
- argz_extract(3)
- sigblock(3)
- j0l(3)
- argz_delete(3)
- setusershell(3)
- getspnam(3)
- optarg(3)
- vm86old(2)
- sigandset(3)
- getdtablesize(3)
- getsockname(2)
- pthread_sigqueue(3)
- ptsname(3)
- j1(3)
- lgamma(3)
- getpagesize(2)
- pthread_mutex_lock(3)
- setsid(2)
- strncat(3)
- ioctl_kd(2)
- tsearch(3)
- mq_notify(2)
- fcvt(3)
- clntudp_bufcreate(3)
- getpwent_r(3)
- pthread_getspecific(3)
- memfrob(3)
- arc4random_buf(3)
- forkpty(3)
- powl(3)
- dlopen(3)
- stderr(3)
- set_thread_area(2)
- query_module(2)
- sem_close(3)
- strndup(3)
- __malloc_hook(3)
- setjmp(3)
- stdio(3)
- bdflush(2)
- sendto(2)
- mpx(2)
- fopen(3)
- setpriority(2)
- nextdownl(3)
- mprobe(3)
- oldstat(2)
- sem_destroy(3)
- bcopy(3)
- remap_file_pages(2)
- isgreaterequal(3)
- getpass(3)
- seekdir(3)
- break(2)
- authunix_create_default(3)
- tty_ioctl(4)
- process_madvise(2)
- endfsent(3)
- atoq(3)
- strftime(3)
- fts(3)
- getgrgid(3)
- isxdigit(3)
- ftello(3)
- regcomp(3)
- error(3)
- getenv(3)
- clnt_sperrno(3)
- readahead(2)
- y0(3)
- roundup(3)
- io_destroy(2)
- vsnprintf(3)
- lgammal(3)
- eventfd_write(3)
- pthread_mutex_trylock(3)
- lchown(2)
- dladdr(3)
- error_print_progname(3)
- pthread_mutexattr_settype(3)
- strspn(3)
- __after_morecore_hook(3)
- localtime(3)
- fsync(2)
- ether_aton(3)
- csinhl(3)
- trunc(3)
- xdr_u_char(3)
- syslog(3)
- y1f(3)
- ioctl_nsfs(2)
- wmemcmp(3)
- ffsll(3)
- ether_ntohost(3)
- bswap_32(3)
- umount2(2)
- sigfillset(3)
- landlock_restrict_self(2)
- pthread_join(3)
- sysinfo(2)
- clock_settime(2)
- llrint(3)
- s390_guarded_storage(2)
- getc(3)
- inet_lnaof(3)
- tcgetpgrp(3)
- clock_getres(2)
- etext(3)
- strfmon_l(3)
- putwc_unlocked(3)
- xdr_replymsg(3)
- scalbl(3)
- fdim(3)
- getspent(3)
- sem_timedwait(3)
- posix_fallocate(3)
- res_nmkquery(3)
- pthread_spin_unlock(3)
- mq_timedsend(2)
- opterr(3)
- getloadavg(3)
- strsignal(3)
- finite(3)
- inw_p(2)
- csinhf(3)
- execveat(2)
- seed48(3)
- sigset(3)
- setgroups32(2)
- logbl(3)
- wcsdup(3)
- clnt_geterr(3)
- sys_errlist(3)
- inotify_rm_watch(2)
- qgcvt(3)
- wcspbrk(3)
- sin(3)
- lookup_dcookie(2)
- s390_pci_mmio_read(2)
- wcscmp(3)
- getutxent(3)
- pciconfig_read(2)
- initstate(3)
- backtrace(3)
- putc_unlocked(3)
- fedisableexcept(3)
- rt_sigprocmask(2)
- clock_adjtime(2)
- fwprintf(3)
- jnl(3)
- grantpt(3)
- cimagl(3)
- getgrnam_r(3)
- remquol(3)
- swprintf(3)
- mbrtowc(3)
- fileno_unlocked(3)
- readlinkat(2)
- sigignore(3)
- strndupa(3)
- semctl(2)
- assert_perror(3)
- sendfile(2)
- shm_unlink(3)
- log(3)
- ungetc(3)
- erf(3)
- qfcvt(3)
- pthread_atfork(3)
- login(3)
- setservent(3)
- jrand48_r(3)
- wcsnlen(3)
- tcflow(3)
- pthread_cond_destroy(3)
- inl(2)
- srand48_r(3)
- erfcf(3)
- iconv(3)
- pthread_mutex_consistent_np(3)
- fabsl(3)
- pclose(3)
- nfsservctl(2)
- gai_error(3)
- wcsncmp(3)
- islower_l(3)
- iswctype(3)
- svc_register(3)
- arm_sync_file_range(2)
- strfry(3)
- strfromd(3)
- getttyent(3)
- rand(3)
- fchown32(2)
- ctime(3)
- fsetxattr(2)
- feupdateenv(3)
- random(3)
- getpwnam_r(3)
- sigwait(3)
- aio_fsync(3)
- mq_open(2)
- tanh(3)
- localtime_r(3)
- bsd_signal(3)
- strsep(3)
- mknodat(2)
- cexpf(3)
- cacosh(3)
- mbrlen(3)
- aio_cancel(3)
- mq_getsetattr(2)
- fdatasync(2)
- htons(3)
- sem_post(3)
- htobe16(3)
- vtimes(3)
- fgetpwent_r(3)
- getwchar_unlocked(3)
- mkdirat(2)
- dup(2)
- free_hugepages(2)
- feraiseexcept(3)
- lockf(3)
- userfaultfd(2)
- pthread_attr_setaffinity_np(3)
- memcpy(3)
- prlimit64(2)
- ferror(3)
- ldexpf(3)
- aio_return(3)
- adjtimex(2)
- execle(3)
- tailq(3)
- cabs(3)
- endaliasent(3)
- execvp(3)
- hasmntopt(3)
- if_freenameindex(3)
- signal(2)
- dn_comp(3)
- pthread_attr_getstack(3)
- ether_hostton(3)
- re_comp(3)
- cexp2l(3)
- getwd(3)
- llroundl(3)
- cos(3)
- pthread_mutex_consistent(3)
- isalpha_l(3)
- io_cancel(2)
- frexp(3)
- finitel(3)
- perf_event_open(2)
- pthread_exit(3)
- ioctl_console(2)
- timelocal(3)
- timersub(3)
- setresgid(2)
- semop(2)
- getgroups(2)
- envz_entry(3)
- xdr_u_long(3)
- seccomp(2)
- ftrylockfile(3)
- setuid(2)
- wcwidth(3)
- llround(3)
- cacoshf(3)
- pthread_attr_setschedpolicy(3)
- fgetpos(3)
- xdr_array(3)
- sprintf(3)
- wmemset(3)
- setcontext(3)
- copysignl(3)
- be64toh(3)
- matherr(3)
- hypotl(3)
- rawmemchr(3)
- fmodf(3)
- mount(2)
- mktime(3)
- stdarg(3)
- clnttcp_create(3)
- string(3)
- profil(3)
- clnt_perror(3)
- getpriority(2)
- regerror(3)
- clone2(2)
- getgid(2)
- pthread_spin_lock(3)
- iswblank(3)
- ftell(3)
- dup3(2)
- toascii(3)
- strncpy(3)
- mrand48_r(3)
- setstate(3)
- sigqueue(3)
- cpowf(3)
- setlogmask(3)
- sched_getcpu(3)
- htobe32(3)
- list(3)
- isdigit_l(3)
- chdir(2)
- fstat(2)
- pwritev2(2)
- get_thread_area(2)
- freelocale(3)
- acoshl(3)
- socketpair(2)
- scalbln(3)
- fpclassify(3)
- getpwnam(3)
- pthread_getcpuclockid(3)
- ioprio_get(2)
- strtok_r(3)
- exit_group(2)
- scalbnf(3)
- xdrrec_create(3)
- pthread_mutex_destroy(3)
- sqrt(3)
- dirname(3)
- exit(2)
- ulckpwdf(3)
- cargl(3)
- powerof2(3)
- simpleq(3)
- process_vm_writev(2)
- fdopendir(3)
- getpt(3)
- floorl(3)
- va_start(3)
- lcong48(3)
- strerror_l(3)
- xdrrec_eof(3)
- key_setsecret(3)
- lstat64(2)
- memfd_secret(2)
- sigreturn(2)
- casinhf(3)
- valloc(3)
- stat64(2)
- jn(3)
- sinl(3)
- pthread_testcancel(3)
- cfgetispeed(3)
- dup2(2)
- getnetent(3)
- pthread_setconcurrency(3)
- memccpy(3)
- rt_sigqueueinfo(2)
- ccosf(3)
- sincos(3)
- tcdrain(3)
- ccos(3)
- chmod(2)
- cacosf(3)
- lstat(2)
- pthread_spin_trylock(3)
- sigisemptyset(3)
- getrpcbyname(3)
- fpathconf(3)
- copysign(3)
- round(3)
- wmemchr(3)
- qfcvt_r(3)
- fattach(2)
- __fsetlocking(3)
- adjtime(3)
- makedev(3)
- des_crypt(3)
- iswspace(3)
- twalk(3)
- exec(3)
- link(2)
- fileno(3)
- endpwent(3)
- logb(3)
- wcscspn(3)
- console_ioctl(4)
- fgetpwent(3)
- setegid(2)
- clnt_destroy(3)
- getaddrinfo_a(3)
- svc_getargs(3)
- addmntent(3)
- globfree(3)
- islower(3)
- muntrace(3)
- clnt_pcreateerror(3)
- llrintl(3)
- clnt_control(3)
- fgetspent_r(3)
- strstr(3)
- putmsg(2)
- __fwritable(3)
- res_nsearch(3)
- fseeko(3)
- mq_timedreceive(3)
- log10(3)
- fexecve(3)
- gammaf(3)
- pthread_setschedparam(3)
- wcscpy(3)
- xdr_float(3)
- pthread_attr_setdetachstate(3)
- sem_wait(3)
- pow10l(3)
- re_exec(3)
- rand_r(3)
- putpmsg(2)
- getdelim(3)
- utimes(2)
- mq_close(3)
- setutent(3)
- creall(3)
- mq_send(3)
- telldir(3)
- powf(3)
- erfl(3)
- pthread_self(3)
- pselect6(2)
- unlocked_stdio(3)
- insw(2)
- cfsetspeed(3)
- argz_create(3)
- xdr_string(3)
- pthread_attr_getguardsize(3)
- finitef(3)
- setlocale(3)
- bcmp(3)
- fmtmsg(3)
- sendmsg(2)
- pthread_cleanup_push(3)
- inb_p(2)
- mmap64(3)
- getuid32(2)
- truncate(2)
- mlock2(2)
- fegetround(3)
- ugetrlimit(2)
- getprotobynumber_r(3)
- utmpxname(3)
- isinf(3)
- clearerr_unlocked(3)
- stime(2)
- nftw(3)
- duplocale(3)
- svcraw_create(3)
- svc_getcaller(3)
- ctanhl(3)
- cbrt(3)
- floorf(3)
- sethostid(3)
- sigemptyset(3)
- sigaltstack(2)
- mkfifo(3)
- lsearch(3)
- getservent_r(3)
- islessgreater(3)
- floor(3)
- argz_append(3)
- tzset(3)
- res_mkquery(3)
- fstatat(2)
- strchr(3)
- semtimedop(2)
- bindresvport(3)
- tcsetattr(3)
- warn(3)
- getservent(3)
- atanhl(3)
- tdelete(3)
- ynf(3)
- ether_ntoa_r(3)
- fesetenv(3)
- mq_timedsend(3)
- quotactl(2)
- init_module(2)
- rcmd(3)
- fenv(3)
- getutxid(3)
- pthread_mutexattr_getpshared(3)
- scalbnl(3)
- atan2l(3)
- argz_count(3)
- rpmatch(3)
- timerfd_gettime(2)
- ualarm(3)
- pthread_attr_init(3)
- vdprintf(3)
- pthread_cancel(3)
- fflush(3)
- setkey_r(3)
- mbstowcs(3)
- mremap(2)
- strcasestr(3)
- hcreate_r(3)
- siginterrupt(3)
- offsetof(3)
- atan(3)
- wctomb(3)
- getutent(3)
- significand(3)
- arm_fadvise64_64(2)
- dremf(3)
- wcswidth(3)
- syscall(2)
- rintf(3)
- bswap_64(3)
- pthread_attr_getschedparam(3)
- lroundf(3)
- timegm(3)
- posix_fadvise(2)
- getrlimit(2)
- svc_freeargs(3)
- xdr_enum(3)
- hcreate(3)
- ptrace(2)
- backtrace_symbols_fd(3)
- fetestexcept(3)
- ccosh(3)
- htole32(3)
- kexec_load(2)
- fallocate(2)
- timer_gettime(2)
- tgammaf(3)
- errno(3)
- sched_get_priority_max(2)
- xdr_getpos(3)
- vwprintf(3)
- ssetmask(2)
- ether_ntoa(3)
- waitpid(2)
- sched_getattr(2)
- inotify_init(2)
- fma(3)
- gnu_get_libc_version(3)
- svctcp_create(3)
- wcstombs(3)
- gethostname(2)
- strerror_r(3)
- sigismember(3)
- fgetws_unlocked(3)
- hash(3)
- circleq(3)
- getrpcbynumber_r(3)
- pthread_cond_timedwait(3)
- uname(2)
- fgetc_unlocked(3)
- mq_open(3)
- cosl(3)
- rewinddir(3)
- nextdown(3)
- longjmp(3)
- execv(3)
- iconv_open(3)
- xencrypt(3)
- ctermid(3)
- isgraph_l(3)
- move_pages(2)
- isunordered(3)
- msgsnd(2)
- rt_sigtimedwait(2)
- syncfs(2)
- mlockall(2)
- pthread_getschedparam(3)
- lsetxattr(2)
- getutid_r(3)
- log1pl(3)
- catanf(3)
- passwd2des(3)
- iconv_close(3)
- aligned_alloc(3)
- sched_setscheduler(2)
- gmtime(3)
- __free_hook(3)
- acoshf(3)
- mtrace(3)
- resolver(3)
- clog10f(3)
- sethostname(2)
- pthread_attr_setguardsize(3)
- tuxcall(2)
- atanh(3)
- ispunct_l(3)
- svcudp_bufcreate(3)
- ctanh(3)
- j1l(3)
- log10l(3)
- alloca(3)
- sigpending(2)
- nexttoward(3)
- isnormal(3)
- svc_getreq(3)
- putchar(3)
- getnetbyaddr(3)
- cpowl(3)
- get_kernel_syms(2)
- getutline_r(3)
- pthread_setaffinity_np(3)
- isnan(3)
- getprotoent(3)
- catclose(3)
- getsid(2)
- endrpcent(3)
- fts_close(3)
- gnu_dev_minor(3)
- ruserok_af(3)
- getutent_r(3)
- getegid(2)
- sgetmask(2)
- posix_memalign(3)
- atanf(3)
- unshare(2)
- lremovexattr(2)
- strncasecmp(3)
- endutent(3)
- updwtmpx(3)
- outsw(2)
- sched_getparam(2)
- setuid32(2)
- catgets(3)
- nextupl(3)
- openat(2)
- logout(3)
- free(3)
- setfsuid(2)
- getutline(3)
- svc_sendreply(3)
- fadvise64_64(2)
- cargf(3)
- __ppc_set_ppr_low(3)
- casinh(3)
- outb_p(2)
- fputwc(3)
- log10f(3)
- getnetgrent(3)
- fputws_unlocked(3)
- ffsl(3)
- endttyent(3)
- isgreater(3)
- sigmask(3)
- sgetspent_r(3)
- fmaxf(3)
- openlog(3)
- strncmp(3)
- closedir(3)
- rexec_af(3)
- exp2(3)
- mcheck(3)
- isalpha(3)
- pthread_mutex_init(3)
- catopen(3)
- clock_nanosleep(2)
- ioctl(2)
- remainder(3)
- olduname(2)
- getcpu(2)
- setns(2)
- asinhl(3)
- wcscasecmp(3)
- nearbyintl(3)
- atan2f(3)
- wctob(3)
- nextdownf(3)
- gmtime_r(3)
- fmal(3)
- setfsgid32(2)
- dlinfo(3)
- posix_spawnp(3)
- fgets_unlocked(3)
- major(3)
- fseek(3)
- xdr_callhdr(3)
- execve(2)
- exit(3)
- makecontext(3)
- sysctl(2)
- oldolduname(2)
- getgrouplist(3)
- pthread_getattr_np(3)
- ffs(3)
- sem_init(3)
- gcvt(3)
- fts_children(3)
- rt_sigreturn(2)
- mallinfo(3)
- insl(2)
- geteuid(2)
- signalfd(2)
- erfcl(3)
- sched_get_priority_min(2)
- sched_setaffinity(2)
- wcsrchr(3)
- xdr_reference(3)
- snprintf(3)
- delete_module(2)
- j0f(3)
- malloc_hook(3)
- casinf(3)
- y0f(3)
- endgrent(3)
- y1l(3)
- pthread_create(3)
- wcsncasecmp(3)
- pidfd_getfd(2)
- htobe64(3)
- _sysctl(2)
- lrand48_r(3)
- warnx(3)
- lgammaf_r(3)
- verrx(3)
- finit_module(2)
- gsignal(3)
- recvfrom(2)
- log2(3)
- fflush_unlocked(3)
- getaliasbyname_r(3)
- pthread_mutexattr_setrobust(3)
- getdirentries(3)
- getrpcbyname_r(3)
- ppoll(2)
- tmpfile(3)
- isupper_l(3)
- xdr_free(3)
- res_nquery(3)
- fts_open(3)
- shutdown(2)
- xdr_callmsg(3)
- coshl(3)
- ntp_gettimex(3)
- afs_syscall(2)
- be32toh(3)
- fchmodat(2)
- addseverity(3)
- pause(2)
- strcmp(3)
- mkostemps(3)
- wcsrtombs(3)
- scandir(3)
- __freadable(3)
- killpg(3)
- add_key(2)
- strcoll(3)
- migrate_pages(2)
- pthread_setattr_default_np(3)
- pthread_attr_setsigmask_np(3)
- sigabbrev_np(3)
- readdir(2)
- subpage_prot(2)
- strfromf(3)
- sysv_signal(3)
- gethostbyname2_r(3)
- outl_p(2)
- sync(2)
- pthread_attr_getinheritsched(3)
- socket(2)
- msgrcv(2)
- fgetws(3)
- pthread_cleanup_push_defer_np(3)
- getnetgrent_r(3)
- ynl(3)
- endservent(3)
- srand(3)
- endmntent(3)
- cbrtl(3)
- setitimer(2)
- pmap_rmtcall(3)
- svcerr_systemerr(3)
- fesetround(3)
- ilogbf(3)
- __fwriting(3)
- log1p(3)
- futimens(3)
- xdrrec_endofrecord(3)
- setreuid32(2)
- swab(3)
- pthread_spin_init(3)
- memchr(3)
- fminf(3)
- getipnodebyname(3)
- msgop(2)
- wait(2)
- ether_aton_r(3)
- open_wmemstream(3)
- xdr_bool(3)
- pthread_tryjoin_np(3)
- xdr_int(3)
- inet_net_ntop(3)
- fdimf(3)
- srand48(3)
- xdr_setpos(3)
- asinf(3)
- program_invocation_name(3)
- write(2)
- mkdtemp(3)
- pthread_cleanup_pop(3)
- ptsname_r(3)
- lgammal_r(3)
- pthread_attr_getstackaddr(3)
- authunix_create(3)
- getpmsg(2)
- ceill(3)
- cexp2f(3)
- kcmp(2)
- setup(2)
- err(3)
- sync_file_range2(2)
- getpid(2)
- wcsncat(3)
- envz_get(3)
- futimes(3)
- mincore(2)
- herror(3)
- ether_line(3)
- feholdexcept(3)
- fputc(3)
- keyctl(2)
- timer_delete(2)
- posix_spawn(3)
- faccessat2(2)
- setnetgrent(3)
- pwrite(2)
- aio_read(3)
- shmget(2)
- acosh(3)
- sigdelset(3)
- __ppc_get_timebase(3)
- __flbf(3)
- dladdr1(3)
- argz_create_sep(3)
- mblen(3)
- gethostent(3)
- pciconfig_iobase(2)
- recvmmsg(2)
- isprint_l(3)
- csqrtf(3)
- wcstoimax(3)
- hsearch_r(3)
- svcudp_create(3)
- setreuid(2)
- le16toh(3)
- name_to_handle_at(2)
- strftime_l(3)
- pthread_attr_setschedparam(3)
- eventfd(2)
- atanhf(3)
- pthread_setspecific(3)
- pthread_cond_init(3)
- acosl(3)
- llistxattr(2)
- fputwc_unlocked(3)
- scanf(3)
- getmntent_r(3)
- getchar(3)
- res_ninit(3)
- error_one_per_line(3)
- sigsetmask(3)
- putwchar(3)
- llroundf(3)
- rt_sigpending(2)
- send(2)
- wcsstr(3)
- log2l(3)
- fmod(3)
- va_copy(3)
- res_search(3)
- res_nsend(3)
- res_query(3)
- wait3(2)
- encrypt_r(3)
- system(3)
- close_range(2)
- ecvt_r(3)
- read(2)
- auth_destroy(3)
- realloc(3)
- pipe2(2)
- dn_expand(3)
- timerclear(3)
- get_avphys_pages(3)
- mbsnrtowcs(3)
- strtok(3)
- fwide(3)
- __ppc_get_timebase_freq(3)
- gai_suspend(3)
- stpcpy(3)
- lldiv(3)
- iswxdigit(3)
- posix_openpt(3)
- s390_pci_mmio_write(2)
- pthread_spin_destroy(3)
- callrpc(3)
- getifaddrs(3)
- aio_suspend(3)
- fread_unlocked(3)
- get_nprocs_conf(3)
- getuid(2)
- spu_run(2)
- termios(3)
- umask(2)
- csqrtl(3)
- register_printf_modifier(3)
- sem_trywait(3)
- tee(2)
- msync(2)
- mpool(3)
- setdomainname(2)
- fopencookie(3)
- nl_langinfo(3)
- sockatmark(3)
- getspent_r(3)
- casinhl(3)
- fdiml(3)
- ntohs(3)
- fgets(3)
- time(2)
- casinl(3)
- pthread_detach(3)
- seccomp_unotify(2)
apt-get install manpages-dev
Available languages:
en fr pl ja ruManual
GETRLIMIT
名 前書 式
説 明
prlimit()
返 り 値
エ ラ ー
バ ー ジ ョ ン
属 性
準 拠
注 意
C ラ イ ブ ラ リ と カ ー ネ ル ABI の 違 い
バ グ
32 ビ ッ ト プ ラ ッ ト フ ォ ー ム に お け る 「 大 き な 」 リ ソ ー ス 上 限 値 の 表 現
例
関 連 項 目
こ の 文 書 に つ い て
名 前
getrlimit, setrlimit, prlimit - 資 源 の 制 限 を 取 得 /設 定 す る
書 式
#include
<sys/time.h>
#include <sys/resource.h>
int
getrlimit(int
resource
, struct rlimit
*
rlim
);
int setrlimit(int
resource
, const struct
rlimit *
rlim
);
int
prlimit(pid_t
pid
, int
resource
,
const struct rlimit *
new_limit
,
struct rlimit *
old_limit
);
glibc 向 け の 機 能 検 査 マ ク ロ の 要 件 ( feature_test_macros (7) 参 照 ):
prlimit (): _GNU_SOURCE
説 明
getrlimit () と setrlimit () は 、 資 源 (resource) の 制 限 (limit) の 設 定 と 取 得 を 行 う 。 各 リ ソ ー ス に は 、 そ れ に 対 応 す る ソ フ ト リ ミ ッ ト と ハ ー ド リ ミ ッ ト が あ り 、 rlimit 構 造 体 で 定 義 さ れ る :
struct rlimit {
rlim_t rlim_cur; /* ソ フ ト リ
ミ ッ ト */
rlim_t rlim_max; /* ハ ー ド リ
ミ ッ ト
(rlim_cur よ り 小 さ く
な い ) */
};
ソ フ ト リ ミ ッ ト は 、 カ ー ネ ル が 対 応 す る リ ソ ー ス に 対 し て 課 す 制 限 値 で あ る 。 ハ ー ド リ ミ ッ ト は ソ フ ト リ ミ ッ ト の 上 限 と し て 働 く 。 特 権 を 持 た な い プ ロ セ ス は 、 ソ フ ト リ ミ ッ ト の 値 を 0 か ら ハ ー ド リ ミ ッ ト の 範 囲 に 設 定 す る こ と と 、 ハ ー ド リ ミ ッ ト を 下 げ る こ と の み が で き る (一 度 下 げ た ハ ー ド リ ミ ッ ト は 上 げ ら れ な い )。 特 権 プ ロ セ ス (Linux で は 初 期 ユ ー ザ ー 名 前 空 間 で CAP_SYS_RESOURCE ケ ー パ ビ リ テ ィ (capability) を 持 つ プ ロ セ ス ) は ソ フ ト リ ミ ッ ト と ハ ー ド リ ミ ッ ト を 自 由 に 変 更 で き る 。
値 RLIM_INFINITY は リ ソ ー ス に 制 限 が な い こ と を 表 す (こ の 値 は getrlimit () が 返 す 構 造 体 と setrlimit () に 渡 す 構 造 体 の 両 方 で 使 用 さ れ る )。
resource
引 数 は 次 の い
ず れ か 1 つ で あ
る 。
RLIMIT_AS
This is the maximum size of the process’s virtual memory (address space). The limit is specified in bytes, and is rounded down to the system page size. This limit affects calls to brk (2), mmap (2), and mremap (2), which fail with the error ENOMEM upon exceeding this limit. In addition, automatic stack expansion fails (and generates a SIGSEGV that kills the process if no alternate stack has been made available via sigaltstack (2)). Since the value is a long , on machines with a 32-bit long either this limit is at most 2 GiB, or this resource is unlimited.
RLIMIT_CORE
This is the maximum size of a core file (see core (5)) in bytes that the process may dump. When 0 no core dump files are created. When nonzero, larger dumps are truncated to this size.
RLIMIT_CPU
This is a limit, in seconds, on the amount of CPU time that the process can consume. When the process reaches the soft limit, it is sent a SIGXCPU signal. The default action for this signal is to terminate the process. However, the signal can be caught, and the handler can return control to the main program. If the process continues to consume CPU time, it will be sent SIGXCPU once per second until the hard limit is reached, at which time it is sent SIGKILL . (This latter point describes Linux behavior. Implementations vary in how they treat processes which continue to consume CPU time after reaching the soft limit. Portable applications that need to catch this signal should perform an orderly termination upon first receipt of SIGXCPU .)
RLIMIT_DATA
This is the maximum size of the process’s data segment (initialized data, uninitialized data, and heap). The limit is specified in bytes, and is rounded down to the system page size. This limit affects calls to brk (2), sbrk (2), and (since Linux 4.7) mmap (2), which fail with the error ENOMEM upon encountering the soft limit of this resource.
RLIMIT_FSIZE
こ れ は プ ロ セ ス が 作 成 で き る フ ァ イ ル サ イ ズ の 最 大 値 (バ イ ト 単 位 ) で あ る 。 こ の サ イ ズ を 超 え て フ ァ イ ル を 拡 張 す る と 、 SIGXFSZ シ グ ナ ル を 送 る 。 デ フ ォ ル ト で は 、 こ の シ グ ナ ル は プ ロ セ ス を 終 了 す る 。 プ ロ セ ス を キ ャ ッ チ す る こ と も で き る が 、 関 連 す る シ ス テ ム コ ー ル ( write (2), truncate (2) な ど ) は エ ラ ー EFBIG で 失 敗 す る 。
RLIMIT_LOCKS (Linux 2.4.0 か ら 2.4.24 ま で )
こ の プ ロ セ ス が 実 行 で き る flock (2) ロ ッ ク 数 と fcntl (2) リ ー ス 数 の 合 計 値 の 上 限 で あ る 。
RLIMIT_MEMLOCK
This is the maximum number of bytes of memory that may be locked into RAM. This limit is in effect rounded down to the nearest multiple of the system page size. This limit affects mlock (2), mlockall (2), and the mmap (2) MAP_LOCKED operation. Since Linux 2.6.9, it also affects the shmctl (2) SHM_LOCK operation, where it sets a maximum on the total bytes in shared memory segments (see shmget (2)) that may be locked by the real user ID of the calling process. The shmctl (2) SHM_LOCK locks are accounted for separately from the per-process memory locks established by mlock (2), mlockall (2), and mmap (2) MAP_LOCKED ; a process can lock bytes up to this limit in each of these two categories.
In Linux kernels before 2.6.9, this limit controlled the amount of memory that could be locked by a privileged process. Since Linux 2.6.9, no limits are placed on the amount of memory that a privileged process may lock, and this limit instead governs the amount of memory that an unprivileged process may lock.
RLIMIT_MSGQUEUE (Linux 2.6.8 以 降 )
This is a limit on the number of bytes that can be allocated for POSIX message queues for the real user ID of the calling process. This limit is enforced for mq_open (3). Each message queue that the user creates counts (until it is removed) against this limit according to the formula:
Since Linux 3.5:
bytes =
attr.mq_maxmsg * sizeof(struct msg_msg) +
min(attr.mq_maxmsg, MQ_PRIO_MAX) *
sizeof(struct posix_msg_tree_node)+
/* オ ー バ ー ヘ ッ
ド 分 */
attr.mq_maxmsg * attr.mq_msgsize;
/* メ ッ セ ー ジ デ
ー タ 分 */
Linux 3.4 and earlier:
bytes =
attr.mq_maxmsg * sizeof(struct msg_msg *) +
/* オ ー バ ー ヘ ッ
ド 分 */
attr.mq_maxmsg * attr.mq_msgsize;
/* メ ッ セ ー ジ デ
ー タ 分 */
こ こ で attr は mq_attr 構 造 体 で あ り 、 mq_open (3) の 第 4 引 数 と し て 指 定 さ れ る 。 ま た 、 構 造 体 msg_msg と posix_msg_tree_node は カ ー ネ ル 内 部 の 構 造 体 で あ る 。
上 記 の 式 で の 「 オ ー バ ー ヘ ッ ド 」 加 算 分 は 、 実 装 に お い て 必 要 と な る オ ー バ ー ヘ ッ ド を 考 慮 し た も の で あ る 。 ま た 、 こ れ に よ り 、 ユ ー ザ ー が 長 さ 0 の メ ッ セ ー ジ を 無 制 限 に 作 れ な い こ と が 保 証 さ れ る (こ の よ う な メ ッ セ ー ジ で あ っ て も 、 記 録 の た め の オ ー バ ー ヘ ッ ド で シ ス テ ム メ モ リ ー を 消 費 す る )。
RLIMIT_NICE (Linux 2.6.12 以 降 , 下 記 の 「 バ グ 」 の 節 も 参 照 )
This specifies a ceiling to which the process’s nice value can be raised using setpriority (2) or nice (2). The actual ceiling for the nice value is calculated as 20 - rlim_cur . The useful range for this limit is thus from 1 (corresponding to a nice value of 19) to 40 (corresponding to a nice value of -20). This unusual choice of range was necessary because negative numbers cannot be specified as resource limit values, since they typically have special meanings. For example, RLIM_INFINITY typically is the same as -1. For more detail on the nice value, see sched (7).
RLIMIT_NOFILE
こ の プ ロ セ ス が オ ー プ ン で き る フ ァ イ ル デ ィ ス ク リ プ タ ー 数 の 最 大 値 よ り 1 大 き い 値 を 指 定 す る 。 ( open (2), pipe (2), dup (2) な ど に よ り ) こ の 上 限 を 超 え よ う と し た 場 合 、 エ ラ ー EMFILE が 発 生 す る (歴 史 的 に 、 BSD で は こ の 上 限 は RLIMIT_OFILE と い う 名 前 と な っ て い る )。
Since Linux 4.5, this limit also defines the maximum number of file descriptors that an unprivileged process (one without the CAP_SYS_RESOURCE capability) may have "in flight" to other processes, by being passed across UNIX domain sockets. This limit applies to the sendmsg (2) system call. For further details, see unix (7).
RLIMIT_NPROC
This is a limit on the number of extant process (or, more precisely on Linux, threads) for the real user ID of the calling process. So long as the current number of processes belonging to this process’s real user ID is greater than or equal to this limit, fork (2) fails with the error EAGAIN .
The RLIMIT_NPROC limit is not enforced for processes that have either the CAP_SYS_ADMIN or the CAP_SYS_RESOURCE capability.
RLIMIT_RSS
プ ロ セ ス の resident set (RAM 上 に 存 在 す る 仮 想 ペ ー ジ の 数 ) の 上 限 で あ る (バ イ ト 単 位 )。 こ の 制 限 は 2.4.30 よ り 前 で し か 影 響 が な く 、 madvise (2) に MADV_WILLNEED を 指 定 し た 関 数 コ ー ル に し か 影 響 し な い 。
RLIMIT_RTPRIO (Linux 2.6.12 以 降 , バ グ の 節 も 参 照 )
sched_setscheduler (2) や sched_setparam (2) を 使 っ て 設 定 で き る 、 そ の プ ロ セ ス の リ ア ル タ イ ム 優 先 度 の 上 限 を 指 定 す る 。
For further details on real-time scheduling policies, see sched (7)
RLIMIT_RTTIME (Linux 2.6.25 以 降 )
リ ア ル タ イ ム ス ケ ジ ュ ー リ ン グ 方 針 で ス ケ ジ ュ ー リ ン グ さ れ る プ ロ セ ス が ブ ロ ッ キ ン グ 型 の シ ス テ ム コ ー ル を 呼 び 出 さ ず に 消 費 す る こ と の で き る CPU 時 間 の 合 計 に つ い て の 上 限 を (マ イ ク ロ 秒 単 位 で ) 指 定 す る 。 こ の 上 限 の 目 的 の た め 、 プ ロ セ ス が ブ ロ ッ キ ン グ 型 の シ ス テ ム コ ー ル を 呼 び 出 す 度 に 、 消 費 さ れ た CPU 時 間 の カ ウ ン ト は 0 に リ セ ッ ト さ れ る 。 プ ロ セ ス が CPU を 使 い 続 け よ う と し た が 他 の プ ロ セ ス に 置 き 換 え ら れ た (preempted) 場 合 や 、 そ の プ ロ セ ス の タ イ ム ス ラ イ ス が 満 了 し た 場 合 、 そ の プ ロ セ ス が sched_yield (2) を 呼 び 出 し た 場 合 は 、 CPU 時 間 の カ ウ ン ト は リ セ ッ ト さ れ な い 。
ソ フ ト リ ミ ッ ト に 達 す る と 、 そ の プ ロ セ ス に SIGXCPU シ グ ナ ル が 送 ら れ る 。 そ の プ ロ セ ス が こ の シ グ ナ ル を 捕 捉 す る か 無 視 し て 、 CPU 時 間 を 消 費 し 続 け た 場 合 に は 、 ハ ー ド リ ミ ッ ト に 達 す る ま で 1 秒 に 1 回 SIGXCPU が 生 成 さ れ 続 け る こ と に な る 。 ハ ー ド リ ミ ッ ト に 達 し た 時 点 で 、 そ の プ ロ セ ス に は SIGKILL シ グ ナ ル が 送 ら れ る 。
こ の 上 限 を 意 図 的 に 使 用 す る の は 、 暴 走 し た リ ア ル タ イ ム プ ロ セ ス を 停 止 し て 、 シ ス テ ム が 動 か な く な る の を 避 け る 場 合 で あ る 。
For further details on real-time scheduling policies, see sched (7)
RLIMIT_SIGPENDING (Linux 2.6.8 以 降 )
呼 び 出 し 元 プ ロ セ ス の 実 ユ ー ザ ー ID に 対 し て キ ュ ー に 入 れ ら れ る シ グ ナ ル の 数 の 制 限 を 指 定 す る 。 こ の 制 限 を チ ェ ッ ク す る た め 、 標 準 シ グ ナ ル と リ ア ル タ イ ム シ グ ナ ル の 両 方 が カ ウ ン ト さ れ る 。 し か し 、 こ の 制 限 は sigqueue (3) に 対 し て の み 適 用 さ れ 、 kill (2) 使 う こ と で 、 そ の プ ロ セ ス に 対 し て ま だ キ ュ ー に 入 れ ら れ て い な い シ グ ナ ル の イ ン ス タ ン ス を キ ュ ー に 入 れ る こ と が で き る 。
RLIMIT_STACK
プ ロ セ ス ス タ ッ ク の 最 大 サ イ ズ を バ イ ト 単 位 で 指 定 す る 。 こ の 上 限 に 達 す る と 、 SIGSEGV シ グ ナ ル が 生 成 さ れ る 。 こ の シ グ ナ ル を 扱 う た め に は 、 プ ロ セ ス は 代 り の シ グ ナ ル ス タ ッ ク ( sigaltstack (2)) を 使 用 し な け れ ば な ら な い 。
Linux 2.6.23 以 降 で は 、 こ の 制 限 は プ ロ セ ス の コ マ ン ド ラ イ ン 引 数 と 環 境 変 数 に 使 用 さ れ る 空 間 の 合 計 サ イ ズ の 上 限 の 決 定 に も 使 用 さ れ る 。 詳 細 に つ い て は execve (2) を 参 照 。
prlimit()
Linux 固 有 の prlimit () シ ス テ ム コ ー ル は 、 setrlimit () と getrlimit の 機 能 を 合 わ せ て 拡 張 し た も の で あ る 。 こ の シ ス テ ム コ ー ル を 使 っ て 、 任 意 の プ ロ セ ス の リ ソ ー ス 上 限 の 設 定 と 取 得 を 行 う こ と が で き る 。
resource 引 数 は setrlimit () や getrlimit () と 同 じ 意 味 で あ る 。
new_limit 引 数 が NULL 以 外 の 場 合 、 new_limit が 指 す rlimit 構 造 体 を 使 っ て resource の ソ フ ト リ ミ ッ ト と ハ ー ド リ ミ ッ ト の 新 し い 値 が 設 定 さ れ る 。 old_limit 引 数 が NULL 以 外 の 場 合 、 prlimit () の 呼 び 出 し が 成 功 す る と 、 resource の 直 前 の ソ フ ト リ ミ ッ ト と ハ ー ド リ ミ ッ ト が old_limit が 指 す rlimit 構 造 体 に 格 納 さ れ る 。
The pid argument specifies the ID of the process on which the call is to operate. If pid is 0, then the call applies to the calling process. To set or get the resources of a process other than itself, the caller must have the CAP_SYS_RESOURCE capability in the user namespace of the process whose resource limits are being changed, or the real, effective, and saved set user IDs of the target process must match the real user ID of the caller and the real, effective, and saved set group IDs of the target process must match the real group ID of the caller.
返 り 値
成 功 し た 場 合 、 こ れ ら の シ ス テ ム コ ー ル は 0 を 返 す 。 エ ラ ー の 場 合 は -1 が 返 さ れ 、 errno が 適 切 に 設 定 さ れ る 。
エ ラ ー
|
EFAULT |
場 所 を 指 す ポ イ ン タ ー 引 数 が ア ク セ ス 可 能 な ア ド レ ス 空 間 外 を 指 し て い る 。 |
||
|
EINVAL |
resource で 指 定 さ れ た 値 が 有 効 で な い 。 ま た は 、 setrlimit () や prlimit () で 、 rlim->rlim_cur が rlim->rlim_max よ り も 大 き か っ た 。 |
||
|
EPERM |
非 特 権 プ ロ セ ス が ハ ー ド リ ミ ッ ト を 増 や そ う と し た 。 こ の 操 作 に は CAP_SYS_RESOURCE ケ ー パ ビ リ テ ィ が 必 要 で あ る 。 |
||
|
EPERM |
呼 び 出 し 元 が ハ ー ド リ ミ ッ ト RLIMIT_NOFILE を /proc/sys/fs/nr_open ( proc (5) 参 照 ) で 定 義 さ れ る 最 大 値 よ り 大 き な 値 に 増 や そ う と し た 。 |
||
|
EPERM |
( prlimit ()) 呼 び 出 し 元 の プ ロ セ ス が pid で 指 定 さ れ た プ ロ セ ス の 上 限 を 設 定 す る 許 可 を 持 っ て い な か っ た 。 |
||
|
ESRCH |
pid で 指 定 さ れ た ID の プ ロ セ ス が 見 つ か ら な か っ た 。 |
バ ー ジ ョ ン
prlimit () シ ス テ ム コ ー ル は Linux 2.6.36 以 降 で 利 用 で き る 。 ラ イ ブ ラ リ の サ ポ ー ト は glibc 2.13 以 降 で 利 用 で き る 。
属 性
こ の 節 で 使 用 さ れ て い る 用 語 の 説 明 に つ い て は 、 attributes (7) を 参 照 。
準 拠
getrlimit (), setrlimit (): POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
prlimit (): Linux 固 有 。
RLIMIT_MEMLOCK と RLIMIT_NPROC は BSD か ら 派 生 し 、 POSIX.1 に は 指 定 さ れ て い な い 。 こ れ ら は BSD 系 と Linux に 存 在 す る が 、 他 の 実 装 は 少 な い 。 RLIMIT_RSS は BSD か ら 派 生 し 、 POSIX.1 に は 指 定 さ れ て い な い 。 そ れ に も 関 わ ら ず 多 く の 実 装 で 存 在 す る 。 RLIMIT_MSGQUEUE , RLIMIT_NICE , RLIMIT_RTPRIO , RLIMIT_RTTIME , RLIMIT_SIGPENDING は Linux 固 有 の も の で あ る 。
注 意
fork (2) で 作 成 さ れ た 作 成 さ れ た 子 プ ロ セ ス は 、 親 プ ロ セ ス の リ ソ ー ス 制 限 を 継 承 す る 。 execve (2) の 前 後 で リ ソ ー ス 制 限 は 保 存 さ れ る 。
Resource limits are per-process attributes that are shared by all of the threads in a process.
リ ソ ー ス の ソ フ ト リ ミ ッ ト を そ の プ ロ セ ス が 現 在 の リ ソ ー ス 使 用 量 よ り 小 さ い 値 に 設 定 す る こ と は で き る (但 し 、 そ の プ ロ セ ス は そ れ 以 降 そ の リ ソ ー ス の 使 用 量 を 増 や す こ と が で き な く な る )。
シ ェ ル の リ ソ ー ス 制 限 は 、 シ ェ ル の 組 み 込 み コ マ ン ド で あ る ulimit ( csh (1) で は limit ) を 使 っ て 設 定 す る こ と が で き る 。 こ の シ ェ ル の リ ソ ー ス 制 限 は 、 コ マ ン ド を 実 行 し て シ ェ ル が 生 成 す る プ ロ セ ス に 引 き 継 が れ る 。
Linux 2.6.24 以 降 で は 、 プ ロ セ ス の リ ソ ー ス 上 限 は /proc/[pid]/limits で 知 る こ と が で き る 。 proc (5) 参 照 。
古 い シ ス テ ム で は 、 setrlimit () と 同 様 の 目 的 を 持 つ 関 数 vlimit () が 提 供 さ れ て い た 。 後 方 互 換 性 の た め 、 glibc で も vlimit () を 提 供 し て い る 。 全 て の 新 し い ア プ リ ケ ー シ ョ ン で は 、 setrlimit () を 使 用 す べ き で あ る 。
C ラ イ ブ ラ リ と カ ー ネ ル ABI の 違 い
バ ー ジ ョ ン 2.13 以 降 で は 、 glibc の getrlimit () と setrlimit () の ラ ッ パ ー 関 数 は も は や 対 応 す る シ ス テ ム コ ー ル を 呼 び 出 さ ず 、 代 わ り に 「 バ グ 」 の 節 で 説 明 さ れ て い る 理 由 か ら prlimit () を 利 用 し て い る 。
The name of the glibc wrapper function is prlimit (); the underlying system call is prlimit64 ().
バ グ
以 前 の Linux カ ー ネ ル で は 、 プ ロ セ ス が ソ フ ト ま た は ハ ー ド RLIMIT_CPU リ ミ ッ ト に 達 し た 場 合 に 送 ら れ る SIGXCPU と SIGKILL シ グ ナ ル が 、 本 来 送 ら れ る べ き 時 点 の 1 (CPU) 秒 後 に 送 ら れ て し ま う 。 こ れ は カ ー ネ ル 2.6.8 で 修 正 さ れ た 。
2.6.17 よ り 前 の 2.6.x カ ー ネ ル で は 、 RLIMIT_CPU リ ミ ッ ト が 0 の 場 合 、 ( RLIM_INFINITY と 同 じ よ う に ) 「 制 限 な し 」 と 間 違 っ て 解 釈 さ れ て い た 。 Linux 2.6.17 以 降 で は 、 リ ミ ッ ト を 0 に 設 定 し た 場 合 に も 効 果 を 持 つ よ う に な っ て い る が 、 実 際 に は リ ミ ッ ト の 値 は 1 秒 と な る 。
カ ー ネ ル 2.6.12 に は 、 RLIMIT_RTPRIO が 動 作 し な い と い う バ グ が あ る 。 こ の 問 題 は カ ー ネ ル 2.6.13 で 修 正 さ れ て い る 。
カ ー ネ ル 2.6.12 で は 、 getpriority (2) と RLIMIT_NICE が 返 す 優 先 度 の 範 囲 が 一 つ ず れ て い た 。 こ の た め 、 nice 値 の 実 際 の 上 限 が 19 - rlim_cur に な っ て し ま う と い う 影 響 が あ っ た 。 こ れ は カ ー ネ ル 2.6.13 で 修 正 さ れ た 。
Linux 2.6.12 以 降 で は 、 プ ロ セ ス が そ の RLIMIT_CPU ソ フ ト リ ミ ッ ト に 達 し 、 SIGXCPU に 対 し て シ グ ナ ル ハ ン ド ラ ー が 設 定 さ れ て い る 場 合 、 シ グ ナ ル ハ ン ド ラ ー を 起 動 す る だ け で な く 、 カ ー ネ ル は 1 秒 間 ソ フ ト リ ミ ッ ト を 増 や す 。 そ の プ ロ セ ス が CPU 時 間 を 消 費 し 続 け て い る 限 り 、 ハ ー ド リ ミ ッ ト に 達 す る ま で 、 こ の 動 作 が 繰 り 返 さ れ る 。 ハ ー ド リ ミ ッ ト に 達 す る と 、 そ の 時 点 で プ ロ セ ス は kill さ れ る 。 他 の 実 装 で は 、 上 記 の よ う な RLIMIT_CPU ソ フ ト リ ミ ッ ト の 変 更 は 行 わ れ ず 、 お そ ら く Linux の 動 作 は 標 準 に 準 拠 し て い な い 。 移 植 性 が 必 要 な ア プ リ ケ ー シ ョ ン で は こ の Linux 固 有 の 動 作 を 前 提 に す る の は 避 け る べ き で あ る 。 Linux 固 有 の 上 限 RLIMIT_RTTIME で も 、 ソ フ ト リ ミ ッ ト に 達 し た 場 合 に 同 じ 動 作 と な る 。
2.4.22 よ り 前 の カ ー ネ ル で は 、 rlim->rlim_cur が rlim->rlim_max よ り 大 き か っ た 場 合 、 setrlimit () で の EINVAL エ ラ ー を 検 出 で き な い 。
Linux doesn’t return an error when an attempt to set RLIMIT_CPU has failed, for compatibility reasons.
32 ビ ッ ト プ ラ ッ ト フ ォ ー ム に お け る 「 大 き な 」 リ ソ ー ス 上 限 値 の 表 現
glibc の getrlimit () と setrlimit () ラ ッ パ ー 関 数 は 、 32 ビ ッ ト プ ラ ッ ト フ ォ ー ム で あ っ て も 64 ビ ッ ト の rlim_t デ ー タ 型 を 使 用 す る 。 し か し 、 getrlimit () と setrlimit () シ ス テ ム コ ー ル で 使 用 さ れ る rlim_t デ ー タ 型 は (32 ビ ッ ト の ) unsigned long で あ る 。 さ ら に 、 Linux で は 、 カ ー ネ ル は 32 ビ ッ ト プ ラ ッ ト フ ォ ー ム で は リ ソ ー ス 上 限 を unsigned long と し て 表 現 し て い る 。 し か し な が ら 、 32 ビ ッ ト デ ー タ 型 は 十 分 な 大 き さ で は な い 。 こ こ で 最 も 関 係 が あ る 上 限 値 は RLIMIT_FSIZE で あ る 。 こ の 上 限 は フ ァ イ ル サ イ ズ の 最 大 値 で あ り 、 実 用 性 の 面 か ら は 、 こ の 上 限 を フ ァ イ ル オ フ セ ッ ト を 表 現 す る の に 使 用 さ れ て い る 型 、 つ ま り 64 ビ ッ ト の off_t ( _FILE_OFFSET_BITS=64 で コ ン パ イ ル し た プ ロ グ ラ ム の 場 合 )、 と 同 じ 幅 を 持 つ 型 、 を 使 っ て 表 現 す べ き で あ る 。
カ ー ネ ル の こ の 制 限 に 対 す る 対 策 と し て 、 プ ロ グ ラ ム が リ ソ ー ス 上 限 を 32 ビ ッ ト の unsigned long で 表 現 で き る 値 よ り も 大 き な 値 に 設 定 し よ う と し た 際 に は 、 glibc の setrlimit () ラ ッ パ ー 関 数 は こ の 上 限 値 を 黙 っ て RLIM_INFINITY に 変 換 し て い た 。 言 い 換 え る と 、 指 定 さ れ た リ ソ ー ス 上 限 値 は 黙 っ て 無 視 さ れ て い た 。
バ ー ジ ョ ン 2.13 以 降 の glibc で は 、 getrlimit () と setrlimit () シ ス テ ム コ ー ル の 制 限 に 対 す る 回 避 手 段 と し て 、 setrlimit () と getrlimit () を prlimit () を 呼 び 出 す ラ ッ パ ー 関 数 と し て 実 装 し て い る 。
例
以 下 の プ ロ グ ラ ム に prlimit () の 使 用 例 を 示 す 。
#define
_GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/resource.h>
#define
errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \
} while (0)
int
main(int argc, char *argv[])
{
struct rlimit old, new;
struct rlimit *newp;
pid_t pid;
if (!(argc == 2
|| argc == 4)) {
fprintf(stderr, "Usage: %s <pid>
[<new-soft-limit> "
"<new-hard-limit>]\n", argv[0]);
exit(EXIT_FAILURE);
}
pid = atoi(argv[1]); /* PID of target process */
newp = NULL;
if (argc == 4) {
new.rlim_cur = atoi(argv[2]);
new.rlim_max = atoi(argv[3]);
newp = &new;
}
/* Set CPU time
limit of target process; retrieve and display
previous limit */
if (prlimit(pid,
RLIMIT_CPU, newp, &old) == -1)
errExit("prlimit-1");
printf("Previous limits: soft=%jd; hard=%jd\n",
(intmax_t) old.rlim_cur, (intmax_t) old.rlim_max);
/* Retrieve and display new CPU time limit */
if (prlimit(pid,
RLIMIT_CPU, NULL, &old) == -1)
errExit("prlimit-2");
printf("New limits: soft=%jd; hard=%jd\n",
(intmax_t) old.rlim_cur, (intmax_t) old.rlim_max);
exit(EXIT_SUCCESS);
}
関 連 項 目
prlimit (1), dup (2), fcntl (2), fork (2), getrusage (2), mlock (2), mmap (2), open (2), quotactl (2), sbrk (2), shmctl (2), malloc (3), sigqueue (3), ulimit (3), core (5), capabilities (7), cgroups (7), credentials (7), signal (7)
こ の 文 書 に つ い て
こ の man ペ ー ジ は Linux man-pages プ ロ ジ ェ ク ト の リ リ ー ス 5.10 の 一 部 で あ る 。 プ ロ ジ ェ ク ト の 説 明 と バ グ 報 告 に 関 す る 情 報 は https://www.kernel.org/doc/man-pages/ に 書 か れ て い る 。