From 5212f0c1e33f31b34eca9902d2edf8e591d00bc4 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 26 Jul 2009 00:20:49 +0200 Subject: [PATCH] open.2: Fix typo and reword an awkward sounding sentence. --- lib/libc/sys/Makefile.inc | 2 +- lib/libc/sys/open.2 | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 2e5528c4f7..9ee10b0c06 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -131,6 +131,7 @@ MLINKS+=madvise.2 mcontrol.2 \ MLINKS+=mlock.2 munlock.2 MLINKS+=modnext.2 modfnext.2 MLINKS+=mount.2 unmount.2 +MLINKS+=open.2 openat.2 MLINKS+=pathconf.2 fpathconf.2 MLINKS+=read.2 pread.2 read.2 preadv.2 read.2 readv.2 MLINKS+=recv.2 recvfrom.2 recv.2 recvmsg.2 @@ -164,5 +165,4 @@ MLINKS+=varsym.2 varsym_get.2 \ varsym.2 varsym_set.2 MLINKS+=wait.2 wait3.2 wait.2 wait4.2 wait.2 waitpid.2 MLINKS+=write.2 pwrite.2 write.2 pwritev.2 write.2 writev.2 -MLINKS+=open.2 openat.2 .endif diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 5e84d134eb..f47d297b18 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -233,7 +233,7 @@ A component of the path prefix is not a directory or the .Fa path argument is not an absolute path and the .Fa fd -arugment is neither +argument is neither .Dv AT_FDCWD nor a file descriptor associated with a directory. .It Bq Er ENAMETOOLONG @@ -368,12 +368,10 @@ function call appeared first in Solaris and was ported to .Dx 2.3 . .Sh BUGS The Open Group Extended API Set 2 specification requires that the test -for whether -.Fa fd -is searchable is based on whether -.Fa fd -is open for searching, not whether the underlying directory currently -permits searches. -The present implementation of the -.Fa openat +for +.Fa fd Ap s +searchability is based on whether it is open for searching, +and not whether the underlying directory currently permits searches. +The present implementation of +.Fn openat checks the current permissions of directory instead. -- 2.41.0