Searched refs:getbyte (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | pc_label.h | 110 #define getbyte(A, N) (((unsigned char *)(&(A)))[N]) 111 #define ltohs(S) ((getbyte(S, 1) << 8) | getbyte(S, 0)) 112 #define ltohi(I) ((getbyte(I, 3) << 24) | (getbyte(I, 2) << 16) | \ 113 (getbyte(I, 1) << 8) | getbyte(I, 0)) 114 #define htols(S) ((getbyte(S, 1) << 8) | getbyte(S, 0)) 115 #define htoli(I) ((getbyte(I, 3) << 24) | (getbyte(I, 2) << 16) | \ 116 (getbyte(I, 1) << 8) | getbyte(I, 0))
|
/illumos-gate/usr/src/cmd/format/ |
H A D | menu_fdisk.c | 93 static int getbyte(uchar_t **); 104 static int getbyte(); 130 partp->bootid = getbyte((uchar_t **)&bootptr); in fill_ipart() 131 partp->beghead = getbyte((uchar_t **)&bootptr); in fill_ipart() 132 partp->begsect = getbyte((uchar_t **)&bootptr); in fill_ipart() 133 partp->begcyl = getbyte((uchar_t **)&bootptr); in fill_ipart() 134 partp->systid = getbyte((uchar_t **)&bootptr); in fill_ipart() 135 partp->endhead = getbyte((uchar_t **)&bootptr); in fill_ipart() 136 partp->endsect = getbyte((uchar_t **)&bootptr); in fill_ipart() 137 partp->endcyl = getbyte((uchar_t **)&bootptr); in fill_ipart() [all …]
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 666 uchar_t getbyte(char **bp); 3986 partp->bootid = getbyte(&bootptr); 3987 partp->beghead = getbyte(&bootptr); 3988 partp->begsect = getbyte(&bootptr); 3989 partp->begcyl = getbyte(&bootptr); 3990 partp->systid = getbyte(&bootptr); 3991 partp->endhead = getbyte(&bootptr); 3992 partp->endsect = getbyte(&bootptr); 3993 partp->endcyl = getbyte(&bootptr); 4007 getbyte(char **bp) function
|
/illumos-gate/usr/src/cmd/fdformat/ |
H A D | fdformat.c | 59 #define getbyte(A, N) (((unsigned char *)(&(A)))[N]) macro 60 #define htols(S) ((getbyte(S, 1) <<8) | getbyte(S, 0))
|