2 * Copyright (c) 2002 Maxim Sobolev <sobomax@FreeBSD.org>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer
10 * in this position and unchanged.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef _ALPHA_LINUX_LINUX_IPC64_H_
32 #define _ALPHA_LINUX_LINUX_IPC64_H_
35 * The ipc64_perm structure for alpha architecture.
36 * Note extra padding because this structure is passed back and forth
37 * between kernel and user space.
39 * Pad space is left for:
41 * - 2 miscellaneous 64-bit values
59 * The msqid64_ds structure for alpha architecture.
60 * Note extra padding because this structure is passed back and forth
61 * between kernel and user space.
63 * Pad space is left for:
64 * - 2 miscellaneous 64-bit values
68 struct l_ipc64_perm msg_perm;
69 l_time_t msg_stime; /* last msgsnd time */
70 l_time_t msg_rtime; /* last msgrcv time */
71 l_time_t msg_ctime; /* last change time */
72 l_ulong msg_cbytes; /* current number of bytes on queue */
73 l_ulong msg_qnum; /* number of messages in queue */
74 l_ulong msg_qbytes; /* max number of bytes on queue */
75 l_pid_t msg_lspid; /* pid of last msgsnd */
76 l_pid_t msg_lrpid; /* last receive pid */
82 * The semid64_ds structure for alpha architecture.
83 * Note extra padding because this structure is passed back and forth
84 * between kernel and user space.
86 * Pad space is left for:
87 * - 2 miscellaneous 64-bit values
91 struct l_ipc64_perm sem_perm; /* permissions */
92 l_time_t sem_otime; /* last semop time */
93 l_time_t sem_ctime; /* last change time */
94 l_ulong sem_nsems; /* no. of semaphores in array */
100 * The shmid64_ds structure for alpha architecture.
101 * Note extra padding because this structure is passed back and forth
102 * between kernel and user space.
104 * Pad space is left for:
105 * - 2 miscellaneous 64-bit values
108 struct l_shmid64_ds {
109 struct l_ipc64_perm shm_perm; /* operation perms */
110 l_size_t shm_segsz; /* size of segment (bytes) */
111 l_time_t shm_atime; /* last attach time */
112 l_time_t shm_dtime; /* last detach time */
113 l_time_t shm_ctime; /* last change time */
114 l_pid_t shm_cpid; /* pid of creator */
115 l_pid_t shm_lpid; /* pid of last operator */
116 l_ulong shm_nattch; /* no. of current attaches */
133 #endif /* !_ALPHA_LINUX_LINUX_IPC64_H_ */