diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2002-02-17 21:56:45 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2002-02-17 21:56:45 +0000 |
commit | 8449595fe97f4474b9b9a7e4edee1ef35dcff393 (patch) | |
tree | e7a33b132264d449a512ddf4a8685df097669c1d /contrib/sendmail/include/sm/shm.h | |
parent | 289b381b31415647269c7520d881017e2dcb27f1 (diff) | |
download | FreeBSD-src-8449595fe97f4474b9b9a7e4edee1ef35dcff393.zip FreeBSD-src-8449595fe97f4474b9b9a7e4edee1ef35dcff393.tar.gz |
Import sendmail 8.12.2
Diffstat (limited to 'contrib/sendmail/include/sm/shm.h')
-rw-r--r-- | contrib/sendmail/include/sm/shm.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/sendmail/include/sm/shm.h b/contrib/sendmail/include/sm/shm.h new file mode 100644 index 0000000..62ffe6e --- /dev/null +++ b/contrib/sendmail/include/sm/shm.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. + * All rights reserved. + * + * By using this file, you agree to the terms and conditions set + * forth in the LICENSE file which can be found at the top level of + * the sendmail distribution. + * + * $Id: shm.h,v 1.7 2001/04/20 15:21:55 ca Exp $ + */ + +#ifndef SM_SHM_H +# define SM_SHM_H + +# if SM_CONF_SHM +# include <sys/types.h> +# include <sys/ipc.h> +# include <sys/shm.h> + +/* # include "def.h" */ + +/* key for shared memory */ +# define SM_SHM_KEY ((key_t) 42) + +/* return value for failed shmget() */ +# define SM_SHM_NULL ((void *) -1) +# define SM_SHM_NO_ID (-1) +# define SM_NO_SHM(id) ((id) < 0) + +extern void *sm_shmstart __P((key_t, int , int , int *, bool)); +extern int sm_shmstop __P((void *, int, bool)); + +/* for those braindead systems... (e.g., SunOS 4) */ +# ifndef SHM_R +# define SHM_R 0400 +# endif /* SHM_R */ +# ifndef SHM_W +# define SHM_W 0200 +# endif /* SHM_W */ + +# endif /* SM_CONF_SHM */ +#endif /* ! SM_SHM_H */ |