diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-01-17 10:16:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-01-17 10:16:42 +0000 |
commit | 40255b64d4c61e9680ef1c73f77183e649e92d6e (patch) | |
tree | 9a1d8cc43f89cbba0171c94e02b11ba6d557c5fe /winsup/cygwin/resource.cc | |
parent | 165cb24581c67d82492b88693f4ed7dd46d6d5ec (diff) | |
download | newlib-40255b64d4c61e9680ef1c73f77183e649e92d6e.zip newlib-40255b64d4c61e9680ef1c73f77183e649e92d6e.tar.gz newlib-40255b64d4c61e9680ef1c73f77183e649e92d6e.tar.bz2 |
* fhandler_proc.cc: Reorganize global proc content data into a new
struct proc_tab_t. Accommodate throughout.
(format_proc_version): New function.
(format_proc_loadavg): New function.
(format_proc_self): New function.
* resource.cc (getrlimit): Return correct rlim_max value for
RLIMIT_NOFILE.
Diffstat (limited to 'winsup/cygwin/resource.cc')
-rw-r--r-- | winsup/cygwin/resource.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/resource.cc b/winsup/cygwin/resource.cc index 6258750..ee17ac8 100644 --- a/winsup/cygwin/resource.cc +++ b/winsup/cygwin/resource.cc @@ -1,6 +1,6 @@ /* resource.cc: getrusage () and friends. - Copyright 1996, 1997, 1998, 2000, 2001, 2002 Red Hat, Inc. + Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2009 Red Hat, Inc. Written by Steve Chamberlain (sac@cygnus.com), Doug Evans (dje@cygnus.com), Geoffrey Noer (noer@cygnus.com) of Cygnus Support. @@ -17,6 +17,10 @@ details. */ #include "pinfo.h" #include "psapi.h" #include "cygtls.h" +#include "path.h" +#include "fhandler.h" +#include "pinfo.h" +#include "dtable.h" /* add timeval values */ static void @@ -139,6 +143,7 @@ getrlimit (int resource, struct rlimit *rlp) rlp->rlim_cur = getdtablesize (); if (rlp->rlim_cur < OPEN_MAX) rlp->rlim_cur = OPEN_MAX; + rlp->rlim_max = 100 * NOFILE_INCR; break; case RLIMIT_CORE: rlp->rlim_cur = rlim_core; |