aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-03-05 22:48:23 +0000
committerRoland McGrath <roland@gnu.org>2006-03-05 22:48:23 +0000
commita26c855c73bf2329496f9b74535045c22c92a12d (patch)
tree2d86678d73a17f4c4d06fb0116a3d856c65eadd7
parentf96c3e9f43bf1301425e36d1f67a5e1d5fbbb8db (diff)
downloadglibc-a26c855c73bf2329496f9b74535045c22c92a12d.tar
glibc-a26c855c73bf2329496f9b74535045c22c92a12d.tar.gz
glibc-a26c855c73bf2329496f9b74535045c22c92a12d.tar.bz2
glibc-a26c855c73bf2329496f9b74535045c22c92a12d.zip
* bits/resource.h (RLIMIT_SBSIZE, RLIMIT_AS, RLIMIT_VMEM): Define.
-rw-r--r--ChangeLog2
-rw-r--r--bits/resource.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c3a4d0aa3e..fd41a9f00c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-03-05 Roland McGrath <roland@frob.com>
+ * bits/resource.h (RLIMIT_SBSIZE, RLIMIT_AS, RLIMIT_VMEM): Define.
+
* sysdeps/mach/hurd/fdopendir.c (__fdopendir): Use O_DIRECTORY
to force directory check.
* sysdeps/mach/hurd/opendir.c (__opendir): Likewise.
diff --git a/bits/resource.h b/bits/resource.h
index 05b28dfccd..8057f5cc65 100644
--- a/bits/resource.h
+++ b/bits/resource.h
@@ -1,5 +1,5 @@
/* Bit values & structures for resource limits. 4.4 BSD/generic GNU version.
- Copyright (C) 1994, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1994,1996,1997,1998,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -63,6 +63,14 @@ enum __rlimit_resource
RLIMIT_NOFILE = RLIMIT_OFILE, /* Another name for the same thing. */
#define RLIMIT_OFILE RLIMIT_OFILE
#define RLIMIT_NOFILE RLIMIT_NOFILE
+ /* Maximum size of all socket buffers. */
+ RLIMIT_SBSIZE,
+#define RLIMIT_SBSIZE RLIMIT_SBSIZE
+ /* Maximum size in bytes of the process address space. */
+ RLIMIT_AS,
+ RLIMIT_VMEM = RLIMIT_AS, /* Another name for the same thing. */
+#define RLIMIT_AS RLIMIT_AS
+#define RLIMIT_VMEM RLIMIT_AS
RLIMIT_NLIMITS, /* Number of limit flavors. */
RLIM_NLIMITS = RLIMIT_NLIMITS /* Traditional name for same. */