1 /*
2 * Copyright (c) 2000-2001, 2005, 2008 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 * $Id: sem.h,v 1.10 2008/05/30 16:26:39 ca Exp $
10 */
11
12 #ifndef SM_SEM_H
13 # define SM_SEM_H 1
14
15 #include <sm/gen.h>
16
17 /* key for semaphores */
18 # define SM_SEM_KEY (41L)
19 # define SM_SEM_NO_ID (-1)
20 # define SM_NO_SEM(id) ((id) < 0)
21
22 # if SM_CONF_SEM > 0
23 # include <sys/types.h>
24 # include <sys/ipc.h>
25 # include <sys/sem.h>
26
27 # if SM_CONF_SEM == 2
28 union semun
29 {
|
1 /*
2 * Copyright (c) 2000-2001, 2005, 2008 Proofpoint, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 * $Id: sem.h,v 1.11 2013-11-22 20:51:31 ca Exp $
10 */
11
12 #ifndef SM_SEM_H
13 # define SM_SEM_H 1
14
15 #include <sm/gen.h>
16
17 /* key for semaphores */
18 # define SM_SEM_KEY (41L)
19 # define SM_SEM_NO_ID (-1)
20 # define SM_NO_SEM(id) ((id) < 0)
21
22 # if SM_CONF_SEM > 0
23 # include <sys/types.h>
24 # include <sys/ipc.h>
25 # include <sys/sem.h>
26
27 # if SM_CONF_SEM == 2
28 union semun
29 {
|