summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-06-04 02:57:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-06-04 02:57:30 +0000
commitd3069a814ed9e5c5a0f00b7f3cde17e658b59098 (patch)
treef1f1fe8f35445e8c270ad293b72040f01e0fa2f2 /sys
parent4428f13424d0aef04e353adc4b3a39e0e415476c (diff)
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@
Diffstat (limited to 'sys')
-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;