summaryrefslogtreecommitdiffstats
path: root/sys/isofs/udf
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/isofs/udf
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/isofs/udf')
-rw-r--r--sys/isofs/udf/udf_vnops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c
index 4f77dd05644..46fdd29f10f 100644
--- a/sys/isofs/udf/udf_vnops.c
+++ b/sys/isofs/udf/udf_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vnops.c,v 1.45 2012/06/20 17:30:22 matthew Exp $ */
+/* $OpenBSD: udf_vnops.c,v 1.46 2013/03/28 02:08:39 guenther Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -401,9 +401,6 @@ udf_pathconf(struct vop_pathconf_args *a)
case _PC_NAME_MAX:
*ap->a_retval = NAME_MAX;
break;
- case _PC_PATH_MAX:
- *ap->a_retval = PATH_MAX;
- break;
case _PC_NO_TRUNC:
*ap->a_retval = 1;
break;