]>
Commit | Line | Data |
---|---|---|
915b9fe3 | 1 | /* Linux/MIPS implementation of the SysV message struct msqid_ds. |
2b778ceb | 2 | Copyright (C) 2020-2021 Free Software Foundation, Inc. |
915b9fe3 AZ |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
6 | modify it under the terms of the GNU Lesser General Public | |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
9 | ||
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | Lesser General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU Lesser General Public | |
16 | License along with the GNU C Library; if not, see | |
17 | <https://www.gnu.org/licenses/>. */ | |
18 | ||
19 | #ifndef _SYS_MSG_H | |
20 | # error "Never use <bits/msq.h> directly; include <sys/msg.h> instead." | |
21 | #endif | |
22 | ||
23 | /* Structure of record for one message inside the kernel. | |
24 | The type `struct msg' is opaque. */ | |
25 | struct msqid_ds | |
26 | { | |
27 | struct ipc_perm msg_perm; /* structure describing operation permission */ | |
28 | #if __TIMESIZE == 32 | |
29 | # ifdef __MIPSEL__ | |
30 | __time_t msg_stime; /* time of last msgsnd command */ | |
3283f711 | 31 | unsigned long int __msg_stime_high; |
915b9fe3 | 32 | __time_t msg_rtime; /* time of last msgsnd command */ |
3283f711 | 33 | unsigned long int __msg_rtime_high; |
915b9fe3 | 34 | __time_t msg_ctime; /* time of last change */ |
3283f711 | 35 | unsigned long int __msg_ctime_high; |
915b9fe3 | 36 | # else |
3283f711 | 37 | unsigned long int __msg_stime_high; |
915b9fe3 | 38 | __time_t msg_stime; /* time of last msgsnd command */ |
3283f711 | 39 | unsigned long int __msg_rtime_high; |
915b9fe3 | 40 | __time_t msg_rtime; /* time of last msgsnd command */ |
3283f711 | 41 | unsigned long int __msg_ctime_high; |
915b9fe3 AZ |
42 | __time_t msg_ctime; /* time of last change */ |
43 | # endif | |
44 | #else | |
45 | __time_t msg_stime; /* time of last msgsnd command */ | |
46 | __time_t msg_rtime; /* time of last msgsnd command */ | |
47 | __time_t msg_ctime; /* time of last change */ | |
48 | #endif | |
49 | __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */ | |
50 | msgqnum_t msg_qnum; /* number of messages currently on queue */ | |
51 | msglen_t msg_qbytes; /* max number of bytes allowed on queue */ | |
52 | __pid_t msg_lspid; /* pid of last msgsnd() */ | |
53 | __pid_t msg_lrpid; /* pid of last msgrcv() */ | |
54 | __syscall_ulong_t __glibc_reserved4; | |
55 | __syscall_ulong_t __glibc_reserved5; | |
56 | }; |