diff options
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fclose.3 | 12 | ||||
-rw-r--r-- | lib/libc/stdio/mktemp.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/perror.c | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/stdio/fclose.3 b/lib/libc/stdio/fclose.3 index 81f260fc3498..61822e5d7604 100644 --- a/lib/libc/stdio/fclose.3 +++ b/lib/libc/stdio/fclose.3 @@ -63,7 +63,7 @@ is returned and the global variable .Va errno is set to indicate the error. In either case no further access to the stream is possible. -.Sh ERRORS +.Pp The .Fn fclose function @@ -75,12 +75,10 @@ or .Xr fflush 3 . .Sh NOTES .Fn fclose -does not handle NULL arguments; they will result in a segmentation -violation. -This is intentional - it makes it easier to make sure programs written -under FreeBSD are bug free. -This behaviour is an implementation detail, and programs should not -rely upon it. +does not handle NULL arguments; they will result in a segment +violation. This is intentional - it makes it easier to make sure +programs written under FreeBSD are bug free. This behaviour is an +implementation detail, and programs should not rely upon it. .Sh SEE ALSO .Xr close 2 , .Xr fflush 3 , diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index c2da533af8a0..ca3fa5bdac3d 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: mktemp.c,v 1.11 1998/10/20 12:36:36 peter Exp $"; + "$Id: mktemp.c,v 1.9 1998/03/03 14:38:36 bde Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index bb618247e96f..91a7dee8b262 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -50,7 +50,7 @@ perror(s) struct iovec iov[4]; v = iov; - if (s != NULL && *s != '\0') { + if (s != NULL) { v->iov_base = (char *)s; v->iov_len = strlen(s); v++; |