Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Deprecated in POSIX (rev. 2008).
details: https://anonhg.NetBSD.org/src/rev/d54a6df7b934
branches: trunk
changeset: 754419:d54a6df7b934
user: jruoho <jruoho%NetBSD.org@localhost>
date: Fri Apr 30 05:09:23 2010 +0000
description:
Deprecated in POSIX (rev. 2008).
diffstat:
lib/libc/gen/ulimit.3 | 29 ++++++++++++++++++-----------
1 files changed, 18 insertions(+), 11 deletions(-)
diffs (54 lines):
diff -r 8b13918983f9 -r d54a6df7b934 lib/libc/gen/ulimit.3
--- a/lib/libc/gen/ulimit.3 Fri Apr 30 04:55:10 2010 +0000
+++ b/lib/libc/gen/ulimit.3 Fri Apr 30 05:09:23 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ulimit.3,v 1.8 2008/04/30 13:10:50 martin Exp $
+.\" $NetBSD: ulimit.3,v 1.9 2010/04/30 05:09:23 jruoho Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd September 13, 1999
+.Dd April 30, 2010
.Dt ULIMIT 3
.Os
.Sh NAME
@@ -68,14 +68,6 @@
.Fn ulimit
function will not change the setting of
.Va errno .
-.Pp
-The
-.Fn ulimit
-function is an obsolete interface; applications are encouraged to use
-.Xr getrlimit 2
-and
-.Xr setrlimit 2
-instead.
.Sh RETURN VALUES
If successful, the
.Fn ulimit
@@ -109,4 +101,19 @@
The
.Fn ulimit
function conforms to
-.St -xsh5 .
+.St -xsh5
+and
+.St -p1003.1-2001 .
+It was marked as obsolete in the
+.St -p1003.1-2008
+revision, which recommended the use of
+.Xr getrlimit 2
+and
+.Xr setrlimit 2
+instead, noting that because
+.Fn ulimit
+uses the type
+.Vt long
+rather than
+.Vt rlim_t ,
+it may not be sufficient for file sizes on many current systems.
Home |
Main Index |
Thread Index |
Old Index