1*19059Sdist /* 2*19059Sdist * Copyright (c) 1980 Regents of the University of California. 3*19059Sdist * All rights reserved. The Berkeley software License Agreement 4*19059Sdist * specifies the terms and conditions for redistribution. 5*19059Sdist * 6*19059Sdist * @(#)gettytab.h 5.1 (Berkeley) 04/29/85 7*19059Sdist */ 813793Ssam 913793Ssam /* 1013793Ssam * Getty description definitions. 1113793Ssam */ 1213793Ssam struct gettystrs { 1313793Ssam char *field; /* name to lookup in gettytab */ 1413793Ssam char *defalt; /* value we find by looking in defaults */ 1513793Ssam char *value; /* value that we find there */ 1613793Ssam }; 1713793Ssam 1813793Ssam struct gettynums { 1913793Ssam char *field; /* name to lookup */ 2013793Ssam long defalt; /* number we find in defaults */ 2113793Ssam long value; /* number we find there */ 2213793Ssam int set; /* we actually got this one */ 2313793Ssam }; 2413793Ssam 2513793Ssam struct gettyflags { 2613793Ssam char *field; /* name to lookup */ 2713793Ssam char invrt; /* name existing in gettytab --> false */ 2813793Ssam char defalt; /* true/false in defaults */ 2913793Ssam char value; /* true/false flag */ 3013793Ssam char set; /* we found it */ 3113793Ssam }; 3213793Ssam 3313793Ssam /* 3413793Ssam * String values. 3513793Ssam */ 3613793Ssam #define NX gettystrs[0].value 3713793Ssam #define CL gettystrs[1].value 3813793Ssam #define IM gettystrs[2].value 3913793Ssam #define LM gettystrs[3].value 4013793Ssam #define ER gettystrs[4].value 4113793Ssam #define KL gettystrs[5].value 4213793Ssam #define ET gettystrs[6].value 4313793Ssam #define PC gettystrs[7].value 4413793Ssam #define TT gettystrs[8].value 4513793Ssam #define EV gettystrs[9].value 4613793Ssam #define LO gettystrs[10].value 4713793Ssam #define HN gettystrs[11].value 4813793Ssam #define HE gettystrs[12].value 4913793Ssam #define IN gettystrs[13].value 5013793Ssam #define QU gettystrs[14].value 5113793Ssam #define XN gettystrs[15].value 5213793Ssam #define XF gettystrs[16].value 5313793Ssam #define BK gettystrs[17].value 5413793Ssam #define SU gettystrs[18].value 5513793Ssam #define DS gettystrs[19].value 5613793Ssam #define RP gettystrs[20].value 5713793Ssam #define FL gettystrs[21].value 5813793Ssam #define WE gettystrs[22].value 5913793Ssam #define LN gettystrs[23].value 6013793Ssam 6113793Ssam /* 6213793Ssam * Numeric definitions. 6313793Ssam */ 6413793Ssam #define IS gettynums[0].value 6513793Ssam #define OS gettynums[1].value 6613793Ssam #define SP gettynums[2].value 6713793Ssam #define ND gettynums[3].value 6813793Ssam #define CD gettynums[4].value 6913793Ssam #define TD gettynums[5].value 7013793Ssam #define FD gettynums[6].value 7113793Ssam #define BD gettynums[7].value 7213793Ssam #define TO gettynums[8].value 7313793Ssam #define F0 gettynums[9].value 7413793Ssam #define F0set gettynums[9].set 7513793Ssam #define F1 gettynums[10].value 7613793Ssam #define F1set gettynums[10].set 7713793Ssam #define F2 gettynums[11].value 7813793Ssam #define F2set gettynums[11].set 7913885Ssam #define PF gettynums[12].value 8013793Ssam 8113793Ssam /* 8213793Ssam * Boolean values. 8313793Ssam */ 8413793Ssam #define HT gettyflags[0].value 8513793Ssam #define NL gettyflags[1].value 8613793Ssam #define EP gettyflags[2].value 8713829Skre #define EPset gettyflags[2].set 8813793Ssam #define OP gettyflags[3].value 8913829Skre #define OPset gettyflags[2].set 9013793Ssam #define AP gettyflags[4].value 9113829Skre #define APset gettyflags[2].set 9213793Ssam #define EC gettyflags[5].value 9313793Ssam #define CO gettyflags[6].value 9413793Ssam #define CB gettyflags[7].value 9513793Ssam #define CK gettyflags[8].value 9613793Ssam #define CE gettyflags[9].value 9713793Ssam #define PE gettyflags[10].value 9813793Ssam #define RW gettyflags[11].value 9913793Ssam #define XC gettyflags[12].value 10013793Ssam #define LC gettyflags[13].value 10113793Ssam #define UC gettyflags[14].value 10213793Ssam #define IG gettyflags[15].value 10313793Ssam #define PS gettyflags[16].value 10413793Ssam #define HC gettyflags[17].value 10513829Skre #define UB gettyflags[18].value 10617925Sralph #define AB gettyflags[19].value 10713793Ssam 10813793Ssam int getent(); 10913793Ssam long getnum(); 11013793Ssam int getflag(); 11113793Ssam char *getstr(); 11213793Ssam 11313793Ssam extern struct gettyflags gettyflags[]; 11413793Ssam extern struct gettynums gettynums[]; 11513793Ssam extern struct gettystrs gettystrs[]; 11613793Ssam extern int hopcount; 117