[BACK]Return to acl_delete_def_file.html CVS log [TXT][DIR] Up to [Development] / xfs-website.orig / manpages

File: [Development] / xfs-website.orig / manpages / acl_delete_def_file.html (download) (as text)

Revision 1.1, Thu Jan 25 19:55:30 2001 UTC (16 years, 9 months ago) by xfs
Branch: MAIN
CVS Tags: HEAD

Man pages update.

<html>
<head>
<meta name="Content-Style" content="text/css">
</head>
<body>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="##include &lt;sys/acl.h&gt;">#include &lt;sys/acl.h&gt;</a><br>
<a href="#int acl_delete_def_file(const char *path);">int acl_delete_def_file(const char *path);</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#RETURN VALUES">RETURN VALUES</a><br>
<a href="#ERRORS">ERRORS</a><br>
<!-- Creator     : groff version 1.16.1  -->
<!-- CreationDate: Wed Jan 24 01:42:48 2001
 -->
<!-- Total number of pages: 1 -->
<!-- Page: 1 -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->
<a name="NAME"></a><h2>NAME</h2><p style="margin-left: 18%"><font size=3>acl_delete_def_file - delete the default ACL for a named directory</font></p>
<a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><a name="#include &lt;sys/acl.h&gt;"></a><h2>#include &lt;sys/acl.h&gt;</h2><a name="int acl_delete_def_file(const char *path);"></a><h2>int acl_delete_def_file(const char *path);</h2><a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><p style="margin-left: 18%"><font size=3>Deletes the default ACL associated with the directory specified in</font> <font size=3><I>path</I></font><font size=3>. The effective UID of the process must match the owner of the directory or the process must have appropriate privilege to delete the default ACL from</font> <font size=3><I>path_p</I></font><font size=3>. If capabilities are not enabled, only the superuser can delete the default ACL from a directory not owned by the effective UID. If</font> <font size=3><B>_POSIX_CAP</B></font> <font size=3>is in effect, then the appropriate capability shall include CAP_FOWNER. In addition, if</font> <font size=3><B>_POSIX_MAC</B></font> <font size=3>is in effect, then the process must have MAC write access to the directory.</font></p>
<p style="margin-left: 18%"><font size=3>If the argument</font> <font size=3><I>path</I></font> <font size=3>is not a directory, then the function fails.</font></p>
<a name="RETURN VALUES"></a><h2>RETURN VALUES</h2><p style="margin-left: 18%"><font size=3><I>acl_delete_def_file</I></font> <font size=3>returns 0 if successful, &shy;1 otherwise.</font></p>
<a name="ERRORS"></a><h2>ERRORS</h2>
<table width="98%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="14%">
<p><font size=3>EACCESS</font></p>
</td>
<td valign="top" align="left" width="66%">
<p><font size=3>Search permission is denied for a component of the path prefix or the object exists and the process does not have appropriate access rights.</font></p>
</td>
</tr>
</table>
<p style="margin-left: 18%"><font size=3>ENAMETOOLONG</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="33%">
</p>
</td>
<td valign="top" align="left" width="66%">
<p><font size=3>The length of the pathname argument is greater than PATH_MAX, or some component of it is greater than NAME_MAX.</font></p>
</td>
</tr>
</table>

<table width="98%" rules="none" frame="none" cols="4" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
<p><font size=3>ENOENT</font></p>
<p><font size=3>ENOTDIR EPERM</font></p>
</td>
<td valign="top" align="left" width="5%">
</td>
<td valign="top" align="left" width="66%">
<p><font size=3>The directory does not exist or</font> <font size=3><I>path</I></font> <font size=3>points to an empty string.</font></p>
<p><font size=3><I>path</I></font> <font size=3>is not a directory.</font></p>
<p><font size=3>The process does not have appropriate privilege to perform the operation to delete the default ACL.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3>EROFS</font></p>
</td>
<td valign="top" align="left" width="5%">
</td>
<td valign="top" align="left" width="66%">
<p><font size=3>This function requires modification of a file system which is currently read&shy;only.</font></p>
</td>
</tr>
</table>
<br>
</p>
</body>
</html>