semaphore.h (201546) | semaphore.h (273604) |
---|---|
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 201546 2010-01-05 02:37:59Z davidxu $ | 27 * $FreeBSD: head/include/semaphore.h 273604 2014-10-24 20:02:44Z jhb $ |
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 39struct _sem { 40 __uint32_t _magic; | 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 39struct _sem { 40 __uint32_t _magic; |
41 struct _usem _kern; | 41 struct _usem2 _kern; 42 __uint32_t _padding; /* Preserve structure size */ |
42}; 43 44typedef struct _sem sem_t; 45 46#define SEM_FAILED ((sem_t *)0) 47#define SEM_VALUE_MAX __INT_MAX 48 49struct timespec; --- 15 unchanged lines hidden --- | 43}; 44 45typedef struct _sem sem_t; 46 47#define SEM_FAILED ((sem_t *)0) 48#define SEM_VALUE_MAX __INT_MAX 49 50struct timespec; --- 15 unchanged lines hidden --- |