9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] C question on struct Biobuf in bio.h
@ 2014-10-07 15:24 Carsten Kunze
  2014-10-07 15:35 ` Bence Fábián
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Carsten Kunze @ 2014-10-07 15:24 UTC (permalink / raw)
  To: 9fans

Hello,

in bio.h there is a

struct	Biobuf
{
	Biobufhdr;
	uchar	b[Bungetsize+Bsize];
};

where Biobufhdr is declared as

typedef	struct	Biobufhdr	Biobufhdr;

To make it compile with gcc under UNIX I changed the struct to

struct	Biobuf
{
	Biobufhdr Biobufhdr;
	uchar	b[Bungetsize+Bsize];
};

but is that what is meant by the original description above?

   Carsten



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-08 13:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07 15:24 [9fans] C question on struct Biobuf in bio.h Carsten Kunze
2014-10-07 15:35 ` Bence Fábián
2014-10-07 15:41 ` David du Colombier
2014-10-07 15:58 ` Carsten Kunze
2014-10-07 17:27   ` Álvaro Jurado
2014-10-08 13:35     ` Charles Forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).