FreeBSD/Linux Kernel Cross Reference
sys/compat/sys/msg.h
1 /* $NetBSD: msg.h,v 1.2 2005/11/12 00:39:22 simonb Exp $ */
2
3 /*
4 * SVID compatible msg.h file
5 *
6 * Author: Daniel Boulet
7 *
8 * Copyright 1993 Daniel Boulet and RTMX Inc.
9 *
10 * This system call was implemented by Daniel Boulet under contract from RTMX.
11 *
12 * Redistribution and use in source forms, with and without modification,
13 * are permitted provided that this entire comment appears intact.
14 *
15 * Redistribution in binary form may occur without any restrictions.
16 * Obviously, it would be nice if you gave credit where credit is due
17 * but requiring it would be too onerous.
18 *
19 * This software is provided ``AS IS'' without any warranties of any kind.
20 */
21
22 #ifndef _COMPAT_SYS_MSG_H_
23 #define _COMPAT_SYS_MSG_H_
24
25 #ifdef _KERNEL
26 #include <compat/sys/ipc.h>
27 /*
28 * Old message queue data structure used before NetBSD 1.5.
29 */
30 struct msqid_ds14 {
31 struct ipc_perm14 msg_perm; /* msg queue permission bits */
32 struct __msg *msg_first; /* first message in the queue */
33 struct __msg *msg_last; /* last message in the queue */
34 u_long msg_cbytes; /* number of bytes in use on the queue */
35 u_long msg_qnum; /* number of msgs in the queue */
36 u_long msg_qbytes; /* max # of bytes on the queue */
37 pid_t msg_lspid; /* pid of last msgsnd() */
38 pid_t msg_lrpid; /* pid of last msgrcv() */
39 time_t msg_stime; /* time of last msgsnd() */
40 long msg_pad1;
41 time_t msg_rtime; /* time of last msgrcv() */
42 long msg_pad2;
43 time_t msg_ctime; /* time of last msgctl() */
44 long msg_pad3;
45 long msg_pad4[4];
46 };
47 #endif
48
49 #endif /* !_COMPAT_SYS_MSG_H_ */
Cache object: 2d396839e705f0df898e8100d09b1878
|