Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Bump date. New sentence, new line. Wording/arti...
details: https://anonhg.NetBSD.org/src/rev/d11105f94a43
branches: trunk
changeset: 783022:d11105f94a43
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Dec 01 20:53:10 2012 +0000
description:
Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
diffstat:
lib/libc/sys/chown.2 | 39 +++++++++++++-------------
lib/libc/sys/mkdir.2 | 63 ++++++++++++++++++++-----------------------
lib/libc/sys/mkfifo.2 | 73 ++++++++++++++++++++++++--------------------------
3 files changed, 85 insertions(+), 90 deletions(-)
diffs (truncated from 326 to 300 lines):
diff -r 9d0e366b7bf2 -r d11105f94a43 lib/libc/sys/chown.2
--- a/lib/libc/sys/chown.2 Sat Dec 01 20:51:29 2012 +0000
+++ b/lib/libc/sys/chown.2 Sat Dec 01 20:53:10 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: chown.2,v 1.33 2012/12/01 20:45:01 wiz Exp $
+.\" $NetBSD: chown.2,v 1.34 2012/12/01 20:53:10 wiz Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)chown.2 8.4 (Berkeley) 4/19/94
.\"
-.Dd April 19, 1994
+.Dd November 18, 2012
.Dt CHOWN 2
.Os
.Sh NAME
@@ -115,18 +115,19 @@
.Fa flag )
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.
+flag.
.Fa fd
can be set to
.Dv AT_FDCWD
-in order to specify current directory.
+in order to specify the current directory.
.Pp
One of the owner or group id's
may be left unchanged by specifying it as (uid_t)\-1 or (gid_t)\-1 respectively.
@@ -141,8 +142,15 @@
.Fn lchown
will fail and the file will be unchanged if:
.Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er EIO
+An I/O error occurred while reading from or writing to the file system.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded
.Brq Dv NAME_MAX
@@ -151,19 +159,12 @@
characters.
.It Bq Er ENOENT
The named file does not exist.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
.It Bq Er EPERM
The effective user ID is not the super-user.
.It Bq Er EROFS
The named file resides on a read-only file system.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
-.It Bq Er EIO
-An I/O error occurred while reading from or writing to the file system.
.El
.Pp
.Fn fchown
@@ -175,12 +176,12 @@
.It Bq Er EINVAL
.Fa fd
refers to a socket, not a file.
+.It Bq Er EIO
+An I/O error occurred while reading from or writing to the file system.
.It Bq Er EPERM
The effective user ID is not the super-user.
.It Bq Er EROFS
The named file resides on a read-only file system.
-.It Bq Er EIO
-An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
.Xr chgrp 1 ,
diff -r 9d0e366b7bf2 -r d11105f94a43 lib/libc/sys/mkdir.2
--- a/lib/libc/sys/mkdir.2 Sat Dec 01 20:51:29 2012 +0000
+++ b/lib/libc/sys/mkdir.2 Sat Dec 01 20:53:10 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: mkdir.2,v 1.25 2012/11/18 17:41:53 manu Exp $
+.\" $NetBSD: mkdir.2,v 1.26 2012/12/01 20:55:13 wiz Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)mkdir.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd December 27, 2005
+.Dd November 18, 2012
.Dt MKDIR 2
.Os
.Sh NAME
@@ -58,18 +58,19 @@
.Fn mkdir
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.
+flag.
.Fa fd
can be set to
.Dv AT_FDCWD
-in order to specify current directory.
+in order to specify the current directory.
.Pp
The directory's owner ID is set to the process's effective user ID.
The directory's group ID is set to that of the parent directory in
@@ -82,8 +83,24 @@
.Fn mkdir
will fail and no directory will be created if:
.Bl -tag -width Er
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix.
+.It Bq Er EDQUOT
+The new directory cannot be created because the user's
+quota of disk blocks on the file system that will
+contain the directory has been exhausted.
+Or, the user's quota of inodes on the file system on
+which the directory is being created has been exhausted.
+.It Bq Er EEXIST
+The named file exists.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er EIO
+An I/O error occurred while making the directory entry or allocating the inode;
+or an I/O error occurred while reading from or writing to the file system.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded
.Brq Dv NAME_MAX
@@ -92,34 +109,15 @@
characters.
.It Bq Er ENOENT
A component of the path prefix does not exist.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EROFS
-The named file resides on a read-only file system.
-.It Bq Er EEXIST
-The named file exists.
.It Bq Er ENOSPC
The new directory cannot be created because there is no space left
on the file system that will contain the directory.
-.It Bq Er ENOSPC
-There are no free inodes on the file system on which the
+Or, there are no free inodes on the file system on which the
directory is being created.
-.It Bq Er EDQUOT
-The new directory cannot be created because the user's
-quota of disk blocks on the file system that will
-contain the directory has been exhausted.
-.It Bq Er EDQUOT
-The user's quota of inodes on the file system on
-which the directory is being created has been exhausted.
-.It Bq Er EIO
-An I/O error occurred while making the directory entry or allocating the inode.
-.It Bq Er EIO
-An I/O error occurred while reading from or writing to the file system.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
+.It Bq Er EROFS
+The named file resides on a read-only file system.
.El
.Sh SEE ALSO
.Xr chmod 2 ,
@@ -133,4 +131,3 @@
.Fn mkdirat
conforms to
.St -p1003.1-2008 .
-
diff -r 9d0e366b7bf2 -r d11105f94a43 lib/libc/sys/mkfifo.2
--- a/lib/libc/sys/mkfifo.2 Sat Dec 01 20:51:29 2012 +0000
+++ b/lib/libc/sys/mkfifo.2 Sat Dec 01 20:53:10 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: mkfifo.2,v 1.21 2012/11/18 17:41:53 manu Exp $
+.\" $NetBSD: mkfifo.2,v 1.22 2012/12/01 20:57:08 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -60,14 +60,15 @@
.Fn mkfifo
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.
+flag.
.Fa fd
can be set to
.Dv AT_FDCWD
@@ -84,10 +85,29 @@
.Fn mkfifo
will fail and no fifo will be created if:
.Bl -tag -width Er
-.It Bq Er EOPNOTSUPP
-The kernel has not been configured to support fifo's.
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix.
+.It Bq Er EDQUOT
+The directory in which the entry for the new fifo
+is being placed cannot be extended because the
+user's quota of disk blocks on the file system
+containing the directory has been exhausted.
+Or, the user's quota of inodes on the file system on
+which the fifo is being created has been exhausted.
+.It Bq Er EEXIST
+The named file exists.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
+.It Bq Er EIO
+An
+.Tn I/O
+error occurred while making the directory entry or allocating the inode.
+Or, an
+.Tn I/O
+error occurred while reading from or writing to the file system.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded
.Brq Dv NAME_MAX
@@ -96,40 +116,18 @@
characters.
.It Bq Er ENOENT
A component of the path prefix does not exist.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EROFS
-The named file resides on a read-only file system.
-.It Bq Er EEXIST
-The named file exists.
.It Bq Er ENOSPC
The directory in which the entry for the new fifo is being placed
cannot be extended because there is no space left on the file
system containing the directory.
-.It Bq Er ENOSPC
-There are no free inodes on the file system on which the
+Or, there are no free inodes on the file system on which the
fifo is being created.
-.It Bq Er EDQUOT
-The directory in which the entry for the new fifo
-is being placed cannot be extended because the
-user's quota of disk blocks on the file system
-containing the directory has been exhausted.
-.It Bq Er EDQUOT
-The user's quota of inodes on the file system on
Home |
Main Index |
Thread Index |
Old Index