/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | wc.h | 45 Sfoff_t words; 46 Sfoff_t lines; 47 Sfoff_t chars; 48 Sfoff_t longest;
|
H A D | tail.c | 138 Sfoff_t cur; 139 Sfoff_t end; 153 static Sfoff_t 154 tailpos(register Sfio_t* fp, register Sfoff_t number, int delim) 157 register Sfoff_t offset; 158 register Sfoff_t first; 159 register Sfoff_t last; 165 if ((first = sfseek(fp, (Sfoff_t)0, SEEK_CUR)) < 0) 201 pipetail(Sfio_t* infile, Sfio_t* outfile, Sfoff_t number, int delim) 204 register Sfoff_t [all...] |
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sftell.c | 30 Sfoff_t sftell(Sfio_t* f) 32 Sfoff_t sftell(f) 37 Sfoff_t p; 40 SFMTXENTER(f, (Sfoff_t)(-1)); 44 SFMTXRETURN(f, (Sfoff_t)(-1)); 51 SFMTXRETURN(f, (Sfoff_t)(f->next-f->data)); 55 p = sfseek(f,(Sfoff_t)0,SEEK_CUR);
|
H A D | sfsk.c | 29 Sfoff_t sfsk(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) 31 Sfoff_t sfsk(f,addr,type,disc) 33 Sfoff_t addr; 38 Sfoff_t p; 44 SFMTXENTER(f, (Sfoff_t)(-1)); 49 SFMTXRETURN(f, (Sfoff_t)(-1)); 51 SFMTXRETURN(f, (Sfoff_t)(-1)); 62 SFMTXRETURN(f, (Sfoff_t)(-1)); 94 SFMTXRETURN(f, (Sfoff_t) [all...] |
H A D | sfsize.c | 29 Sfoff_t sfsize(Sfio_t* f) 31 Sfoff_t sfsize(f) 37 Sfoff_t s; 40 SFMTXENTER(f, (Sfoff_t)(-1)); 43 SFMTXRETURN(f, (Sfoff_t)(-1)); 60 { Sfoff_t e; 64 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc); 72 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc); 78 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,f->disc);
|
H A D | sfmove.c | 34 Sfoff_t sfmove(Sfio_t* fr, Sfio_t* fw, Sfoff_t n, reg int rc) 36 Sfoff_t sfmove(fr,fw,n,rc) 39 Sfoff_t n; /* number of bytes/records to move. <0 for unbounded move */ 47 Sfoff_t n_move, sk, cur; 53 SFMTXENTER(fr, (Sfoff_t)0); 55 SFMTXBEGIN2(fw, (Sfoff_t)0); 66 (void)SFSEEK(fr,(Sfoff_t)(-r),SEEK_CUR); 68 (void)SFSEEK(fw,(Sfoff_t)(-w),SEEK_CUR); 97 else if((cur = SFSEEK(fr, (Sfoff_t) [all...] |
H A D | sfseek.c | 30 static void newpos(Sfio_t* f, Sfoff_t p) 34 Sfoff_t p; 52 Sfoff_t sfseek(Sfio_t* f, Sfoff_t p, int type) 54 Sfoff_t sfseek(f,p,type) 56 Sfoff_t p; /* place to seek to */ 60 Sfoff_t r, s; 64 SFMTXENTER(f, (Sfoff_t)(-1)); 86 SFMTXRETURN(f, (Sfoff_t)(-1)); 96 SFMTXRETURN(f, (Sfoff_t)( [all...] |
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | fsetpos.c | 35 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1; 45 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
|
H A D | ftell.c | 35 return (long)sfseek(f, (Sfoff_t)0, SEEK_CUR); 45 return (int64_t)sfseek(f, (Sfoff_t)0, SEEK_CUR);
|
H A D | ftello.c | 35 return sfseek(f, (Sfoff_t)0, SEEK_CUR); 45 return sfseek(f, (Sfoff_t)0, SEEK_CUR) >= 0 ? 0 : -1;
|
H A D | rewind.c | 31 sfseek(f, (Sfoff_t)0, SEEK_SET|SF_PUBLIC);
|
H A D | fgetpos.c | 35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1; 45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
|
H A D | fseek.c | 35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; 45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
|
H A D | fseeko.c | 35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1; 45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
|
H A D | fflush.c | 39 sfseek(f, (Sfoff_t)0, SEEK_CUR|SF_PUBLIC);
|
/illumos-gate/usr/src/lib/libast/amd64/include/ast/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 36 Sfoff_t here; /* current physical location */ \ 47 Sfoff_t lpos; /* last seek position */ \ 76 (Sfoff_t)0, /* extent */ \ 77 (Sfoff_t)0, /* here */ \ 88 (Sfoff_t)0, /* lpos */ \ 104 (f)->extent = (Sfoff_t)(-1), /* extent */ \ 105 (f)->here = (Sfoff_t)0, /* here */ \ 116 (f)->lpos = (Sfoff_t)0, /* lpos */ \
|
H A D | sfdisc.h | 77 extern __MANGLE__ Sfio_t* sfdcsubstream __PROTO__((Sfio_t*, Sfio_t*, Sfoff_t, Sfoff_t));
|
/illumos-gate/usr/src/lib/libast/common/include/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 36 Sfoff_t here; /* current physical location */ \ 47 Sfoff_t lpos; /* last seek position */ \ 76 (Sfoff_t)0, /* extent */ \ 77 (Sfoff_t)0, /* here */ \ 88 (Sfoff_t)0, /* lpos */ \ 104 (f)->extent = (Sfoff_t)(-1), /* extent */ \ 105 (f)->here = (Sfoff_t)0, /* here */ \ 116 (f)->lpos = (Sfoff_t)0, /* lpos */ \
|
H A D | sfdisc.h | 67 extern Sfio_t* sfdcsubstream(Sfio_t*, Sfio_t*, Sfoff_t, Sfoff_t);
|
/illumos-gate/usr/src/lib/libast/i386/include/ast/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 36 Sfoff_t here; /* current physical location */ \ 47 Sfoff_t lpos; /* last seek position */ \ 76 (Sfoff_t)0, /* extent */ \ 77 (Sfoff_t)0, /* here */ \ 88 (Sfoff_t)0, /* lpos */ \ 104 (f)->extent = (Sfoff_t)(-1), /* extent */ \ 105 (f)->here = (Sfoff_t)0, /* here */ \ 116 (f)->lpos = (Sfoff_t)0, /* lpos */ \
|
/illumos-gate/usr/src/lib/libast/sparc/include/ast/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 36 Sfoff_t here; /* current physical location */ \ 47 Sfoff_t lpos; /* last seek position */ \ 76 (Sfoff_t)0, /* extent */ \ 77 (Sfoff_t)0, /* here */ \ 88 (Sfoff_t)0, /* lpos */ \ 104 (f)->extent = (Sfoff_t)(-1), /* extent */ \ 105 (f)->here = (Sfoff_t)0, /* here */ \ 116 (f)->lpos = (Sfoff_t)0, /* lpos */ \
|
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 36 Sfoff_t here; /* current physical location */ \ 47 Sfoff_t lpos; /* last seek position */ \ 76 (Sfoff_t)0, /* extent */ \ 77 (Sfoff_t)0, /* here */ \ 88 (Sfoff_t)0, /* lpos */ \ 104 (f)->extent = (Sfoff_t)(-1), /* extent */ \ 105 (f)->here = (Sfoff_t)0, /* here */ \ 116 (f)->lpos = (Sfoff_t)0, /* lpos */ \
|
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcsubstr.c | 36 Sfoff_t offset; /* starting offset */ 37 Sfoff_t extent; /* size wanted */ 38 Sfoff_t here; /* current seek location */ 53 reg Sfoff_t here, parent; 65 parent = sfsk(f,(Sfoff_t)0,SEEK_CUR,disc); 112 static Sfoff_t streamseek(Sfio_t* f, Sfoff_t pos, int type, Sfdisc_t* disc) 114 static Sfoff_t streamseek(f, pos, type, disc) 116 Sfoff_t pos; 122 reg Sfoff_t her [all...] |
H A D | sfdcseekable.c | 35 Sfoff_t discard;/* sfseek(f,-1,SEEK_SET) discarded data */ 36 Sfoff_t extent; /* shadow extent */ 65 Sfoff_t addr; 73 addr = sfseek(sf,(Sfoff_t)0,SEEK_CUR); 102 static Sfoff_t skseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) 104 static Sfoff_t skseek(f, addr, type, disc) 106 Sfoff_t addr; 135 return (Sfoff_t)(-1); 138 return (Sfoff_t)( [all...] |
H A D | sfdcdos.c | 35 Sfoff_t logical; 36 Sfoff_t physical; 45 Sfoff_t lhere; 46 Sfoff_t llast; 47 Sfoff_t lmax; 48 Sfoff_t pmax; 49 Sfoff_t phere; 50 Sfoff_t plast; 51 Sfoff_t begin; 83 static struct map *getmapping(Dosdisc_t *dp, Sfoff_t offse [all...] |