Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib posix_openpt.3: reflect flag changes from r....



details:   https://anonhg.NetBSD.org/src/rev/8f8dfa6f4815
branches:  trunk
changeset: 371190:8f8dfa6f4815
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Wed Sep 28 00:35:47 2022 +0000

description:
posix_openpt.3: reflect flag changes from r. 1.44 of tty_ptm.c

Some flags are now accepted, others are still ignored. (E.g., other
BSDs would return EINVAL if O_RDWR wasn't passed, and we now accept
O_NONBLOCK but not O_CLOEXEC.)

diffstat:

 lib/libc/stdlib/posix_openpt.3 |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 494089a9a1be -r 8f8dfa6f4815 lib/libc/stdlib/posix_openpt.3
--- a/lib/libc/stdlib/posix_openpt.3    Tue Sep 27 19:18:45 2022 +0000
+++ b/lib/libc/stdlib/posix_openpt.3    Wed Sep 28 00:35:47 2022 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: posix_openpt.3,v 1.7 2022/09/06 22:54:41 gutteridge Exp $
+.\" $NetBSD: posix_openpt.3,v 1.8 2022/09/28 00:35:47 gutteridge Exp $
 .\"
 .\" Copyright (c) 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 6, 2022
+.Dd September 28, 2022
 .Dt POSIX_OPENPT 3
 .Os
 .Sh NAME
@@ -51,9 +51,9 @@
 argument has the same meaning as in the
 .Xr open 2
 call.
-However, the value of
+However, flags supplied in
 .Fa oflag
-is ignored; it exists for compatibility reasons only.
+may be ignored if they are unsupported.
 .Sh RETURN VALUES
 If successful,
 .Fn posix_openpt
@@ -67,7 +67,7 @@
 .Fn posix_openpt
 does not return
 .Er EINVAL
-if the value of
+if a flag supplied in
 .Fa oflag
 would be deemed invalid, instead it is simply ignored.
 This means it is not possible to dynamically test which



Home | Main Index | Thread Index | Old Index