2007-03-04 08:59:00 +03:00
|
|
|
/* $NetBSD: svr4_32_ipc.h,v 1.4 2007/03/04 06:01:37 christos Exp $ */
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
/*-
|
|
|
|
* Copyright (c) 1995 The NetBSD Foundation, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by Christos Zoulas.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the NetBSD
|
|
|
|
* Foundation, Inc. and its contributors.
|
|
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SVR4_32_IPC_H_
|
|
|
|
#define _SVR4_32_IPC_H_
|
|
|
|
|
|
|
|
#include <compat/svr4/svr4_ipc.h>
|
|
|
|
/*
|
|
|
|
* General IPC
|
|
|
|
*/
|
|
|
|
struct svr4_32_ipc_perm {
|
|
|
|
svr4_32_uid_t uid;
|
|
|
|
svr4_32_gid_t gid;
|
|
|
|
svr4_32_uid_t cuid;
|
|
|
|
svr4_32_gid_t cgid;
|
|
|
|
svr4_32_mode_t mode;
|
|
|
|
netbsd32_u_long seq;
|
|
|
|
svr4_32_key_t key;
|
|
|
|
netbsd32_long pad[4];
|
|
|
|
};
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_ipc_permp;
|
2001-02-06 19:37:56 +03:00
|
|
|
/*
|
|
|
|
* Message queues
|
|
|
|
*/
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_msgp;
|
2001-02-06 19:37:56 +03:00
|
|
|
struct svr4_32_msg {
|
|
|
|
svr4_32_msgp msg_next;
|
|
|
|
netbsd32_long msg_type;
|
2005-02-27 01:58:54 +03:00
|
|
|
u_short msg_ts;
|
2001-02-06 19:37:56 +03:00
|
|
|
short msg_spot;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct svr4_32_msqid_ds {
|
|
|
|
struct svr4_32_ipc_perm msg_perm;
|
|
|
|
svr4_32_msgp msg_first;
|
|
|
|
svr4_32_msgp msg_last;
|
|
|
|
netbsd32_u_long msg_cbytes;
|
|
|
|
netbsd32_u_long msg_qnum;
|
|
|
|
netbsd32_u_long msg_qbytes;
|
|
|
|
svr4_32_pid_t msg_lspid;
|
|
|
|
svr4_32_pid_t msg_lrpid;
|
|
|
|
svr4_32_time_t msg_stime;
|
2005-02-27 01:58:54 +03:00
|
|
|
netbsd32_long msg_pad1;
|
2001-02-06 19:37:56 +03:00
|
|
|
svr4_32_time_t msg_rtime;
|
|
|
|
netbsd32_long msg_pad2;
|
|
|
|
svr4_32_time_t msg_ctime;
|
|
|
|
netbsd32_long msg_pad3;
|
|
|
|
short msg_cv;
|
|
|
|
short msg_qnum_cv;
|
|
|
|
netbsd32_long msg_pad4[3];
|
|
|
|
};
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_msqid_dsp;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
struct svr4_32_msgbuf {
|
|
|
|
netbsd32_long mtype; /* message type */
|
|
|
|
char mtext[1]; /* message text */
|
|
|
|
};
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_msgbufp;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_msginfop;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Shared memory
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct svr4_32_shmid_ds {
|
|
|
|
struct svr4_32_ipc_perm shm_perm;
|
|
|
|
int shm_segsz;
|
2007-03-04 08:59:00 +03:00
|
|
|
netbsd32_void * shm_amp;
|
2001-02-06 19:37:56 +03:00
|
|
|
u_short shm_lkcnt;
|
|
|
|
svr4_32_pid_t shm_lpid;
|
|
|
|
svr4_32_pid_t shm_cpid;
|
|
|
|
netbsd32_u_long shm_nattch;
|
|
|
|
netbsd32_u_long shm_cnattch;
|
|
|
|
svr4_32_time_t shm_atime;
|
|
|
|
netbsd32_long shm_pad1;
|
|
|
|
svr4_32_time_t shm_dtime;
|
|
|
|
netbsd32_long shm_pad2;
|
|
|
|
svr4_32_time_t shm_ctime;
|
|
|
|
netbsd32_long shm_pad3;
|
|
|
|
netbsd32_long shm_pad4[4];
|
|
|
|
};
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_shmid_dsp;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Semaphores
|
|
|
|
*/
|
|
|
|
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_semp;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
struct svr4_32_semid_ds {
|
|
|
|
struct svr4_32_ipc_perm sem_perm;
|
|
|
|
svr4_32_semp sem_base;
|
|
|
|
u_short sem_nsems;
|
|
|
|
svr4_32_time_t sem_otime;
|
|
|
|
netbsd32_long sem_pad1;
|
|
|
|
svr4_32_time_t sem_ctime;
|
|
|
|
netbsd32_long sem_pad2;
|
|
|
|
netbsd32_long sem_pad3[4];
|
|
|
|
};
|
2007-03-04 08:59:00 +03:00
|
|
|
typedef netbsd32_void *svr4_32_semid_dsp;
|
|
|
|
typedef netbsd32_void *svr4_32_sembufp;
|
2001-02-06 19:37:56 +03:00
|
|
|
|
|
|
|
#endif /* _SVR4_32_IPC_H */
|