Searched refs:Sfoff_t (Results 1 - 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/lib/libcmd/common/
H A Dwc.h45 Sfoff_t words;
46 Sfoff_t lines;
47 Sfoff_t chars;
48 Sfoff_t longest;
H A Dtail.c138 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 Dsftell.c30 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 Dsfsk.c29 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 Dsfsize.c29 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 Dsfmove.c34 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 Dsfseek.c30 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 Dfsetpos.c35 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 Dftell.c35 return (long)sfseek(f, (Sfoff_t)0, SEEK_CUR);
45 return (int64_t)sfseek(f, (Sfoff_t)0, SEEK_CUR);
H A Dftello.c35 return sfseek(f, (Sfoff_t)0, SEEK_CUR);
45 return sfseek(f, (Sfoff_t)0, SEEK_CUR) >= 0 ? 0 : -1;
H A Drewind.c31 sfseek(f, (Sfoff_t)0, SEEK_SET|SF_PUBLIC);
H A Dfgetpos.c35 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 Dfseek.c35 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 Dfseeko.c35 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 Dfflush.c39 sfseek(f, (Sfoff_t)0, SEEK_CUR|SF_PUBLIC);
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dsfio_t.h35 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 Dsfdisc.h77 extern __MANGLE__ Sfio_t* sfdcsubstream __PROTO__((Sfio_t*, Sfio_t*, Sfoff_t, Sfoff_t));
/illumos-gate/usr/src/lib/libast/common/include/
H A Dsfio_t.h35 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 Dsfdisc.h67 extern Sfio_t* sfdcsubstream(Sfio_t*, Sfio_t*, Sfoff_t, Sfoff_t);
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dsfio_t.h35 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 Dsfio_t.h35 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 Dsfio_t.h35 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 Dsfdcsubstr.c36 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 Dsfdcseekable.c35 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 Dsfdcdos.c35 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...]

Completed in 96 milliseconds

123