source: trunk/libs/newlib/src/newlib/libc/sys/linux/resource.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 471 bytes
Line 
1/* libc/sys/linux/resource.c - Process resource functions */
2
3/* Copyright 2002, Red Hat Inc. */
4
5#include <sys/resource.h>
6#include <machine/syscall.h>
7
8_syscall2(int,getrusage,int,who,struct rusage *,r_usage)
9_syscall2(int,getrlimit,int,resource,struct rlimit *,rlp)
10
11weak_alias(__libc_getrlimit,__getrlimit)
12
13#if !defined(_ELIX_LEVEL) || _ELIX_LEVEL >= 2
14_syscall2(int,setrlimit,int,resource,const struct rlimit *,rlp)
15weak_alias(__libc_setrlimit,__setrlimit)
16#endif
17
Note: See TracBrowser for help on using the repository browser.