Deleted Added
full compact
synch.h (243730) synch.h (243734)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/synch.h#1 $
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditdistd/synch.h#3 $
30 */
31
32#ifndef _SYNCH_H_
33#define _SYNCH_H_
34
30 */
31
32#ifndef _SYNCH_H_
33#define _SYNCH_H_
34
35#ifdef HAVE_CONFIG_H
36#include "config.h"
37#endif
38
39#include <errno.h>
40#include <pthread.h>
41#ifdef HAVE_PTHREAD_NP_H
42#include <pthread_np.h>
43#endif
44#include <stdbool.h>
45#include <time.h>
46
35#include <errno.h>
36#include <pthread.h>
37#ifdef HAVE_PTHREAD_NP_H
38#include <pthread_np.h>
39#endif
40#include <stdbool.h>
41#include <time.h>
42
47#include <pjdlog.h>
43#include "pjdlog.h"
48
49#ifndef PJDLOG_ASSERT
50#include <assert.h>
51#define PJDLOG_ASSERT(...) assert(__VA_ARGS__)
52#endif
53
54static __inline void
55mtx_init(pthread_mutex_t *lock)

--- 155 unchanged lines hidden ---
44
45#ifndef PJDLOG_ASSERT
46#include <assert.h>
47#define PJDLOG_ASSERT(...) assert(__VA_ARGS__)
48#endif
49
50static __inline void
51mtx_init(pthread_mutex_t *lock)

--- 155 unchanged lines hidden ---