move compat code out.

This commit is contained in:
christos 2005-11-11 17:11:40 +00:00
parent 88056ee1bd
commit e68103df2a
2 changed files with 2 additions and 43 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipc.h,v 1.27 2005/02/03 19:20:01 perry Exp $ */
/* $NetBSD: ipc.h,v 1.28 2005/11/11 17:11:40 christos Exp $ */
/*
* Copyright (c) 1990, 1993
@ -118,22 +118,6 @@ struct ipc_perm_sysctl {
};
#endif /* _NETBSD_SOURCE */
#ifdef _KERNEL
/*
* Old IPC permission structure used before NetBSD 1.5.
*/
struct ipc_perm14 {
unsigned short cuid; /* creator user id */
unsigned short cgid; /* creator group id */
unsigned short uid; /* user id */
unsigned short gid; /* group id */
unsigned short mode; /* r/w permission */
unsigned short seq; /* sequence # (to generate unique
msg/sem/shm id) */
key_t key; /* user specified msg/sem/shm key */
};
#endif /* _KERNEL */
/* Common access type bits, used with ipcperm(). */
#define IPC_R 000400 /* read permission */
#define IPC_W 000200 /* write/alter permission */
@ -165,8 +149,6 @@ struct ipc_perm14 {
int ipcperm(struct ucred *, struct ipc_perm *, int);
void ipc_perm14_to_native(struct ipc_perm14 *, struct ipc_perm *);
void native_to_ipc_perm14(struct ipc_perm *, struct ipc_perm14 *);
#endif /* _KERNEL */
#ifndef _KERNEL

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.h,v 1.16 2005/02/03 19:20:01 perry Exp $ */
/* $NetBSD: msg.h,v 1.17 2005/11/11 17:11:40 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -97,29 +97,6 @@ struct msqid_ds {
msglen_t _msg_cbytes; /* # of bytes currently in queue */
};
#ifdef _KERNEL
/*
* Old message queue data structure used before NetBSD 1.5.
*/
struct msqid_ds14 {
struct ipc_perm14 msg_perm; /* msg queue permission bits */
struct __msg *msg_first; /* first message in the queue */
struct __msg *msg_last; /* last message in the queue */
u_long msg_cbytes; /* number of bytes in use on the queue */
u_long msg_qnum; /* number of msgs in the queue */
u_long msg_qbytes; /* max # of bytes on the queue */
pid_t msg_lspid; /* pid of last msgsnd() */
pid_t msg_lrpid; /* pid of last msgrcv() */
time_t msg_stime; /* time of last msgsnd() */
long msg_pad1;
time_t msg_rtime; /* time of last msgrcv() */
long msg_pad2;
time_t msg_ctime; /* time of last msgctl() */
long msg_pad3;
long msg_pad4[4];
};
#endif
#if defined(_NETBSD_SOURCE)
/*
* Based on the configuration parameters described in an SVR2 (yes, two)