Deleted Added
full compact
acl_delete.c (92986) acl_delete.c (108410)
1/*-
1/*-
2 * Copyright (c) 1999, 2000, 2001 Robert N. M. Watson
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * All rights reserved.
4 *
3 * All rights reserved.
4 *
5 * This software was developed by Robert Watson for the TrustedBSD Project.
6 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.

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

23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26/*
27 * acl_delete_def_file -- remove a default acl from a file
28 */
29
30#include <sys/cdefs.h>
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.

--- 10 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>
31__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 92986 2002-03-22 21:53:29Z obrien $");
33__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 108410 2002-12-29 20:47:05Z rwatson $");
32
33#include <sys/types.h>
34#include "namespace.h"
35#include <sys/acl.h>
36#include "un-namespace.h"
37#include <sys/errno.h>
38
39int
40acl_delete_def_file(const char *path_p)
41{
42
43 return (__acl_delete_file(path_p, ACL_TYPE_DEFAULT));
44}
45
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
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{
46
51
52 return (__acl_delete_link(path_p, ACL_TYPE_DEFAULT));
53}
54
47int
48acl_delete_file_np(const char *path_p, acl_type_t type)
49{
50
51 return (__acl_delete_file(path_p, type));
52}
53
55int
56acl_delete_file_np(const char *path_p, acl_type_t type)
57{
58
59 return (__acl_delete_file(path_p, type));
60}
61
62int
63acl_delete_link_np(const char *path_p, acl_type_t type)
64{
54
65
66 return (__acl_delete_link(path_p, type));
67}
68
69
55int
56acl_delete_fd_np(int filedes, acl_type_t type)
57{
58
59 return (___acl_delete_fd(filedes, type));
60}
70int
71acl_delete_fd_np(int filedes, acl_type_t type)
72{
73
74 return (___acl_delete_fd(filedes, type));
75}