Deleted Added
full compact
acl_delete.c (108410) acl_delete.c (192586)
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

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

25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28/*
29 * acl_delete_def_file -- remove a default acl from a file
30 */
31
32#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

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

25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28/*
29 * acl_delete_def_file -- remove a default acl from a file
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 108410 2002-12-29 20:47:05Z rwatson $");
33__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 192586 2009-05-22 15:56:43Z trasz $");
34
35#include <sys/types.h>
36#include "namespace.h"
37#include <sys/acl.h>
38#include "un-namespace.h"
39#include <sys/errno.h>
40
34
35#include <sys/types.h>
36#include "namespace.h"
37#include <sys/acl.h>
38#include "un-namespace.h"
39#include <sys/errno.h>
40
41#include "acl_support.h"
42
41int
42acl_delete_def_file(const char *path_p)
43{
44
45 return (__acl_delete_file(path_p, ACL_TYPE_DEFAULT));
46}
47
48int
49acl_delete_def_link_np(const char *path_p)
50{
51
52 return (__acl_delete_link(path_p, ACL_TYPE_DEFAULT));
53}
54
55int
56acl_delete_file_np(const char *path_p, acl_type_t type)
57{
58
43int
44acl_delete_def_file(const char *path_p)
45{
46
47 return (__acl_delete_file(path_p, ACL_TYPE_DEFAULT));
48}
49
50int
51acl_delete_def_link_np(const char *path_p)
52{
53
54 return (__acl_delete_link(path_p, ACL_TYPE_DEFAULT));
55}
56
57int
58acl_delete_file_np(const char *path_p, acl_type_t type)
59{
60
61 type = _acl_type_unold(type);
59 return (__acl_delete_file(path_p, type));
60}
61
62int
63acl_delete_link_np(const char *path_p, acl_type_t type)
64{
65
62 return (__acl_delete_file(path_p, type));
63}
64
65int
66acl_delete_link_np(const char *path_p, acl_type_t type)
67{
68
69 type = _acl_type_unold(type);
66 return (__acl_delete_link(path_p, type));
67}
68
70 return (__acl_delete_link(path_p, type));
71}
72
69
70int
71acl_delete_fd_np(int filedes, acl_type_t type)
72{
73
73int
74acl_delete_fd_np(int filedes, acl_type_t type)
75{
76
77 type = _acl_type_unold(type);
74 return (___acl_delete_fd(filedes, type));
75}
78 return (___acl_delete_fd(filedes, type));
79}