summaryrefslogtreecommitdiffstats
path: root/sys/kern/spec_vnops.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-03-28 03:29:44 +0000
committerguenther <guenther@openbsd.org>2013-03-28 03:29:44 +0000
commitd4648cd609e976b495a8506d688ff40e247ebb10 (patch)
treedf0e1fb96f7616c667d31790d39934de107a35ca /sys/kern/spec_vnops.c
parentno need for vnode.h to include namei.h unconditionally (diff)
downloadwireguard-openbsd-d4648cd609e976b495a8506d688ff40e247ebb10.tar.xz
wireguard-openbsd-d4648cd609e976b495a8506d688ff40e247ebb10.zip
Add support for _PC_TIMESTAMP_RESOLUTION for ffs/mfs, cd9600, ext2,
msdos, NFS, fifos and devices, plus support for querying it in getconf(2) and the requisite pathconf(2) manpage blurb ok tedu@
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r--sys/kern/spec_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c
index 9c54d61ee7d..d92dd34210d 100644
--- a/sys/kern/spec_vnops.c
+++ b/sys/kern/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.70 2013/03/28 02:08:39 guenther Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.71 2013/03/28 03:29:44 guenther Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -623,6 +623,9 @@ spec_pathconf(void *v)
case _PC_VDISABLE:
*ap->a_retval = _POSIX_VDISABLE;
break;
+ case _PC_TIMESTAMP_RESOLUTION:
+ *ap->a_retval = 1;
+ break;
default:
error = EINVAL;
break;