8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / include / sm / shm.h
blob2355eff64b9932ac6290f6ff1a0f04c6356e46bf
1 /*
2 * Copyright (c) 2000-2003, 2005 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
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.
9 * $Id: shm.h,v 1.11 2005/01/13 22:57:04 ca Exp $
12 #pragma ident "%Z%%M% %I% %E% SMI"
14 #ifndef SM_SHM_H
15 # define SM_SHM_H
17 # if SM_CONF_SHM
18 # include <sys/types.h>
19 # include <sys/ipc.h>
20 # include <sys/shm.h>
22 /* # include "def.h" */
24 /* key for shared memory */
25 # define SM_SHM_KEY ((key_t) 42)
27 /* return value for failed shmget() */
28 # define SM_SHM_NULL ((void *) -1)
29 # define SM_SHM_NO_ID (-2)
31 extern void *sm_shmstart __P((key_t, int , int , int *, bool));
32 extern int sm_shmstop __P((void *, int, bool));
33 extern int sm_shmsetowner __P((int, uid_t, gid_t, mode_t));
36 /* for those braindead systems... (e.g., SunOS 4) */
37 # ifndef SHM_R
38 # define SHM_R 0400
39 # endif /* SHM_R */
40 # ifndef SHM_W
41 # define SHM_W 0200
42 # endif /* SHM_W */
44 # endif /* SM_CONF_SHM */
45 #endif /* ! SM_SHM_H */