[Midnightbsd-cvs] src [8801] trunk/lib/libc/sys/open.2: document the ERESTART translation to EINTR for devfs nodes.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 25 23:27:59 EDT 2016


Revision: 8801
          http://svnweb.midnightbsd.org/src/?rev=8801
Author:   laffer1
Date:     2016-09-25 23:27:59 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
document the ERESTART translation to EINTR for devfs nodes.

Modified Paths:
--------------
    trunk/lib/libc/sys/open.2

Modified: trunk/lib/libc/sys/open.2
===================================================================
--- trunk/lib/libc/sys/open.2	2016-09-26 03:27:27 UTC (rev 8800)
+++ trunk/lib/libc/sys/open.2	2016-09-26 03:27:59 UTC (rev 8801)
@@ -28,7 +28,7 @@
 .\"     @(#)open.2	8.2 (Berkeley) 11/16/93
 .\" $MidnightBSD$
 .\"
-.Dd March 25, 2011
+.Dd February 7, 2013
 .Dt OPEN 2
 .Os
 .Sh NAME
@@ -244,6 +244,17 @@
 The file pointer used to mark the current position within the
 file is set to the beginning of the file.
 .Pp
+If a sleeping open of a device node from
+.Xr devfs 5
+is interrupted by a signal, the call always fails with
+.Er EINTR ,
+even if the
+.Dv SA_RESTART
+flag is set for the signal.
+A sleeping open of a fifo (see
+.Xr mkfifo 2 )
+is restarted as normal.
+.Pp
 When a new file is created it is given the group of the directory
 which contains it.
 .Pp



More information about the Midnightbsd-cvs mailing list