Deleted Added
full compact
sem.h (302408) sem.h (147078)
1/*
1/*
2 * Copyright (c) 2000-2001, 2005, 2008 Proofpoint, Inc. and its suppliers.
2 * Copyright (c) 2000-2001, 2005 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 *
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 $
9 * $Id: sem.h,v 1.9 2005/02/17 22:08:58 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 */

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

42
43# define SM_NSEM 1
44
45extern int sm_sem_start __P((key_t, int, int, bool));
46extern int sm_sem_stop __P((int));
47extern int sm_sem_acq __P((int, int, int));
48extern int sm_sem_rel __P((int, int, int));
49extern int sm_sem_get __P((int, int));
10 */
11
12#ifndef SM_SEM_H
13# define SM_SEM_H 1
14
15#include <sm/gen.h>
16
17/* key for semaphores */

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

42
43# define SM_NSEM 1
44
45extern int sm_sem_start __P((key_t, int, int, bool));
46extern int sm_sem_stop __P((int));
47extern int sm_sem_acq __P((int, int, int));
48extern int sm_sem_rel __P((int, int, int));
49extern int sm_sem_get __P((int, int));
50extern int sm_semsetowner __P((int, uid_t, gid_t, mode_t));
51
52# else /* SM_CONF_SEM > 0 */
53# define sm_sem_start(key, nsem, semflg, owner) 0
54# define sm_sem_stop(semid) 0
55# define sm_sem_acq(semid, semnum, timeout) 0
56# define sm_sem_rel(semid, semnum, timeout) 0
57# define sm_sem_get(semid, semnum) 0
58# endif /* SM_CONF_SEM > 0 */
59
60#endif /* ! SM_SEM_H */
50
51# else /* SM_CONF_SEM > 0 */
52# define sm_sem_start(key, nsem, semflg, owner) 0
53# define sm_sem_stop(semid) 0
54# define sm_sem_acq(semid, semnum, timeout) 0
55# define sm_sem_rel(semid, semnum, timeout) 0
56# define sm_sem_get(semid, semnum) 0
57# endif /* SM_CONF_SEM > 0 */
58
59#endif /* ! SM_SEM_H */