Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acl_is_trivial_np(3) [freebsd man page]

ACL_STRIP_NP(3) 					   BSD Library Functions Manual 					   ACL_STRIP_NP(3)

NAME
acl_is_trivial_np -- determine whether ACL is trivial LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> int acl_is_trivial_np(const acl_t aclp, int *trivialp); DESCRIPTION
The acl_is_trivial() function determines whether the ACL pointed to by the argument acl is trivial. Upon successful completion, the location referred to by the argument trivialp will be set to 1, if the ACL aclp points to is trivial, or 0 if it's not. ACL is trivial if it can be fully expressed as a file mode without losing any access rules. For POSIX.1e ACLs, ACL is trivial if it has the three required entries, one for owner, one for owning group, and one for other. For NFSv4 ACLs, ACL is trivial if it is identical to the ACL generated by acl_strip_np(3). Files that have non-trivial ACL have a plus sign appended after mode bits in "ls -l" output. RETURN VALUES
The acl_get_tag_type() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. SEE ALSO
acl(3), posix1e(3) STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information. HISTORY
POSIX.1e support was introduced in FreeBSD 4.0. The acl_is_trivial_np() function was added in FreeBSD 8.0. AUTHORS
Edward Tomasz Napierala <trasz@FreeBSD.org> BSD
November 12, 2013 BSD

Check Out this Related Man Page

ACL_GET_ENTRY_TYPE_NP(3)				   BSD Library Functions Manual 				  ACL_GET_ENTRY_TYPE_NP(3)

NAME
acl_get_entry_type_np -- retrieve the ACL type from an NFSv4 ACL entry LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> int acl_get_entry_type_np(acl_entry_t entry_d, acl_entry_type_t *entry_type_p); DESCRIPTION
The acl_get_entry_type_np() function is a non-portable call that returns the ACL type for the NFSv4 ACL entry entry_d. Upon successful com- pletion, the location referred to by the argument entry_type_p will be set to the ACL type of the ACL entry entry_d. RETURN VALUES
The acl_get_entry_type_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The acl_get_entry_type_np() function fails if: [EINVAL] Argument entry_d is not a valid descriptor for an NFSv4 ACL entry; SEE ALSO
acl(3), acl_set_entry_type_np(3), posix1e(3) STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. HISTORY
POSIX.1e support was introduced in FreeBSD 4.0. The acl_get_entry_type_np() function was added in FreeBSD 8.0. AUTHORS
The acl_get_entry_type_np() function was written by Edward Tomasz Napierala <trasz@FreeBSD.org>. BSD
June 25, 2009 BSD
Man Page

6 More Discussions You Might Find Interesting

1. Programming

wait system call

hi there, i had some trivial questions about this program here. i am kinda confused with these, hope you can help me to understand here. :) #include<stdio.h> #include<sys/wait.h> #include<sys/types.h> #include<unistd.h> int main(void) { int... (2 Replies)
Discussion started by: a25khan
2 Replies

2. Shell Programming and Scripting

ACL Analyzer Script

Hello, I am trying to make a bash script that will analyze and document Cisco (router) ACLs that will output a file with the source, destination, protocol, and ports (ports of the destination only) into a text file. The whole reason why all our current ACLs need to be documented is because we... (3 Replies)
Discussion started by: Okema
3 Replies

3. Programming

Obfuscate'ing a.out ... ???

Hi all, I've search the forums regarding posts similar to this already but can't find the suitable response. Am actually looking for something very trivial I think. I just want to mask/obfuscate the a.out file and run it like a normal UNIX program. I've look at gpg and encryption but it requires... (4 Replies)
Discussion started by: newbie_01
4 Replies

4. UNIX for Dummies Questions & Answers

Am confused - The all important . (period) - ????

Hi, My apologies if this question is so trivial ... I guess there really is a room for dummies ... :o Anyway, just wanting to know if someone can please explain what the dot (.) infront of the command or script does and why it works and does not work in the following? ... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. UNIX for Dummies Questions & Answers

Lseek implementation

Hi everybody, i've been googling for ages now and gotten kinda desperate... The question, however, might be rather trivial for the experts: What is it exactly, i.e. physically, the POSIX function (for a file) "lseek" does? Does it trigger some kind of synchronization on disk? Is it just for the... (4 Replies)
Discussion started by: Humudituu
4 Replies

6. Shell Programming and Scripting

turning output of two lines into one CSV line

Hi, I am attempting to use sed on linux to do something trivial. I am also too embarassed to show you what I have tried so far! What I am trying to do should be trivial, if I knew what I was doing, but I don't. Would someone please help me? Here is my problemI have a ASCII file that has the... (4 Replies)
Discussion started by: Jon8987z
4 Replies