mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
c119e0ab7a
* libc/include/sys/config.h[__i386__][__linux__]: Define _LARGE64FILE_SOURCE to 1. * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases. * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition. * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead of <linux/resource.h>. * libc/sys/linux/getrlimit64.c: New file. * libc/sys/linux/setrlimit64.c: Ditto.
14 lines
416 B
C
14 lines
416 B
C
/* 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)
|
|
_syscall2(int,setrlimit,int,resource,const struct rlimit *,rlp)
|
|
|
|
weak_alias(__libc_getrlimit,__getrlimit)
|
|
weak_alias(__libc_setrlimit,__setrlimit)
|