Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Add STANDARDS section. Note that both functions...



details:   https://anonhg.NetBSD.org/src/rev/3ebda78f7178
branches:  trunk
changeset: 754414:3ebda78f7178
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Apr 30 04:15:49 2010 +0000

description:
Add STANDARDS section. Note that both functions were marked as obsolescent
in POSIX (2008); "timer_gettime(2) and timer_settime(2) should be used".

diffstat:

 lib/libc/sys/getitimer.2 |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 012f1a50ad2a -r 3ebda78f7178 lib/libc/sys/getitimer.2
--- a/lib/libc/sys/getitimer.2  Fri Apr 30 04:06:20 2010 +0000
+++ b/lib/libc/sys/getitimer.2  Fri Apr 30 04:15:49 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getitimer.2,v 1.22 2004/08/14 11:04:29 wiz Exp $
+.\"    $NetBSD: getitimer.2,v 1.23 2010/04/30 04:15:49 jruoho Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)getitimer.2        8.3 (Berkeley) 5/16/95
 .\"
-.Dd August 14, 2004
+.Dd April 30, 2010
 .Dt GETITIMER 2
 .Os
 .Sh NAME
@@ -167,6 +167,21 @@
 .Xr poll 2 ,
 .Xr select 2 ,
 .Xr sigaction 2
+.Sh STANDARDS
+The
+.Fn getitimer
+and
+.Fn setitimer
+functions conform to
+.St -p1003.1-2001 .
+The later
+.St -p1003.1-2008
+revision however marked both functions as obsolescent,
+recommending the use of
+.Xr timer_gettime 2
+and
+.Xr timer_settime 2
+instead.
 .Sh HISTORY
 The
 .Fn getitimer



Home | Main Index | Thread Index | Old Index