]>
Commit | Line | Data |
---|---|---|
915b9fe3 | 1 | /* Linux/SPARC 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 | |
3283f711 | 29 | unsigned long int __msg_stime_high; |
915b9fe3 | 30 | __time_t msg_stime; /* time of last msgsnd command */ |
3283f711 | 31 | unsigned long int __msg_rtime_high; |
915b9fe3 | 32 | __time_t msg_rtime; /* time of last msgsnd command */ |
3283f711 | 33 | unsigned long int __msg_ctime_high; |
915b9fe3 AZ |
34 | __time_t msg_ctime; /* time of last change */ |
35 | #else | |
36 | __time_t msg_stime; /* time of last msgsnd command */ | |
37 | __time_t msg_rtime; /* time of last msgsnd command */ | |
38 | __time_t msg_ctime; /* time of last change */ | |
39 | #endif | |
40 | __syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */ | |
41 | msgqnum_t msg_qnum; /* number of messages currently on queue */ | |
42 | msglen_t msg_qbytes; /* max number of bytes allowed on queue */ | |
43 | __pid_t msg_lspid; /* pid of last msgsnd() */ | |
44 | __pid_t msg_lrpid; /* pid of last msgrcv() */ | |
45 | __syscall_ulong_t __glibc_reserved4; | |
46 | __syscall_ulong_t __glibc_reserved5; | |
47 | }; |