[comp.unix.wizards] C \"quad\" declaration

eichelbe@nadc.arpa (12/05/86)

I am running 4.1 BSD UNIX on a VAX 11/780 and have the vanilla C compiler
that comes with that system.  A piece of source code I got from another
site (the author is no longer there) has a declaration of "quad" for
a variable.  The first few lines of a structure are:
struct rcthdr {
   quad rct_serialno;   /* volume serial number */
   short rct_status;    /* status flags */

Thus, it looks like "quad" means an 8-byte piece of memory (INTEGER*8 ???).

Is there any way to create such a beast by using some sort of #DEFINE or
typedef definition?  I'm only assuming that "quad" means 8 bytes, but if it
does it is consistent with VAX/VMS assembly language.  I just don't know
how to represent such a thing with my present C compiler.

Any ideas?  Thank you.

		Jon Eichelberger
		eichelbe@NADC.ARPA
P.S. I could create an array of 2 long int's, but the usage of the variable
in the code would probably not be right.  I was hoping not to screw with the
code too much.
P.P.S.  I am not on the "C" interest group list.  Anyone know the group's
name?  Thanks.

lkc@hpirs.HP (Lee Casuto) (12/16/86)

quad is defined in <sys/types.h> and is indeed two longs.

Lee Casuto
Mail: ...ucbvax!hpda!lkc