From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1341360045.898340.1412695492957.JavaMail.ngmail@webmail12.arcor-online.net> References: <1341360045.898340.1412695492957.JavaMail.ngmail@webmail12.arcor-online.net> Date: Tue, 7 Oct 2014 17:41:38 +0200 Message-ID: From: David du Colombier <0intro@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] C question on struct Biobuf in bio.h Topicbox-Message-UUID: 18fb422c-ead9-11e9-9d60-3106f5b1d025 > in bio.h there is a > > struct Biobuf > { > Biobufhdr; > uchar b[Bungetsize+Bsize]; > }; > > where Biobufhdr is declared as > > typedef struct Biobufhdr Biobufhdr; This is an unnamed structure. Recent versions of GCC should be able to handle them when setting the -fplan9-extension flag. Otherwise, your change is fine, but "hdr" would probably be a better name than "Biobufhdr". Also, don't forget to update your code to use b->hdr.fid instead of b->fid, and so on. -- David du Colombier