semaphore.h (273604) | semaphore.h (277983) |
---|---|
1/* 2 * Copyright (c) 2010 David Xu <davidxu@freebsd.org> 3 * 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 2010 David Xu <davidxu@freebsd.org> 3 * 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/include/semaphore.h 273604 2014-10-24 20:02:44Z jhb $ | 27 * $FreeBSD: head/include/semaphore.h 277983 2015-01-31 16:39:26Z jilles $ |
28 */ 29 30/* semaphore.h: POSIX 1003.1b semaphores */ 31 32#ifndef _SEMAPHORE_H_ 33#define _SEMAPHORE_H_ 34 35#include <sys/cdefs.h> 36#include <sys/_types.h> 37#include <sys/_umtx.h> 38 | 28 */ 29 30/* semaphore.h: POSIX 1003.1b semaphores */ 31 32#ifndef _SEMAPHORE_H_ 33#define _SEMAPHORE_H_ 34 35#include <sys/cdefs.h> 36#include <sys/_types.h> 37#include <sys/_umtx.h> 38 |
39#include <machine/_limits.h> 40 |
|
39struct _sem { 40 __uint32_t _magic; 41 struct _usem2 _kern; 42 __uint32_t _padding; /* Preserve structure size */ 43}; 44 45typedef struct _sem sem_t; 46 --- 19 unchanged lines hidden --- | 41struct _sem { 42 __uint32_t _magic; 43 struct _usem2 _kern; 44 __uint32_t _padding; /* Preserve structure size */ 45}; 46 47typedef struct _sem sem_t; 48 --- 19 unchanged lines hidden --- |