summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-03-28 02:08:39 +0000
committerguenther <guenther@openbsd.org>2013-03-28 02:08:39 +0000
commit5540ae6649b2a30ca9b1de8b06ace6a2dee3721c (patch)
tree035b08b978302576ecd3979dd1cda6facc54eaae /sys/miscfs/procfs
parentUnfortunately the satosin, sintosa, ifatoia, satosin6, sin6tosa, (diff)
downloadwireguard-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/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 45939b1b234..eb20e525507 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vnops.c,v 1.55 2012/06/20 17:30:22 matthew Exp $ */
+/* $OpenBSD: procfs_vnops.c,v 1.56 2013/03/28 02:08:39 guenther Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */
/*
@@ -320,21 +320,9 @@ procfs_pathconf(void *v)
case _PC_LINK_MAX:
*ap->a_retval = LINK_MAX;
break;
- case _PC_MAX_CANON:
- *ap->a_retval = MAX_CANON;
- break;
- 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;
- case _PC_VDISABLE:
- *ap->a_retval = _POSIX_VDISABLE;
- break;
default:
error = EINVAL;
break;