From owner-freebsd-hackers Tue Aug 13 12:31:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0515137B400 for ; Tue, 13 Aug 2002 12:31:39 -0700 (PDT) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id B505C43E4A for ; Tue, 13 Aug 2002 12:31:37 -0700 (PDT) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.5/8.12.1) with ESMTP id g7DJVQWr042325 for ; Tue, 13 Aug 2002 15:31:26 -0400 (EDT) X-Authentication-Warning: angelica.unixdaemons.com: Host hiten@localhost.unixdaemons.com [127.0.0.1] claimed to be angelica.unixdaemons.com Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.5/8.12.1/Submit) id g7DJVNXf042316 for freebsd-hackers@FreeBSD.org; Tue, 13 Aug 2002 15:31:23 -0400 (EDT) (envelope-from hiten) Date: Tue, 13 Aug 2002 15:31:23 -0400 From: Hiten Pandya To: freebsd-hackers@FreeBSD.org Subject: SysV IPC related question Message-ID: <20020813153123.A41757@angelica.unixdaemons.com> Reply-To: hiten@uk.FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all. I was wondering why we have a struct mymsg in , 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