Deleted Added
full compact
uipc_sem.c (215541) uipc_sem.c (219028)
1/*-
2 * Copyright (c) 2002 Alfred Perlstein <alfred@FreeBSD.org>
3 * Copyright (c) 2003-2005 SPARTA, Inc.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed for the FreeBSD Project in part by Network
8 * Associates Laboratories, the Security Research Division of Network

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Alfred Perlstein <alfred@FreeBSD.org>
3 * Copyright (c) 2003-2005 SPARTA, Inc.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * This software was developed for the FreeBSD Project in part by Network
8 * Associates Laboratories, the Security Research Division of Network

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/kern/uipc_sem.c 215541 2010-11-19 17:57:50Z jhb $");
35__FBSDID("$FreeBSD: head/sys/kern/uipc_sem.c 219028 2011-02-25 10:11:01Z netchild $");
36
37#include "opt_compat.h"
38#include "opt_posix.h"
39
40#include <sys/param.h>
41#include <sys/condvar.h>
42#include <sys/fcntl.h>
43#include <sys/file.h>

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

60#include <sys/sysent.h>
61#include <sys/sysproto.h>
62#include <sys/systm.h>
63#include <sys/sx.h>
64#include <sys/vnode.h>
65
66#include <security/mac/mac_framework.h>
67
36
37#include "opt_compat.h"
38#include "opt_posix.h"
39
40#include <sys/param.h>
41#include <sys/condvar.h>
42#include <sys/fcntl.h>
43#include <sys/file.h>

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

60#include <sys/sysent.h>
61#include <sys/sysproto.h>
62#include <sys/systm.h>
63#include <sys/sx.h>
64#include <sys/vnode.h>
65
66#include <security/mac/mac_framework.h>
67
68FEATURE(p1003_1b_semaphores, "POSIX1003.1B semaphores support");
68/*
69 * TODO
70 *
71 * - Resource limits?
72 * - Update fstat(1)
73 * - Replace global sem_lock with mtx_pool locks?
74 * - Add a MAC check_create() hook for creating new named semaphores.
75 */

--- 950 unchanged lines hidden ---
69/*
70 * TODO
71 *
72 * - Resource limits?
73 * - Update fstat(1)
74 * - Replace global sem_lock with mtx_pool locks?
75 * - Add a MAC check_create() hook for creating new named semaphores.
76 */

--- 950 unchanged lines hidden ---