summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2013-06-04 02:57:29 +0000
committerbrad <brad@openbsd.org>2013-06-04 02:57:29 +0000
commitbb41a875b4a74f61fd9b02f46f35acb039f0b60b (patch)
tree5836c80a89a240bee27bd6f1172a8744786ba27d
parentIntroduce the 'ldpctl show discovery' command (diff)
downloadwireguard-openbsd-bb41a875b4a74f61fd9b02f46f35acb039f0b60b.tar.xz
wireguard-openbsd-bb41a875b4a74f61fd9b02f46f35acb039f0b60b.zip
Update pathconf handling for -current..
- Remove _PC_PATH_MAX, _PC_PIPE_BUF and _PC_SYNC_IO. - Add _PC_TIMESTAMP_RESOLUTION. - Change _PC_FILESIZEBITS from using "sizeof(off_t) * CHAR_BIT" to returning 64. With input from and Ok guenther@
-rw-r--r--sys/tmpfs/tmpfs_vnops.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c
index 0f51a8058e7..4d5165f45e6 100644
--- a/sys/tmpfs/tmpfs_vnops.c
+++ b/sys/tmpfs/tmpfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vnops.c,v 1.2 2013/06/03 10:37:02 espie Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.3 2013/06/04 02:57:29 brad Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
@@ -1150,23 +1150,17 @@ tmpfs_pathconf(void *v)
case _PC_NAME_MAX:
*retval = TMPFS_MAXNAMLEN;
break;
- case _PC_PATH_MAX:
- *retval = PATH_MAX;
- break;
- case _PC_PIPE_BUF:
- *retval = PIPE_BUF;
- break;
case _PC_CHOWN_RESTRICTED:
*retval = 1;
break;
case _PC_NO_TRUNC:
*retval = 1;
break;
- case _PC_SYNC_IO:
- *retval = 1;
- break;
case _PC_FILESIZEBITS:
- *retval = sizeof(off_t) * CHAR_BIT;
+ *retval = 64;
+ break;
+ case _PC_TIMESTAMP_RESOLUTION:
+ *retval = 1;
break;
default:
error = EINVAL;