Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/stand.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
/* where values for lseek(2) */ | /* where values for lseek(2) */ | ||||
#define SEEK_SET 0 /* set file offset to offset */ | #define SEEK_SET 0 /* set file offset to offset */ | ||||
#define SEEK_CUR 1 /* set file offset to current plus offset */ | #define SEEK_CUR 1 /* set file offset to current plus offset */ | ||||
#define SEEK_END 2 /* set file offset to EOF plus offset */ | #define SEEK_END 2 /* set file offset to EOF plus offset */ | ||||
/* | /* | ||||
* Device switch | * Device switch | ||||
*/ | */ | ||||
#define DEV_NAMLEN 8 /* Length of name of device class */ | |||||
struct devsw { | struct devsw { | ||||
const char dv_name[8]; | const char dv_name[DEV_NAMLEN]; | ||||
int dv_type; /* opaque type constant, arch-dependant */ | int dv_type; /* opaque type constant, arch-dependant */ | ||||
#define DEVT_NONE 0 | #define DEVT_NONE 0 | ||||
#define DEVT_DISK 1 | #define DEVT_DISK 1 | ||||
#define DEVT_NET 2 | #define DEVT_NET 2 | ||||
#define DEVT_CD 3 | #define DEVT_CD 3 | ||||
#define DEVT_ZFS 4 | #define DEVT_ZFS 4 | ||||
#define DEVT_FD 5 | #define DEVT_FD 5 | ||||
int (*dv_init)(void); /* early probe call */ | int (*dv_init)(void); /* early probe call */ | ||||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |