From 7f3b9e3bc6d1bf3735d920fc2a1a0928246b3143 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Thu, 28 Mar 2013 03:29:46 +0000 Subject: 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@ --- sys/msdosfs/msdosfs_vnops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/msdosfs') diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 74e8d1a7704..805db9e2309 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.84 2013/03/28 02:08:39 guenther Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.85 2013/03/28 03:29:44 guenther Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -1888,6 +1888,9 @@ msdosfs_pathconf(void *v) case _PC_NO_TRUNC: *ap->a_retval = 0; break; + case _PC_TIMESTAMP_RESOLUTION: + *ap->a_retval = 2000000000; /* 2 billion nanoseconds */ + break; default: error = EINVAL; break; -- cgit v1.2.3