diff options
| author | martin <martin@NetBSD.org> | 2020-04-22 18:07:37 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2020-04-22 18:07:37 +0000 |
| commit | c88dcc6653087746748e1c142bfe8d2be855804e (patch) | |
| tree | 9005144cb05fa3203d4bfce0bb51007c486c9763 /lib | |
| parent | 003acb9a207ddbfd8b18fd6be326c893fe183108 (diff) | |
Pull up following revision(s) (requested by gdt in ticket #840):
sys/kern/vfs_syscalls.c: revision 1.544
lib/libc/sys/fdatasync.2: revision 1.17
Relax fdatasync restriction that fd be writable
The restriction that a fd passed to fdatasync(2) must be writable was
added in 2003 in order to comply with POSIX. Since then, POSIX has
removed that requirement, and POSIX-valid programs have been therefore
encountering errors on NetBSD.
Patch by Paul Ripke after discussion on netbsd-users. Issue
discovered with pkgsrc/databases/mongodb3 as used by pkgsrc/net/unifi.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/sys/fdatasync.2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/fdatasync.2 b/lib/libc/sys/fdatasync.2 index 3f12119f0db..9eff4be388f 100644 --- a/lib/libc/sys/fdatasync.2 +++ b/lib/libc/sys/fdatasync.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: fdatasync.2,v 1.16 2008/04/30 13:10:51 martin Exp $ +.\" $NetBSD: fdatasync.2,v 1.16.66.1 2020/04/22 18:07:37 martin Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -68,7 +68,7 @@ function will fail if: .It Bq Er EBADF The .Fa fd -argument is not a valid file descriptor open for writing. +argument is not a valid file descriptor. .It Bq Er EINVAL This implementation does not support synchronized I/O for this file. .It Bq Er ENOSYS @@ -93,4 +93,4 @@ and outstanding I/O operations are not guaranteed to have been completed. The .Fn fdatasync function conforms to -.St -p1003.1b-93 . +.St -p1003.1-2008 . |
