qemu-*-static struct target_msgbuf is greatly mismatched with /usr/include/sys/msgbuf.h 's struct msgbuf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

qemu-*-static struct target_msgbuf is greatly mismatched with /usr/include/sys/msgbuf.h 's struct msgbuf

freebsd-emulation mailing list
[The context here is FreeBSD head -r341836 based and ports head -r488859 based.]

/usr/include/sys/msgbuf.h has:

struct msgbuf {
        char       *msg_ptr;            /* pointer to buffer */
#define MSG_MAGIC       0x063062
        u_int      msg_magic;
        u_int      msg_size;            /* size of buffer area */
        u_int      msg_wseq;            /* write sequence number */
        u_int      msg_rseq;            /* read sequence number */
        u_int      msg_cksum;           /* checksum of contents */
        u_int      msg_seqmod;          /* range for sequence numbers */
        int        msg_lastpri;         /* saved priority value */
        u_int      msg_flags;
#define MSGBUF_NEEDNL   0x01    /* set when newline needed */
        struct mtx msg_lock;            /* mutex to protect the buffer */
};

/wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/bsd-user/syscall_defs.h
has:

struct target_msgbuf {
    abi_long    mtype;      /* message type */
    char        mtext[1];   /* body of message */
};

I'm guessing here that target_msgbuf is not meant to be a match to
msgbuf . Either way, there is no point in comparing sizes or field
offsets as things are now.


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"