shm_impl.h revision c6939658adb0a356a77bc28f7df252ceb4a8f6cc
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SHM_IMPL_H
#define _SYS_SHM_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/ipc_impl.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*
* shmsys system call subcodes
*/
#define SHMAT 0
#define SHMCTL 1
#define SHMDT 2
#define SHMGET 3
#define SHMIDS 4
/*
* There is a shared mem id data structure (shmid_ds) for each
* segment in the system.
*/
typedef struct kshmid {
/* Therefore, protects p_lckcnt for */
/* pages that back shm */
long shm_sptprot; /* was reserved (still a "long") */
} kshmid_t;
/*
* Segacct Flags.
*/
typedef struct sptinfo {
} sptinfo_t;
/*
* Protected by p->p_lock
*/
typedef struct segacct {
} segacct_t;
/*
* Error codes for shmgetid().
*/
#define SHMID_NONE (-1)
#define SHMID_FREE (-2)
extern void shminit(void);
#endif /* _KERNEL */
#if defined(_SYSCALL32)
/*
* LP64 view of the ILP32 shmid_ds structure
*/
struct shmid_ds32 {
};
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SHM_IMPL_H */