1c468923bSGleb Popov.\"- 2c468923bSGleb Popov.\" Copyright (c) 2021 Gleb Popov 3c468923bSGleb Popov.\" All rights reserved. 4c468923bSGleb Popov.\" 5c468923bSGleb Popov.\" Redistribution and use in source and binary forms, with or without 6c468923bSGleb Popov.\" modification, are permitted provided that the following conditions 7c468923bSGleb Popov.\" are met: 8c468923bSGleb Popov.\" 1. Redistributions of source code must retain the above copyright 9c468923bSGleb Popov.\" notice, this list of conditions and the following disclaimer. 10c468923bSGleb Popov.\" 2. Redistributions in binary form must reproduce the above copyright 11c468923bSGleb Popov.\" notice, this list of conditions and the following disclaimer in the 12c468923bSGleb Popov.\" documentation and/or other materials provided with the distribution. 13c468923bSGleb Popov.\" 14c468923bSGleb Popov.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15c468923bSGleb Popov.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16c468923bSGleb Popov.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17c468923bSGleb Popov.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18c468923bSGleb Popov.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19c468923bSGleb Popov.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20c468923bSGleb Popov.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21c468923bSGleb Popov.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22c468923bSGleb Popov.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23c468923bSGleb Popov.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24c468923bSGleb Popov.\" SUCH DAMAGE. 25c468923bSGleb Popov.\" 26c468923bSGleb Popov.Dd February 26, 2021 27c468923bSGleb Popov.Dt ACL_EXTENDED_FILE_NP 3 28c468923bSGleb Popov.Os 29c468923bSGleb Popov.Sh NAME 30c468923bSGleb Popov.Nm acl_extended_file_np , 31c468923bSGleb Popov.Nm acl_extended_file_nofollow_np , 32c468923bSGleb Popov.Nm acl_extended_link_np 33c468923bSGleb Popov.Nd checks if the file has extended ACLs set 34c468923bSGleb Popov.Sh LIBRARY 35c468923bSGleb Popov.Lb libc 36c468923bSGleb Popov.Sh SYNOPSIS 37c468923bSGleb Popov.In sys/types.h 38c468923bSGleb Popov.In sys/acl.h 39c468923bSGleb Popov.Ft int 40c468923bSGleb Popov.Fn acl_extended_file_np "const char* path_p" 41c468923bSGleb Popov.Ft int 42c468923bSGleb Popov.Fn acl_extended_file_nofollow_np "const char* path_p" 43c468923bSGleb Popov.Ft int 44c468923bSGleb Popov.Fn acl_extended_link_np "const char* path_p" 45c468923bSGleb Popov.Sh DESCRIPTION 46c468923bSGleb PopovThe 47c468923bSGleb Popov.Fn acl_extended_file_np 48c468923bSGleb Popovfunction is a non-portable call that checks if the file or directory referred to 49c468923bSGleb Popovby the argument 50c468923bSGleb Popov.Va path_p 51c468923bSGleb Popovcontains extended access ACLs. The 52c468923bSGleb Popov.Fn acl_extended_file_nofollow_np 53c468923bSGleb Popovfunction works the same way, except it does not follow symlinks. The 54c468923bSGleb Popov.Fn acl_extended_link_np 55c468923bSGleb Popovfunction is a synonim to 56c468923bSGleb Popov.Fn acl_extended_file_nofollow_np 57c468923bSGleb Popovnamed in FreeBSD style. 58c468923bSGleb PopovAn ACL is considered to be extended access one if it contains entries other 59c468923bSGleb Popovthan the three required entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ and 60c468923bSGleb PopovACL_OTHER. 61c468923bSGleb Popov.Sh RETURN VALUES 62c468923bSGleb PopovUpon successful completion, this function returns 0 if the file object does not 63c468923bSGleb Popovcontain extended access ACLs and 1 in the other case. 64c468923bSGleb PopovOtherwise, the value -1 is returned, and 65c468923bSGleb Popov.Va errno 66c468923bSGleb Popovindicates the error. 67c468923bSGleb Popov.Sh ERRORS 68c468923bSGleb PopovIf any of the following conditions occur, the 69c468923bSGleb Popov.Fn acl_extended_file_np 70c468923bSGleb Popovfunction shall return a value of 71c468923bSGleb Popov.Va -1 72c468923bSGleb Popovand set 73c468923bSGleb Popov.Va errno 74c468923bSGleb Popovto the corresponding value: 75c468923bSGleb Popov.Bl -tag -width Er 76c468923bSGleb Popov.It Bq Er EACCES 77c468923bSGleb PopovSearch permission is denied for a component of the path prefix. 78*d21e322dSGraham Percival.El 79c468923bSGleb Popov.Sh SEE ALSO 80c468923bSGleb Popov.Xr extattr_get_file 2 , 81c468923bSGleb Popov.Xr posix1e 3 82c468923bSGleb Popov.Sh STANDARDS 83c468923bSGleb PopovPOSIX.1e is described in IEEE POSIX.1e draft 17. 84c468923bSGleb PopovDiscussion 85c468923bSGleb Popovof the draft continues on the cross-platform POSIX.1e implementation 86c468923bSGleb Popovmailing list. 87c468923bSGleb PopovTo join this list, see the 88c468923bSGleb Popov.Fx 89c468923bSGleb PopovPOSIX.1e implementation 90c468923bSGleb Popovpage for more information. 91c468923bSGleb Popov.Sh HISTORY 92c468923bSGleb PopovPOSIX.1e support was introduced in 93c468923bSGleb Popov.Fx 4.0 , 94c468923bSGleb Popovand development continues. 95c468923bSGleb Popov.Sh AUTHORS 96c468923bSGleb Popov.An Gleb Popov 97