Deleted Added
full compact
acl_get.c (194955) acl_get.c (195004)
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * This software was developed by Robert Watson for the TrustedBSD Project.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 25 unchanged lines hidden (view full) ---

34 * acl_get_perm_np() checks if a permission is in the specified
35 * permset (non-POSIX)
36 * acl_get_permset() returns the permission set in the ACL entry
37 * acl_get_qualifier() retrieves the qualifier of the tag from the ACL entry
38 * acl_get_tag_type() returns the tag type for the ACL entry entry_d
39 */
40
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * This software was developed by Robert Watson for the TrustedBSD Project.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 25 unchanged lines hidden (view full) ---

34 * acl_get_perm_np() checks if a permission is in the specified
35 * permset (non-POSIX)
36 * acl_get_permset() returns the permission set in the ACL entry
37 * acl_get_qualifier() retrieves the qualifier of the tag from the ACL entry
38 * acl_get_tag_type() returns the tag type for the ACL entry entry_d
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_get.c 194955 2009-06-25 12:46:59Z trasz $");
42__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_get.c 195004 2009-06-25 20:57:53Z trasz $");
43
44#include <sys/types.h>
45#include "namespace.h"
46#include <sys/acl.h>
47#include "un-namespace.h"
48
49#include <errno.h>
43
44#include <sys/types.h>
45#include "namespace.h"
46#include <sys/acl.h>
47#include "un-namespace.h"
48
49#include <errno.h>
50#include <stdio.h>
50#include <stdlib.h>
51#include <string.h>
52#include <unistd.h>
53
54#include "acl_support.h"
55
56acl_t
57acl_get_file(const char *path_p, acl_type_t type)

--- 39 unchanged lines hidden (view full) ---

97 _acl_brand_from_type(aclp, type);
98
99 return (aclp);
100}
101
102acl_t
103acl_get_fd(int fd)
104{
51#include <stdlib.h>
52#include <string.h>
53#include <unistd.h>
54
55#include "acl_support.h"
56
57acl_t
58acl_get_file(const char *path_p, acl_type_t type)

--- 39 unchanged lines hidden (view full) ---

98 _acl_brand_from_type(aclp, type);
99
100 return (aclp);
101}
102
103acl_t
104acl_get_fd(int fd)
105{
105 if (fpathconf(fd, _PC_ACL_NFS4))
106 if (fpathconf(fd, _PC_ACL_NFS4) == 1)
106 return (acl_get_fd_np(fd, ACL_TYPE_NFS4));
107
108 return (acl_get_fd_np(fd, ACL_TYPE_ACCESS));
109}
110
111acl_t
112acl_get_fd_np(int fd, acl_type_t type)
113{

--- 126 unchanged lines hidden ---
107 return (acl_get_fd_np(fd, ACL_TYPE_NFS4));
108
109 return (acl_get_fd_np(fd, ACL_TYPE_ACCESS));
110}
111
112acl_t
113acl_get_fd_np(int fd, acl_type_t type)
114{

--- 126 unchanged lines hidden ---