On Tue, Feb 24, 2026 at 8:32 AM Gleb Popov <arrowd@freebsd.org> wrote:
> On Tue, Feb 24, 2026 at 5:42 PM Warner Losh <imp@bsdimp.com> wrote:
> >
> > +
> > +/*
> > + * sys/msg.h
> > + */
> > +struct target_msqid_ds {
> > + struct target_ipc_perm msg_perm; /* msg queue permission bits */
> > + abi_ptr msg_first; /* first message in the queue */
> > + abi_ptr msg_last; /* last message in the queue */
> > + abi_ulong msg_cbytes; /* # of bytes in use on the queue */
> > + abi_ulong msg_qnum; /* number of msgs in the queue */
> > + abi_ulong msg_qbytes; /* max # of bytes on the queue */
> > + int32_t msg_lspid; /* pid of last msgsnd() */
> > + int32_t msg_lrpid; /* pid of last msgrcv() */
> > + target_time_t msg_stime; /* time of last msgsnd() */
> > + target_time_t msg_rtime; /* time of last msgrcv() */
> > + target_time_t msg_ctime; /* time of last msgctl() */
> > +};
> > +
> > +struct target_msgbuf {
>
> You might want to put
>
> /*
> * sys/msgbuf.h
> */
>
> before the struct target_msgbuf definition, just like it is done for
> struct target_msqid_ds
>
good catch. This was missing in bsd-user's blitz branch, but I'll add it
there too. Since it's trivial, I'm not going to resend unless I need a v5.
Warner