summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorOmar Polo <op@cvs.openbsd.org>2024-04-30 17:03:15 +0000
committerOmar Polo <op@cvs.openbsd.org>2024-04-30 17:03:15 +0000
commitbce70cc3c36a56f0624b2c84108175b554de8776 (patch)
tree037659a097705af7e08bbc7fa6e6e3d7d79bd443 /lib/libc
parent0c027c0540e465b7079531efbe825153f9234451 (diff)
add typedefs for msgqnum_t and msglen_t, required by POSIX.
improvements from kettenis and jca ok millert, jca, guenther
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/msgctl.210
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/sys/msgctl.2 b/lib/libc/sys/msgctl.2
index f14360ea504..f041c78de0b 100644
--- a/lib/libc/sys/msgctl.2
+++ b/lib/libc/sys/msgctl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msgctl.2,v 1.18 2019/07/18 13:32:40 schwarze Exp $
+.\" $OpenBSD: msgctl.2,v 1.19 2024/04/30 17:03:14 op Exp $
.\" $NetBSD: msgctl.2,v 1.2 1997/03/27 08:20:35 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
@@ -30,7 +30,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"/
-.Dd $Mdocdate: July 18 2019 $
+.Dd $Mdocdate: April 30 2024 $
.Dt MSGCTL 2
.Os
.Sh NAME
@@ -58,9 +58,9 @@ and contains (amongst others) the following members:
.Bd -literal
struct msqid_ds {
struct ipc_perm msg_perm; /* msg queue permission bits */
- u_long msg_cbytes; /* # of bytes in use on the queue */
- u_long msg_qnum; /* # of msgs in the queue */
- u_long msg_qbytes; /* max # of bytes on the queue */
+ msglen_t msg_cbytes; /* # of bytes in use on the queue */
+ msgqnum_t msg_qnum; /* # of msgs in the queue */
+ msglen_t 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() */