Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys When using PATH_MAX in the example, make sure w...



details:   https://anonhg.NetBSD.org/src/rev/ca087c45ac94
branches:  trunk
changeset: 566514:ca087c45ac94
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue May 11 17:39:36 2004 +0000

description:
When using PATH_MAX in the example, make sure we include <limits.h>!

diffstat:

 lib/libc/sys/readlink.2 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c70d712fc717 -r ca087c45ac94 lib/libc/sys/readlink.2
--- a/lib/libc/sys/readlink.2   Tue May 11 17:38:18 2004 +0000
+++ b/lib/libc/sys/readlink.2   Tue May 11 17:39:36 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: readlink.2,v 1.22 2004/05/11 17:38:18 kleink Exp $
+.\"    $NetBSD: readlink.2,v 1.23 2004/05/11 17:39:36 kleink Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -91,6 +91,7 @@
 .Pa /symbolic/link
 and stores them as null-terminated string:
 .Bd -literal -offset indent
+#include <limits.h>
 #include <unistd.h>
 
 char buf[PATH_MAX];



Home | Main Index | Thread Index | Old Index