/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio.h | 212 extern Sfio_t* sfstdin; 213 extern Sfio_t* sfstdout; 214 extern Sfio_t* sfstderr; 220 extern Sfio_t _Sfstdin; 230 extern Sfio_t* sfnew _ARG_((Sfio_t*, Void_t*, size_t, int, int)); 231 extern Sfio_t* sfopen _ARG_((Sfio_t*, const char*, const char*)); 232 extern Sfio_t* sfpopen _ARG_((Sfio_t*, const char*, const char*)); 233 extern Sfio_t* sfstack _ARG_((Sfio_t*, Sfio_t*)); 234 extern Sfio_t* sfswap _ARG_((Sfio_t*, Sfio_t*)); 249 extern Sfio_t* sfpool _ARG_((Sfio_t*, Sfio_t*, int)); [all …]
|
H A D | sfdisc.h | 49 extern int sfkeyprintf(Sfio_t*, void*, const char*, Sf_key_lookup_t, Sf_key_convert_t); 56 extern int sfdcdio(Sfio_t*, size_t); 57 extern int sfdcdos(Sfio_t*); 58 extern int sfdcfilter(Sfio_t*, const char*); 59 extern int sfdcmore(Sfio_t*, const char*, int, int); 60 extern int sfdcprefix(Sfio_t*, const char*); 61 extern int sfdcseekable(Sfio_t*); 62 extern int sfdcslow(Sfio_t*); 63 extern int sfdctee(Sfio_t*, Sfio_t*); 64 extern int sfdcunion(Sfio_t*, Sfio_t**, int); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfextern.c | 45 NIL(Sfio_t*(*)_ARG_((Sfio_t*, Sfio_t*))), /* _Sfstack */ 78 Sfio_t _Sfstdin = SFNEW(NIL(char*),-1,0, 89 Sfio_t* sfstdin = &_Sfstdin; 90 Sfio_t* sfstdout = &_Sfstdout; 91 Sfio_t* sfstderr = &_Sfstderr; 94 __EXTERN__(Sfio_t,_Sfstdin); 95 __EXTERN__(Sfio_t,_Sfstdout); 96 __EXTERN__(Sfio_t,_Sfstderr); 97 __EXTERN__(Sfio_t*,sfstdin); 98 __EXTERN__(Sfio_t*,sfstdout); [all …]
|
H A D | sfswap.c | 33 Sfio_t* sfswap(reg Sfio_t* f1, reg Sfio_t* f2) in sfswap() 35 Sfio_t* sfswap(f1,f2) in sfswap() 36 reg Sfio_t* f1; in sfswap() 37 reg Sfio_t* f2; 40 Sfio_t tmp; 44 return NIL(Sfio_t*); 46 return NIL(Sfio_t*); 62 f1->file == 2 ? sfstderr : NIL(Sfio_t*); 64 { if(!(f2 = (Sfio_t*)malloc(sizeof(Sfio_t))) ) 67 return NIL(Sfio_t*); [all …]
|
H A D | sfnew.c | 32 Sfio_t* sfnew(Sfio_t* oldf, Void_t* buf, size_t size, int file, int flags) in sfnew() 34 Sfio_t* sfnew(oldf,buf,size,file,flags) in sfnew() 42 reg Sfio_t* f; 48 return NIL(Sfio_t*); 56 oldf = NIL(Sfio_t*); 61 return NIL(Sfio_t*); 63 oldf = NIL(Sfio_t*); 71 return NIL(Sfio_t*); 92 else f = NIL(Sfio_t*); 97 { if(!(f = (Sfio_t*)malloc(sizeof(Sfio_t))) ) [all …]
|
H A D | sfstack.c | 41 Sfio_t* sfstack(Sfio_t* f1, Sfio_t* f2) in sfstack() 43 Sfio_t* sfstack(f1,f2) in sfstack() 44 Sfio_t* f1; /* base of stack */ in sfstack() 45 Sfio_t* f2; /* top of stack */ 49 reg Sfio_t* rf; 56 STKMTXRETURN(f1,f2, NIL(Sfio_t*)); 58 STKMTXRETURN(f1,f2, NIL(Sfio_t*)); 67 STKMTXRETURN(f1,f2, NIL(Sfio_t*)); 72 STKMTXRETURN(f1,f2, NIL(Sfio_t*)); 107 f2->push = NIL(Sfio_t*);
|
H A D | sfpool.c | 107 reg Sfio_t* head; 223 reg Sfio_t* f; in _sfpmove() 246 Sfio_t* sfpool(reg Sfio_t* f, reg Sfio_t* pf, reg int mode) in sfpool() 248 Sfio_t* sfpool(f,pf,mode) in sfpool() 249 reg Sfio_t* f; in sfpool() 250 reg Sfio_t* pf; 256 Sfio_t* rv; 262 return NIL(Sfio_t*); 272 return NIL(Sfio_t*); 283 return NIL(Sfio_t*); [all …]
|
H A D | sftmp.c | 59 Sfio_t* f; in _tmprmfile() 122 Sfio_t* f; in _rmtmp() 203 Sfio_t* f; in _tmpfd() 288 Sfio_t* f; in _tmpexcept() 295 reg Sfio_t* sf; 296 Sfio_t newf, savf; 374 Sfio_t* sftmp(size_t s) in sftmp() 376 Sfio_t* sftmp(s) in sftmp() 380 Sfio_t *f; 397 return NIL(Sfio_t*); [all …]
|
H A D | sfopen.c | 28 extern Sfio_t* _sfopen _ARG_((Sfio_t*, const char*, const char*)); 31 Sfio_t* sfopen(Sfio_t* f, const char* file, const char* mode) in sfopen() 33 Sfio_t* sfopen(f,file,mode) in sfopen() 34 Sfio_t* f; /* old stream structure */ in sfopen()
|
H A D | sfungetc.c | 29 static int _uexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) in _uexcept() 32 Sfio_t *f; in _uexcept() 46 (void)sfclose((*_Sfstack)(f,NIL(Sfio_t*))); 52 int sfungetc(Sfio_t* f, int c) in sfungetc() 55 Sfio_t* f; /* push back one byte to this stream */ in sfungetc() 59 reg Sfio_t* uf; 76 { if(!(uf = sfnew(NIL(Sfio_t*),NIL(char*),(size_t)SF_UNBOUND,
|
H A D | _sfopen.c | 38 Sfio_t* _sfopen(Sfio_t* f, const char* file, const char* mode) in _sfopen() 40 Sfio_t* _sfopen(f,file,mode) in _sfopen() 41 Sfio_t* f; /* old stream structure */ in _sfopen() 51 return NIL(Sfio_t*); 55 { SFMTXENTER(f, NIL(Sfio_t*)); 74 SFMTXRETURN(f,NIL(Sfio_t*)); 100 return NIL(Sfio_t*); 111 return NIL(Sfio_t*); 134 return NIL(Sfio_t*);
|
H A D | sfpopen.c | 134 Sfio_t* sfpopen(Sfio_t* f, const char* command, const char* mode) in sfpopen() 136 Sfio_t* sfpopen(f,command,mode) in sfpopen() 137 Sfio_t* f; in sfpopen() 153 if(f == (Sfio_t*)(-1)) 155 f = NIL(Sfio_t*); 184 Sfio_t sf; 198 return NIL(Sfio_t*); 217 if(f == (Sfio_t*)(-1)) 219 f = NIL(Sfio_t*); 282 return NIL(Sfio_t*); [all …]
|
H A D | sfmode.c | 71 reg Sfio_t* f; in _sfcleanup() 80 sfsync(NIL(Sfio_t*)); in _sfcleanup() 115 int _sfsetpool(Sfio_t* f) in _sfsetpool() 118 Sfio_t* f; in _sfsetpool() 122 reg Sfio_t** array; 144 if(!(array = (Sfio_t**)malloc(n*sizeof(Sfio_t*))) ) 172 reg Sfio_t* f; in _sfrsrv() 217 reg Sfio_t* f; in _sfpopen() 254 int _sfpclose(reg Sfio_t* f) in _sfpclose() 257 reg Sfio_t* f; /* stream to close */ in _sfpclose() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/ |
H A D | stdio_c99.c | 31 clearerr_unlocked(Sfio_t* sp) in clearerr_unlocked() 37 feof_unlocked(Sfio_t* sp) in feof_unlocked() 43 ferror_unlocked(Sfio_t* sp) in ferror_unlocked() 49 fflush_unlocked(Sfio_t* sp) in fflush_unlocked() 55 fgetc_unlocked(Sfio_t* sp) in fgetc_unlocked() 61 fgets_unlocked(char* buf, int size, Sfio_t* sp) in fgets_unlocked() 67 fileno_unlocked(Sfio_t* sp) in fileno_unlocked() 73 fputc_unlocked(int c, Sfio_t* sp) in fputc_unlocked() 79 fputs_unlocked(char* buf, Sfio_t* sp) in fputs_unlocked() 97 getc_unlocked(Sfio_t* sp) in getc_unlocked() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | sfstr.h | 47 extern int sfclose(Sfio_t*); 48 extern int sfprintf(Sfio_t*, const char*, ...); 50 extern int sfputc(Sfio_t*, int); 51 extern int sfputr(Sfio_t*, const char*, int); 52 extern char* sfstrbase(Sfio_t*); 53 extern Sfio_t* sfstropen(void); 54 extern char* sfstrseek(Sfio_t*, int, int); 55 extern char* sfstrset(Sfio_t*, int); 56 extern int sfstrtell(Sfio_t*); 57 extern char* sfstruse(Sfio_t*); [all …]
|
H A D | sfstr.c | 48 sfclose(Sfio_t* f) in sfclose() 64 sfprintf(Sfio_t* f, const char* fmt, ...) in sfprintf() 97 sfputc(Sfio_t* f, int c) in sfputc() 142 sfstrbase(Sfio_t* f) in sfstrbase() 151 Sfio_t* 166 return (Sfio_t*)p; in sfstropen() 186 sfstrseek(Sfio_t* f, int n, int w) in sfstrseek() 196 sfstrset(Sfio_t* f, int n) in sfstrset() 206 sfstrtell(Sfio_t* f) in sfstrtell() 219 sfstruse(Sfio_t* f) in sfstruse() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 35 Sfio_t* parent; /* parent stream */ 45 Sfio_t* f; in streamio() 89 Sfio_t* f; in streamwrite() 102 Sfio_t* f; in streamread() 115 Sfio_t* f; in streamseek() 160 Sfio_t* f; in streamexcept() 172 Sfio_t* sfdcsubstream(Sfio_t* f, Sfio_t* parent, Sfoff_t offset, Sfoff_t extent) in sfdcsubstream() 174 Sfio_t* sfdcsubstream(f, parent, offset, extent) in sfdcsubstream() 175 Sfio_t* f; /* stream */ in sfdcsubstream() 176 Sfio_t* parent; /* parent stream */ [all …]
|
H A D | sfdcfilter.c | 32 Sfio_t* filter; /* the filter stream */ 40 static ssize_t filterread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) in filterread() 43 Sfio_t* f; /* stream reading from */ in filterread() 104 Sfio_t* f; /* stream writing to */ in filterwrite() 118 Sfio_t* f; in filterseek() 123 { f = NIL(Sfio_t*); 135 Sfio_t* f; in filterexcept() 150 int sfdcfilter(Sfio_t* f, const char* cmd) in sfdcfilter() 153 Sfio_t* f; /* stream to filter data */ in sfdcfilter() 158 reg Sfio_t* filter; [all …]
|
H A D | sfdctee.c | 34 Sfio_t* tee; /* the stream to tee to */ 40 static ssize_t teewrite(Sfio_t* f, const Void_t* buf, size_t size, Sfdisc_t* disc) in teewrite() 43 Sfio_t* f; /* the stream being written to */ in teewrite() 61 static int teeexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in teeexcept() 64 Sfio_t* f; in teeexcept() 77 int sfdctee(Sfio_t* f, Sfio_t* tee) in sfdctee() 80 Sfio_t* f; /* stream to tee from */ in sfdctee() 81 Sfio_t* tee; /* stream to tee to */
|
H A D | sfdcseekable.c | 34 Sfio_t* shadow; /* to shadow data */ 44 Sfio_t* f; /* stream involved */ in skwrite() 54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) in skread() 57 Sfio_t* f; /* stream involved */ in skread() 64 Sfio_t* sf; 105 Sfio_t* f; in skseek() 112 Sfio_t* sf; 164 static int skexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in skexcept() 167 Sfio_t* f; in skexcept() 195 int sfdcseekable(Sfio_t* f) in sfdcseekable() [all …]
|
H A D | sfdcunion.c | 34 { Sfio_t* f; /* the stream */ 52 Sfio_t* f; /* stream involved */ in unwrite() 62 static ssize_t unread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) in unread() 65 Sfio_t* f; /* stream involved */ in unread() 95 static Sfoff_t unseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) in unseek() 98 Sfio_t* f; in unseek() 148 static int unexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in unexcept() 151 Sfio_t* f; in unexcept() 164 int sfdcunion(Sfio_t* f, Sfio_t** array, int n) in sfdcunion() 167 Sfio_t* f; in sfdcunion() [all …]
|
H A D | sfdcmore.c | 42 Sfio_t* input; /* tied with this input stream */ 43 Sfio_t* error; /* tied with this error stream */ 59 static ssize_t moreread(Sfio_t* f, void* buf, size_t n, Sfdisc_t* dp) in moreread() 62 Sfio_t* f; in moreread() 82 static int ttyquery(Sfio_t* rp, Sfio_t* wp, const char* label, Sfdisc_t* dp) in ttyquery() 85 Sfio_t* rp; in ttyquery() 86 Sfio_t* wp; 150 Sfio_t* f; in morewrite() 263 Sfio_t* f; in moreexcept() 303 int sfdcmore(Sfio_t* f, const char* prompt, int rows, int cols) in sfdcmore() [all …]
|
H A D | sfdcdio.c | 46 static ssize_t diordwr(Sfio_t* f, Void_t* buf, size_t n, Direct_t* di, int type) in diordwr() 49 Sfio_t* f; in diordwr() 105 static ssize_t dioread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) in dioread() 108 Sfio_t* f; in dioread() 118 static ssize_t diowrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in diowrite() 121 Sfio_t* f; in diowrite() 131 static int dioexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in dioexcept() 134 Sfio_t* f; in dioexcept() 157 int sfdcdio(Sfio_t* f, size_t bufsize) in sfdcdio() 160 Sfio_t* f; in sfdcdio()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stk.c | 66 __EXTERN__(Sfio_t, _Stak_data); 137 register Sfio_t *sp; in stkinit() 192 Sfio_t *old = 0; in stkexcept() 213 Sfio_t *stkopen(int flags) in stkopen() 216 register Sfio_t *stream; in stkopen() 253 return((Sfio_t*)0); in stkopen() 263 Sfio_t *stkinstall(Sfio_t *stream, _stk_overflow_ oflow) in stkinstall() 265 Sfio_t *old; in stkinstall() 272 return((Sfio_t*)0); in stkinstall() 297 int stklink(register Sfio_t* stream) in stklink() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astdynamic.c | 39 extern Sfio_t _Sfstdin; 40 extern Sfio_t _Sfstdout; 41 extern Sfio_t _Sfstderr; 66 Sfio_t* sp; in _ast_libinit() 68 sp = (Sfio_t*)in; in _ast_libinit() 71 sp = (Sfio_t*)out; in _ast_libinit() 74 sp = (Sfio_t*)err; in _ast_libinit()
|