Revert "usbd - Do not start moused by default when a usb mouse is connected"
[dragonfly.git] / contrib / sendmail-8.14 / include / sm / shm.h
blob61333a20b8a936cbfcabecbad450abf9f6da8ff2
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 #ifndef SM_SHM_H
13 # define SM_SHM_H
15 # if SM_CONF_SHM
16 # include <sys/types.h>
17 # include <sys/ipc.h>
18 # include <sys/shm.h>
20 /* # include "def.h" */
22 /* key for shared memory */
23 # define SM_SHM_KEY ((key_t) 42)
25 /* return value for failed shmget() */
26 # define SM_SHM_NULL ((void *) -1)
27 # define SM_SHM_NO_ID (-2)
29 extern void *sm_shmstart __P((key_t, int , int , int *, bool));
30 extern int sm_shmstop __P((void *, int, bool));
31 extern int sm_shmsetowner __P((int, uid_t, gid_t, mode_t));
34 /* for those braindead systems... (e.g., SunOS 4) */
35 # ifndef SHM_R
36 # define SHM_R 0400
37 # endif /* SHM_R */
38 # ifndef SHM_W
39 # define SHM_W 0200
40 # endif /* SHM_W */
42 # endif /* SM_CONF_SHM */
43 #endif /* ! SM_SHM_H */