Deleted Added
full compact
acl_entry.c (92986) acl_entry.c (192586)
1/*
2 * Copyright (c) 2001-2002 Chris D. Faulhaber
3 * All rights reserved.
4 *
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001-2002 Chris D. Faulhaber
3 * All rights reserved.
4 *
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_entry.c 92986 2002-03-22 21:53:29Z obrien $");
28__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_entry.c 192586 2009-05-22 15:56:43Z trasz $");
29
30#include <sys/types.h>
31#include "namespace.h"
32#include <sys/acl.h>
33#include "un-namespace.h"
34
35#include <errno.h>
36#include <stdlib.h>

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

56 return (-1);
57 }
58
59 *entry_p = &acl_int->acl_entry[acl_int->acl_cnt++];
60
61 (**entry_p).ae_tag = ACL_UNDEFINED_TAG;
62 (**entry_p).ae_id = ACL_UNDEFINED_ID;
63 (**entry_p).ae_perm = ACL_PERM_NONE;
29
30#include <sys/types.h>
31#include "namespace.h"
32#include <sys/acl.h>
33#include "un-namespace.h"
34
35#include <errno.h>
36#include <stdlib.h>

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

56 return (-1);
57 }
58
59 *entry_p = &acl_int->acl_entry[acl_int->acl_cnt++];
60
61 (**entry_p).ae_tag = ACL_UNDEFINED_TAG;
62 (**entry_p).ae_id = ACL_UNDEFINED_ID;
63 (**entry_p).ae_perm = ACL_PERM_NONE;
64 (**entry_p).ae_entry_type = 0;
65 (**entry_p).ae_flags = 0;
64
65 (*acl_p)->ats_cur_entry = 0;
66
67 return (0);
68}
69
70/*
71 * acl_get_entry() (23.4.14): returns an ACL entry from an ACL

--- 27 unchanged lines hidden ---
66
67 (*acl_p)->ats_cur_entry = 0;
68
69 return (0);
70}
71
72/*
73 * acl_get_entry() (23.4.14): returns an ACL entry from an ACL

--- 27 unchanged lines hidden ---