Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document more EINVAL cases for fsync_range.
details: https://anonhg.NetBSD.org/src/rev/046dc5eef857
branches: trunk
changeset: 959540:046dc5eef857
user: dholland <dholland%NetBSD.org@localhost>
date: Wed Feb 17 17:43:09 2021 +0000
description:
Document more EINVAL cases for fsync_range.
Corresponds to previous code fix.
diffstat:
lib/libc/sys/fsync.2 | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 249c913770c4 -r 046dc5eef857 lib/libc/sys/fsync.2
--- a/lib/libc/sys/fsync.2 Wed Feb 17 17:39:08 2021 +0000
+++ b/lib/libc/sys/fsync.2 Wed Feb 17 17:43:09 2021 +0000
@@ -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 @@
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.
Home |
Main Index |
Thread Index |
Old Index