Document that mkdir("/", x) returns EISDIR. According to POSIX this is not

an allowed error, but we return EIO and EDQUOT also which are not in POSIX
either.
This commit is contained in:
christos 2005-09-17 06:08:03 +00:00
parent b39d90de0c
commit 5c902c0f21
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mkdir.2,v 1.21 2004/05/13 10:20:58 wiz Exp $
.\" $NetBSD: mkdir.2,v 1.22 2005/09/17 06:08:03 christos 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 11, 1993
.Dd September 17, 2005
.Dt MKDIR 2
.Os
.Sh NAME
@ -79,6 +79,9 @@ Too many symbolic links were encountered in translating the pathname.
The named file resides on a read-only file system.
.It Bq Er EEXIST
The named file exists.
.It Bq Er EISDIR
Attempt to create
.Dq / .
.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.