diff options
author | wollman <wollman@FreeBSD.org> | 2001-06-18 20:24:54 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2001-06-18 20:24:54 +0000 |
commit | 204b9a8a22df17a404244eec0f26fdffc366afa6 (patch) | |
tree | 8a3a4e95b557ac68b83a0b75cedcd574f6a3f82c /lib/libc | |
parent | e55cc77a7fb5bb22f0913e7cbe6f06d0e309db68 (diff) | |
download | FreeBSD-src-204b9a8a22df17a404244eec0f26fdffc366afa6.zip FreeBSD-src-204b9a8a22df17a404244eec0f26fdffc366afa6.tar.gz |
After one too many PRs on the subject, bite the bullet and define IOV_MAX
and its associated constants. Implement _SC_IOV_MAX in the usual way.
Be a bit sloppy about the namespace question; this should get cleared up
in time for 5.0.
MFC after: 1 month
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/sysconf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index 2298bb1..5be1f3b 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -38,6 +38,11 @@ static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; #endif /* LIBC_SCCS and not lint */ +#if defined(LIBC_RCS) && !defined(lint) +static const char rcsid[] = + "$FreeBSD$"; +#endif /* LIBC_RCS and not lint */ + #include <sys/_posix.h> #include <sys/param.h> #include <sys/time.h> @@ -285,6 +290,13 @@ sysconf(name) goto yesno; #endif /* _P1003_1B_VISIBLE */ +#ifdef _SC_IOV_MAX + case _SC_IOV_MAX: + mib[0] = CTL_KERN; + mib[1] = KERN_IOV_MAX; + break; +#endif + yesno: if (sysctl(mib, 2, &value, &len, NULL, 0) == -1) return (-1); if (value == 0) |