summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2012-12-01 21:07:00 +0000
committerwiz <wiz@NetBSD.org>2012-12-01 21:07:00 +0000
commitd8b6dc4cfb4770d3eba321d9979febb7da9d8f07 (patch)
treeef165839a5f1fae8b2faa348cbe5ca3c85db8c3f /lib/libc/sys
parente088279c116b0d8127e4f51f4521bef1c99e1855 (diff)
Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/symlink.24
-rw-r--r--lib/libc/sys/unlink.211
-rw-r--r--lib/libc/sys/utimes.213
3 files changed, 15 insertions, 13 deletions
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index a0acca004f5..4004180eb9c 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: symlink.2,v 1.23 2012/12/01 21:00:18 wiz Exp $
+.\" $NetBSD: symlink.2,v 1.24 2012/12/01 21:07:00 wiz Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -75,7 +75,7 @@ flag.
.Fa fd
can be set to
.Dv AT_FDCWD
-in order to specify current directory.
+in order to specify the current directory.
.Sh RETURN VALUES
Upon successful completion, a zero value is returned.
If an error occurs, the error code is stored in
diff --git a/lib/libc/sys/unlink.2 b/lib/libc/sys/unlink.2
index 85200b0747a..426a8c1a292 100644
--- a/lib/libc/sys/unlink.2
+++ b/lib/libc/sys/unlink.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: unlink.2,v 1.25 2012/12/01 20:45:01 wiz Exp $
+.\" $NetBSD: unlink.2,v 1.26 2012/12/01 21:07:00 wiz Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)unlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd April 3, 2010
+.Dd November 18, 2012
.Dt UNLINK 2
.Os
.Sh NAME
@@ -66,18 +66,19 @@ works the same way as
.Fn unlink
except if
.Fa path
-is relative. In that case, it is looked up from a directory whose file
+is relative.
+In that case, it is looked up from a directory whose file
descriptor was passed as
.Fa fd .
Search permission is required on
.Fa fd
-except if that file descriptor was open with
+except if that file descriptor was opened with the
.Dv O_SEARCH
option.
.Fa fd
can be set to
.Dv AT_FDCWD
-in order to specify current directory.
+in order to specify the current directory.
.Pp
.Fn unlinkat
will remove directories just like
diff --git a/lib/libc/sys/utimes.2 b/lib/libc/sys/utimes.2
index fffdc553524..62a396a6e39 100644
--- a/lib/libc/sys/utimes.2
+++ b/lib/libc/sys/utimes.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: utimes.2,v 1.34 2012/12/01 20:45:01 wiz Exp $
+.\" $NetBSD: utimes.2,v 1.35 2012/12/01 21:07:01 wiz Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)utimes.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd November 3, 2012
+.Dd November 18, 2012
.Dt UTIMES 2
.Os
.Sh NAME
@@ -57,7 +57,7 @@
.Fn futimes "int fd" "const struct timeval times[2]"
.Ft int
.Fn futimens "int fd" "const struct timespec times[2]"
-.In fcntl
+.In fcntl.h
.Ft int
.Fn utimensat "int fd" "const char *path" "const struct timespec times[2]" \
"int flag"
@@ -125,18 +125,19 @@ works the same way as
.Fn utimens
except if
.Fa path
-is relative. In that case, it is looked up from a directory whose file
+is relative.
+In that case, it is looked up from a directory whose file
descriptor was passed as
.Fa fd .
Search permission is required on
.Fa fd
-except if that file descriptor was open with
+except if that file descriptor was opened with the
.Dv O_SEARCH
option.
.Fa fd
can be set to
.Dv AT_FDCWD
-in order to specify current directory.
+in order to specify the current directory.
.Pp
When it operates on a symbolic link,
.Fn utimensat