Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2002 15:31:23 -0400
From:      Hiten Pandya <hiten@uk.FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Subject:   SysV IPC related question
Message-ID:  <20020813153123.A41757@angelica.unixdaemons.com>

next in thread | raw e-mail | index | archive | help
Hi all.

I was wondering why we have a struct mymsg in <sys/msg.h>, when many
utilities defined their own version of it.  I am curious about this
because our stock version of struct mymsg:

struct mymsg {
  long mtype;		/* message type */
  char mtext[1];	/* message body */
};

Why do we have a value of [1] in the mtext array?  Are we meant to
define a struct mymsg at all!?

Thanks.
Regards.

-- 
Hiten Pandya
http://www.unixdaemons.com/~hiten
hiten@unixdaemons.com, hiten@uk.FreeBSD.org, hiten@xMach.org
PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020813153123.A41757>