diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-06-01 01:01:58 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-06-01 01:01:58 +0000 |
commit | 3cd3cae6cc1859087828cc8550e75b45ef49541b (patch) | |
tree | eff19513ab92c5f732e00a702ef1f5055c395937 /lib/libc | |
parent | 05785c1e84b7d2ed53496a38aa36b8d45f14c18e (diff) |
Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),
and valloc() are not in the current version, while posix_memalign() mkstemp(),
and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'.
ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/mktemp.3 | 12 | ||||
-rw-r--r-- | lib/libc/stdlib/ecvt.3 | 9 | ||||
-rw-r--r-- | lib/libc/stdlib/random.3 | 6 | ||||
-rw-r--r-- | lib/libc/stdlib/random.c | 4 |
4 files changed, 21 insertions, 10 deletions
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3 index b4a54a04575..6712c657367 100644 --- a/lib/libc/stdio/mktemp.3 +++ b/lib/libc/stdio/mktemp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mktemp.3,v 1.48 2011/01/10 22:37:45 jmc Exp $ +.\" $OpenBSD: mktemp.3,v 1.49 2012/06/01 01:01:57 guenther Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: January 10 2011 $ +.Dd $Mdocdate: June 1 2012 $ .Dt MKTEMP 3 .Os .Sh NAME @@ -270,6 +270,14 @@ The ability to specify more than six Xs and setting in case of errors are extensions to that standard. .Pp The +.Fn mktemp +function conforms to +.St -p1003.1-2001 ; +as of +.St -p1003.1-2008 +it is no longer a part of the standard. +.Pp +The .Fn mkstemps function is non-standard and should not be used if portability is required. .Sh HISTORY diff --git a/lib/libc/stdlib/ecvt.3 b/lib/libc/stdlib/ecvt.3 index 2f107e11fd2..0191a3420ec 100644 --- a/lib/libc/stdlib/ecvt.3 +++ b/lib/libc/stdlib/ecvt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ecvt.3,v 1.9 2010/04/01 17:06:55 jmc Exp $ +.\" $OpenBSD: ecvt.3,v 1.10 2012/06/01 01:01:57 guenther 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: April 1 2010 $ +.Dd $Mdocdate: June 1 2012 $ .Dt ECVT 3 .Os .Sh NAME @@ -148,7 +148,10 @@ The and .Fn gcvt functions conform to -.St -p1003.1-2001 . +.St -p1003.1-2001 ; +as of +.St -p1003.1-2008 +they are no longer a part of the standard. .Sh CAVEATS The .Fn ecvt diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index ed05df162b6..84756bb3e35 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -25,9 +25,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: random.3,v 1.19 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: random.3,v 1.20 2012/06/01 01:01:57 guenther Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 1 2012 $ .Dt RANDOM 3 .Os .Sh NAME @@ -48,7 +48,7 @@ .Ft char * .Fn initstate "unsigned int seed" "char *state" "size_t n" .Ft char * -.Fn setstate "const char *state" +.Fn setstate "char *state" .Sh DESCRIPTION The .Fn random diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c index 5a9a7c33136..9c5b9d0f3f3 100644 --- a/lib/libc/stdlib/random.c +++ b/lib/libc/stdlib/random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: random.c,v 1.16 2012/03/21 12:36:49 millert Exp $ */ +/* $OpenBSD: random.c,v 1.17 2012/06/01 01:01:57 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. @@ -326,7 +326,7 @@ initstate(u_int seed, char *arg_state, size_t n) * Returns a pointer to the old state information. */ char * -setstate(const char *arg_state) +setstate(char *arg_state) { int32_t *new_state = (int32_t *)arg_state; int32_t type = new_state[0] % MAX_TYPES; |