Deleted Added
full compact
mac_get.c (105698) mac_get.c (111010)
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

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

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
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

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

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/lib/libc/posix1e/mac_get.c 105698 2002-10-22 14:36:11Z rwatson $
31 * $FreeBSD: head/lib/libc/posix1e/mac_get.c 111010 2003-02-16 17:29:11Z nectar $
32 */
33
34#include <sys/types.h>
35#include <sys/mac.h>
36
37#include <errno.h>
38#include <stdlib.h>
39
32 */
33
34#include <sys/types.h>
35#include <sys/mac.h>
36
37#include <errno.h>
38#include <stdlib.h>
39
40extern int __mac_get_fd(int fd, struct mac *mac_p);
41extern int __mac_get_file(const char *path_p, struct mac *mac_p);
42extern int __mac_get_link(const char *path_p, struct mac *mac_p);
43extern int __mac_get_pid(pid_t pid, struct mac *mac_p);
44extern int __mac_get_proc(struct mac *mac_p);
45
40int
41mac_get_fd(int fd, struct mac *label)
42{
43
44 return (__mac_get_fd(fd, label));
45}
46
47int

--- 26 unchanged lines hidden ---
46int
47mac_get_fd(int fd, struct mac *label)
48{
49
50 return (__mac_get_fd(fd, label));
51}
52
53int

--- 26 unchanged lines hidden ---