Module Name: src
Committed By: dholland
Date: Wed Feb 17 17:43:09 UTC 2021
Modified Files:
src/lib/libc/sys: fsync.2
Log Message:
Document more EINVAL cases for fsync_range.
Corresponds to previous code fix.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/sys/fsync.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/fsync.2
diff -u src/lib/libc/sys/fsync.2:1.19 src/lib/libc/sys/fsync.2:1.20
--- src/lib/libc/sys/fsync.2:1.19 Sat Feb 13 06:24:08 2021
+++ src/lib/libc/sys/fsync.2 Wed Feb 17 17:43:09 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: fsync.2,v 1.19 2021/02/13 06:24:08 dholland Exp $
+.\" $NetBSD: fsync.2,v 1.20 2021/02/17 17:43:09 dholland Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)fsync.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd February 12, 2021
+.Dd February 17, 2021
.Dt FSYNC 2
.Os
.Sh NAME
@@ -159,10 +159,13 @@ fails if:
is not open for writing.
.It Bq Er EINVAL
.Fa start
+is less than zero, or
+.Fa start
+
.Fa length
is less than
-.Fa start .
+.Fa start
+or triggers an integer overflow.
.It Bq Er EINVAL
.Fa how
contains an invalid value.