diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/dirname.3 | 26 | ||||
-rw-r--r-- | lib/libc/stdlib/a64l.3 | 20 | ||||
-rw-r--r-- | lib/libc/stdlib/ecvt.3 | 28 | ||||
-rw-r--r-- | lib/libc/sys/chroot.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/gettimeofday.2 | 16 |
5 files changed, 49 insertions, 49 deletions
diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3 index d26593f24d1..214943c45a9 100644 --- a/lib/libc/gen/dirname.3 +++ b/lib/libc/gen/dirname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dirname.3,v 1.17 2007/05/31 19:19:28 jmc Exp $ +.\" $OpenBSD: dirname.3,v 1.18 2010/04/01 17:06:55 jmc Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 1 2010 $ .Dt DIRNAME 3 .Os .Sh NAME @@ -63,17 +63,6 @@ The following error codes may be set in The path component to be returned was larger than .Dv MAXPATHLEN . .El -.Sh WARNINGS -.Fn dirname -returns a pointer to internal static storage space that will be overwritten -by subsequent calls (each function has its own separate storage). -.Pp -Other vendor implementations of -.Fn dirname -may modify the contents of the string passed to -.Fn dirname ; -this should be taken into account when writing code which calls this function -if portability is desired. .Sh SEE ALSO .Xr basename 1 , .Xr dirname 1 , @@ -90,3 +79,14 @@ function first appeared in .Ox 2.2 . .Sh AUTHORS .An Todd C. Miller +.Sh CAVEATS +.Fn dirname +returns a pointer to internal static storage space that will be overwritten +by subsequent calls (each function has its own separate storage). +.Pp +Other vendor implementations of +.Fn dirname +may modify the contents of the string passed to +.Fn dirname ; +this should be taken into account when writing code which calls this function +if portability is desired. diff --git a/lib/libc/stdlib/a64l.3 b/lib/libc/stdlib/a64l.3 index 6eec5ce3b3d..da0aae33c90 100644 --- a/lib/libc/stdlib/a64l.3 +++ b/lib/libc/stdlib/a64l.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: a64l.3,v 1.10 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: a64l.3,v 1.11 2010/04/01 17:06:55 jmc Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 1 2010 $ .Dt A64L 3 .Os .Sh NAME @@ -108,7 +108,14 @@ returns a null pointer and sets the global variable .Va errno to .Er EINVAL . -.Sh WARNINGS +.Sh STANDARDS +The +.Fn a64l +and +.Fn l64a +functions conform to +.St -xpg4.2 . +.Sh CAVEATS The value returned by .Fn l64a is a pointer into a static buffer, the contents of which @@ -124,10 +131,3 @@ should be used to call .Pp If a long integer is larger than 32 bits, only the low-order 32 bits are used. -.Sh STANDARDS -The -.Fn a64l -and -.Fn l64a -functions conform to -.St -xpg4.2 . diff --git a/lib/libc/stdlib/ecvt.3 b/lib/libc/stdlib/ecvt.3 index 0717a2c02a1..2f107e11fd2 100644 --- a/lib/libc/stdlib/ecvt.3 +++ b/lib/libc/stdlib/ecvt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ecvt.3,v 1.8 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: ecvt.3,v 1.9 2010/04/01 17:06:55 jmc Exp $ .\" .\" Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -18,7 +18,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 1 2010 $ .Dt ECVT 3 .Os .Sh NAME @@ -138,7 +138,18 @@ and .Fn gcvt functions return a NUL-terminated string representation of .Fa value . -.Sh WARNINGS +.Sh SEE ALSO +.Xr printf 3 , +.Xr strtod 3 +.Sh STANDARDS +The +.Fn ecvt , +.Fn fcvt +and +.Fn gcvt +functions conform to +.St -p1003.1-2001 . +.Sh CAVEATS The .Fn ecvt and @@ -152,14 +163,3 @@ precision of a double and may not be the same on all architectures. The .Xr snprintf 3 function is preferred over these functions for new code. -.Sh SEE ALSO -.Xr printf 3 , -.Xr strtod 3 -.Sh STANDARDS -The -.Fn ecvt , -.Fn fcvt -and -.Fn gcvt -functions conform to -.St -p1003.1-2001 . diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2 index f6e13682b4f..e5177ae0284 100644 --- a/lib/libc/sys/chroot.2 +++ b/lib/libc/sys/chroot.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chroot.2,v 1.15 2010/01/11 22:17:36 deraadt Exp $ +.\" $OpenBSD: chroot.2,v 1.16 2010/04/01 17:06:55 jmc Exp $ .\" $NetBSD: chroot.2,v 1.7 1995/02/27 12:32:12 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: January 11 2010 $ +.Dd $Mdocdate: April 1 2010 $ .Dt CHROOT 2 .Os .Sh NAME @@ -113,10 +113,10 @@ The caller is not the superuser. .El .Sh SEE ALSO .Xr chdir 2 -.Sh WARNINGS -There are ways for a root process to escape from the chroot jail. .Sh HISTORY The .Fn chroot function call appeared in .Bx 4.2 . +.Sh CAVEATS +There are ways for a root process to escape from the chroot jail. diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index d248adf8cb5..bb9d00213d1 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gettimeofday.2,v 1.18 2010/04/01 11:28:49 deraadt Exp $ +.\" $OpenBSD: gettimeofday.2,v 1.19 2010/04/01 17:06:55 jmc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -124,7 +124,12 @@ A user other than the superuser attempted to set the time. .Xr getitimer 2 , .Xr ctime 3 , .Xr timed 8 -.Sh WARNINGS +.Sh HISTORY +The +.Fn gettimeofday +function call appeared in +.Bx 4.2 . +.Sh CAVEATS Setting the time with .Fn settimeofday is dangerous; if possible use @@ -132,7 +137,7 @@ is dangerous; if possible use instead. Many daemon programming techniques utilize time-delta techniques using the results from -.Xr gettimeofday 2 +.Fn gettimeofday instead of from .Xr clock_gettime 2 on the @@ -140,8 +145,3 @@ on the clock. Time jumps can cause these programs to malfunction in unexpected ways. If the time must be set, consider rebooting the machine for safety. -.Sh HISTORY -The -.Fn gettimeofday -function call appeared in -.Bx 4.2 . |