diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 2001-06-18 20:24:54 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 2001-06-18 20:24:54 +0000 |
| commit | 37336173d35a97285def1fbf91f77b7db95a2f1a (patch) | |
| tree | 8a3a4e95b557ac68b83a0b75cedcd574f6a3f82c /lib/libc | |
| parent | 0f7779911503c0460a2a20cb49909c5120e7e68a (diff) | |
Notes
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 2298bb1907a6..5be1f3bf59fd 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) |
