Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resource.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54a049da905d3757917f1c43a99fd89c27351418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* libc/sys/linux/resource.c - Process resource functions */

/* Copyright 2002, Red Hat Inc. */

#include <sys/resource.h>
#include <machine/syscall.h>

_syscall2(int,getrusage,int,who,struct rusage *,r_usage)
_syscall2(int,getrlimit,int,resource,struct rlimit *,rlp)

weak_alias(__libc_getrlimit,__getrlimit)

#if !defined(_ELIX_LEVEL) || _ELIX_LEVEL >= 2
_syscall2(int,setrlimit,int,resource,const struct rlimit *,rlp)
weak_alias(__libc_setrlimit,__setrlimit)
#endif