diff options
author | 2013-03-28 02:08:39 +0000 | |
---|---|---|
committer | 2013-03-28 02:08:39 +0000 | |
commit | 5540ae6649b2a30ca9b1de8b06ace6a2dee3721c (patch) | |
tree | 035b08b978302576ecd3979dd1cda6facc54eaae /sys/kern/spec_vnops.c | |
parent | Unfortunately the satosin, sintosa, ifatoia, satosin6, sin6tosa, (diff) | |
download | wireguard-openbsd-5540ae6649b2a30ca9b1de8b06ace6a2dee3721c.tar.xz wireguard-openbsd-5540ae6649b2a30ca9b1de8b06ace6a2dee3721c.zip |
Handle the pathconf _PC_PATH_MAX, _PC_PIPE_BUF, _PC_ASYNC_IO,
_PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're
fs-independent for us. Since we don't support latter three on any
fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO
symbols in <unistd.h> (via sys/unistd.h) with value -1.
Also, zap pointless tty-only values from procfs(!).
ok beck@, deraadt@
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r-- | sys/kern/spec_vnops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index bc2d60c3230..9c54d61ee7d 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.69 2012/06/20 17:30:22 matthew Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.70 2013/03/28 02:08:39 guenther Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -617,9 +617,6 @@ spec_pathconf(void *v) case _PC_MAX_INPUT: *ap->a_retval = MAX_INPUT; break; - case _PC_PIPE_BUF: - *ap->a_retval = PIPE_BUF; - break; case _PC_CHOWN_RESTRICTED: *ap->a_retval = 1; break; |