History log of /openbsd-current/sys/sys/msg.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.22 10-Jun-2024 jsg

Remove struct mymsg. An example from SVID, not intended for a header.
ok millert@ miod@ jca@


# 1.21 30-Apr-2024 op

add typedefs for msgqnum_t and msglen_t, required by POSIX.

improvements from kettenis and jca
ok millert, jca, guenther


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.20 16-Sep-2022 mbuhl

semctl1 and msgctl were introduced for binary compatibility for OpenBSD 3.5.
They are no longer needed.
OK bluhm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.19 23-Nov-2014 guenther

We now get <sys/cdefs.h> via <sys/ipc.h>
Only pull <sys/queue.h> into the kernel namespacem

ok deraadt@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 05-Feb-2012 guenther

Remove the extern declarations for the long-gone static msg queue
data structures

ok miod@ blambert@


# 1.17 05-Feb-2012 blambert

Fix SysV message queue identifiers.

Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com

input miod@ guenther@
ok guenther@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.16 03-Jan-2011 guenther

Remove the old COMPAT_23 SysV IPC structures and the never implemented
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into
the only source files that uses them

ok millert@, kettenis@, deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.15 09-Aug-2009 blambert

Rototill system V message queues.

No longer allocate a static amount of memory for messages in MD
boot path; message queues, message metadata, and message data now
all use dynamic memory, which means that runtime sysctls should now
be trivial to implement.

Since I'm going to be around all week to fix any breakage, this should
probably just go in now.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 16-Oct-2007 blambert

typo (naem -> name)

ok jmc@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.13 15-Jul-2004 millert

Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,
etc to avoid confusion and for consistency with the *35 ones.
Remove *n2o functions that don't belong outside of compat.


# 1.12 14-Jul-2004 millert

Because mode_t is used in struct ipc_perm we need new versions of
the msgctl, semctl, and shmctl system calls. This moves the old
versions to COMPAT_35 and adds new ones.

WARNING: While this fixes things like shared memory in the X server
for old (pre-mode_t change) binaries, it will break binaries that
use shared memory built between the time of the mode_t change (Jul
13th) and now. If you rebuild X during that interval you will need
to do it again after updating the rest of userland.


# 1.11 14-Jul-2004 millert

Move the guts of the {sem,msg,shm}ctl system calls into a new function
which also takes two function pointers for copyin/copyout. For the
real syscalls these are just the normal copyin/copyout functions.
For the compat routines, these are funtions that convert between
the new and old foo_ds structs automagically. OK deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A
# 1.10 10-Dec-2002 pvalchev

fix a typo in a comment; from Gabriel


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.9 03-Jul-2002 miod

Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.


Revision tags: OPENBSD_3_1_BASE
# 1.8 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.7 28-Sep-2001 millert

branches: 1.7.4;
sysctl() support for getting the SYSV *info structs and the associated
SYSV structs. To be used by ipcs(1). Based on work by simonb@netbsd.org


# 1.6 12-Aug-2001 millert

Don't allocate globals in include files, use extern declarations.
Move the actual variables into their respective .c files.
As a bonus, remove semmap which is not used.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
# 1.5 11-Jun-1998 deraadt

branches: 1.5.8;
do not export old structures to userland


# 1.4 11-Jun-1998 deraadt

change ipc.h to use uid_t and friends, and then build compat system calls for the old ushort based ipc.h


# 1.3 11-May-1998 deraadt

u_short -> unsigned short; const msgsnd msgp arg


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.2 03-Mar-1996 niklas

From NetBSD: 960217 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.21 30-Apr-2024 op

add typedefs for msgqnum_t and msglen_t, required by POSIX.

improvements from kettenis and jca
ok millert, jca, guenther


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.20 16-Sep-2022 mbuhl

semctl1 and msgctl were introduced for binary compatibility for OpenBSD 3.5.
They are no longer needed.
OK bluhm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.19 23-Nov-2014 guenther

We now get <sys/cdefs.h> via <sys/ipc.h>
Only pull <sys/queue.h> into the kernel namespacem

ok deraadt@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 05-Feb-2012 guenther

Remove the extern declarations for the long-gone static msg queue
data structures

ok miod@ blambert@


# 1.17 05-Feb-2012 blambert

Fix SysV message queue identifiers.

Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com

input miod@ guenther@
ok guenther@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.16 03-Jan-2011 guenther

Remove the old COMPAT_23 SysV IPC structures and the never implemented
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into
the only source files that uses them

ok millert@, kettenis@, deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.15 09-Aug-2009 blambert

Rototill system V message queues.

No longer allocate a static amount of memory for messages in MD
boot path; message queues, message metadata, and message data now
all use dynamic memory, which means that runtime sysctls should now
be trivial to implement.

Since I'm going to be around all week to fix any breakage, this should
probably just go in now.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 16-Oct-2007 blambert

typo (naem -> name)

ok jmc@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.13 15-Jul-2004 millert

Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,
etc to avoid confusion and for consistency with the *35 ones.
Remove *n2o functions that don't belong outside of compat.


# 1.12 14-Jul-2004 millert

Because mode_t is used in struct ipc_perm we need new versions of
the msgctl, semctl, and shmctl system calls. This moves the old
versions to COMPAT_35 and adds new ones.

WARNING: While this fixes things like shared memory in the X server
for old (pre-mode_t change) binaries, it will break binaries that
use shared memory built between the time of the mode_t change (Jul
13th) and now. If you rebuild X during that interval you will need
to do it again after updating the rest of userland.


# 1.11 14-Jul-2004 millert

Move the guts of the {sem,msg,shm}ctl system calls into a new function
which also takes two function pointers for copyin/copyout. For the
real syscalls these are just the normal copyin/copyout functions.
For the compat routines, these are funtions that convert between
the new and old foo_ds structs automagically. OK deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A
# 1.10 10-Dec-2002 pvalchev

fix a typo in a comment; from Gabriel


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.9 03-Jul-2002 miod

Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.


Revision tags: OPENBSD_3_1_BASE
# 1.8 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.7 28-Sep-2001 millert

branches: 1.7.4;
sysctl() support for getting the SYSV *info structs and the associated
SYSV structs. To be used by ipcs(1). Based on work by simonb@netbsd.org


# 1.6 12-Aug-2001 millert

Don't allocate globals in include files, use extern declarations.
Move the actual variables into their respective .c files.
As a bonus, remove semmap which is not used.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
# 1.5 11-Jun-1998 deraadt

branches: 1.5.8;
do not export old structures to userland


# 1.4 11-Jun-1998 deraadt

change ipc.h to use uid_t and friends, and then build compat system calls for the old ushort based ipc.h


# 1.3 11-May-1998 deraadt

u_short -> unsigned short; const msgsnd msgp arg


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.2 03-Mar-1996 niklas

From NetBSD: 960217 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.20 16-Sep-2022 mbuhl

semctl1 and msgctl were introduced for binary compatibility for OpenBSD 3.5.
They are no longer needed.
OK bluhm@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.19 23-Nov-2014 guenther

We now get <sys/cdefs.h> via <sys/ipc.h>
Only pull <sys/queue.h> into the kernel namespacem

ok deraadt@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 05-Feb-2012 guenther

Remove the extern declarations for the long-gone static msg queue
data structures

ok miod@ blambert@


# 1.17 05-Feb-2012 blambert

Fix SysV message queue identifiers.

Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com

input miod@ guenther@
ok guenther@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.16 03-Jan-2011 guenther

Remove the old COMPAT_23 SysV IPC structures and the never implemented
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into
the only source files that uses them

ok millert@, kettenis@, deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.15 09-Aug-2009 blambert

Rototill system V message queues.

No longer allocate a static amount of memory for messages in MD
boot path; message queues, message metadata, and message data now
all use dynamic memory, which means that runtime sysctls should now
be trivial to implement.

Since I'm going to be around all week to fix any breakage, this should
probably just go in now.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 16-Oct-2007 blambert

typo (naem -> name)

ok jmc@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.13 15-Jul-2004 millert

Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,
etc to avoid confusion and for consistency with the *35 ones.
Remove *n2o functions that don't belong outside of compat.


# 1.12 14-Jul-2004 millert

Because mode_t is used in struct ipc_perm we need new versions of
the msgctl, semctl, and shmctl system calls. This moves the old
versions to COMPAT_35 and adds new ones.

WARNING: While this fixes things like shared memory in the X server
for old (pre-mode_t change) binaries, it will break binaries that
use shared memory built between the time of the mode_t change (Jul
13th) and now. If you rebuild X during that interval you will need
to do it again after updating the rest of userland.


# 1.11 14-Jul-2004 millert

Move the guts of the {sem,msg,shm}ctl system calls into a new function
which also takes two function pointers for copyin/copyout. For the
real syscalls these are just the normal copyin/copyout functions.
For the compat routines, these are funtions that convert between
the new and old foo_ds structs automagically. OK deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A
# 1.10 10-Dec-2002 pvalchev

fix a typo in a comment; from Gabriel


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.9 03-Jul-2002 miod

Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.


Revision tags: OPENBSD_3_1_BASE
# 1.8 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.7 28-Sep-2001 millert

branches: 1.7.4;
sysctl() support for getting the SYSV *info structs and the associated
SYSV structs. To be used by ipcs(1). Based on work by simonb@netbsd.org


# 1.6 12-Aug-2001 millert

Don't allocate globals in include files, use extern declarations.
Move the actual variables into their respective .c files.
As a bonus, remove semmap which is not used.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
# 1.5 11-Jun-1998 deraadt

branches: 1.5.8;
do not export old structures to userland


# 1.4 11-Jun-1998 deraadt

change ipc.h to use uid_t and friends, and then build compat system calls for the old ushort based ipc.h


# 1.3 11-May-1998 deraadt

u_short -> unsigned short; const msgsnd msgp arg


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.2 03-Mar-1996 niklas

From NetBSD: 960217 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 23-Nov-2014 guenther

We now get <sys/cdefs.h> via <sys/ipc.h>
Only pull <sys/queue.h> into the kernel namespacem

ok deraadt@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 05-Feb-2012 guenther

Remove the extern declarations for the long-gone static msg queue
data structures

ok miod@ blambert@


# 1.17 05-Feb-2012 blambert

Fix SysV message queue identifiers.

Found and diagnosed by Alexis Fouilhe hyjial at gmail dot com

input miod@ guenther@
ok guenther@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.16 03-Jan-2011 guenther

Remove the old COMPAT_23 SysV IPC structures and the never implemented
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into
the only source files that uses them

ok millert@, kettenis@, deraadt@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.15 09-Aug-2009 blambert

Rototill system V message queues.

No longer allocate a static amount of memory for messages in MD
boot path; message queues, message metadata, and message data now
all use dynamic memory, which means that runtime sysctls should now
be trivial to implement.

Since I'm going to be around all week to fix any breakage, this should
probably just go in now.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 16-Oct-2007 blambert

typo (naem -> name)

ok jmc@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.13 15-Jul-2004 millert

Rename structs oipc_perm, omsqid_ds, osemid_ds, oshmid_ds to ipc_perm23,
etc to avoid confusion and for consistency with the *35 ones.
Remove *n2o functions that don't belong outside of compat.


# 1.12 14-Jul-2004 millert

Because mode_t is used in struct ipc_perm we need new versions of
the msgctl, semctl, and shmctl system calls. This moves the old
versions to COMPAT_35 and adds new ones.

WARNING: While this fixes things like shared memory in the X server
for old (pre-mode_t change) binaries, it will break binaries that
use shared memory built between the time of the mode_t change (Jul
13th) and now. If you rebuild X during that interval you will need
to do it again after updating the rest of userland.


# 1.11 14-Jul-2004 millert

Move the guts of the {sem,msg,shm}ctl system calls into a new function
which also takes two function pointers for copyin/copyout. For the
real syscalls these are just the normal copyin/copyout functions.
For the compat routines, these are funtions that convert between
the new and old foo_ds structs automagically. OK deraadt@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A
# 1.10 10-Dec-2002 pvalchev

fix a typo in a comment; from Gabriel


Revision tags: OPENBSD_3_2_BASE UBC_SYNC_B
# 1.9 03-Jul-2002 miod

Change all variables definitions (int foo) in sys/sys/*.h to variable
declarations (extern int foo), and compensate in the appropriate locations.


Revision tags: OPENBSD_3_1_BASE
# 1.8 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_3_0_BASE UBC_BASE
# 1.7 28-Sep-2001 millert

branches: 1.7.4;
sysctl() support for getting the SYSV *info structs and the associated
SYSV structs. To be used by ipcs(1). Based on work by simonb@netbsd.org


# 1.6 12-Aug-2001 millert

Don't allocate globals in include files, use extern declarations.
Move the actual variables into their respective .c files.
As a bonus, remove semmap which is not used.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE SMP_BASE kame_19991208
# 1.5 11-Jun-1998 deraadt

branches: 1.5.8;
do not export old structures to userland


# 1.4 11-Jun-1998 deraadt

change ipc.h to use uid_t and friends, and then build compat system calls for the old ushort based ipc.h


# 1.3 11-May-1998 deraadt

u_short -> unsigned short; const msgsnd msgp arg


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.2 03-Mar-1996 niklas

From NetBSD: 960217 merge


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision