/titanic_44/usr/src/lib/libast/amd64/include/ast/ |
H A D | sfio.h | 32 typedef struct _sfio_s Sfio_t; typedef 47 typedef ssize_t (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*)); 48 typedef ssize_t (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*)); 49 typedef Sfoff_t (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*)); 50 typedef int (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*)); 51 typedef int (*Sfwalk_f)_ARG_((Sfio_t*, Void_t*)); 66 typedef int (*Sffmtext_f)_ARG_((Sfio_t*, Void_t*, Sffmt_t*)); 67 typedef int (*Sffmtevent_f)_ARG_((Sfio_t*, int, Void_t*, Sffmt_t*)); 179 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */ 212 extern Sfio_t* sfstdin; [all …]
|
H A D | sfdisc.h | 59 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 61 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 67 extern __MANGLE__ int sfdcdio __PROTO__((Sfio_t*, size_t)); 68 extern __MANGLE__ int sfdcdos __PROTO__((Sfio_t*)); 69 extern __MANGLE__ int sfdcfilter __PROTO__((Sfio_t*, const char*)); 70 extern __MANGLE__ int sfdcmore __PROTO__((Sfio_t*, const char*, int, int)); 71 extern __MANGLE__ int sfdcprefix __PROTO__((Sfio_t*, const char*)); 72 extern __MANGLE__ int sfdcseekable __PROTO__((Sfio_t*)); 73 extern __MANGLE__ int sfdcslow __PROTO__((Sfio_t*)); 74 extern __MANGLE__ int sfdctee __PROTO__((Sfio_t*, Sfio_t*)); [all …]
|
/titanic_44/usr/src/lib/libast/common/include/ |
H A D | sfio.h | 32 typedef struct _sfio_s Sfio_t; typedef 47 typedef ssize_t (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*)); 48 typedef ssize_t (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*)); 49 typedef Sfoff_t (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*)); 50 typedef int (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*)); 51 typedef int (*Sfwalk_f)_ARG_((Sfio_t*, Void_t*)); 66 typedef int (*Sffmtext_f)_ARG_((Sfio_t*, Void_t*, Sffmt_t*)); 67 typedef int (*Sffmtevent_f)_ARG_((Sfio_t*, int, Void_t*, Sffmt_t*)); 179 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */ 212 extern Sfio_t* sfstdin; [all …]
|
H A D | sfdisc.h | 49 extern int sfkeyprintf(Sfio_t*, void*, const char*, Sf_key_lookup_t, Sf_key_convert_t); 51 extern int sfkeyprintf(Sfio_t*, void*, const char*, Sf_key_lookup_t, Sf_key_convert_t); 57 extern int sfdcdio(Sfio_t*, size_t); 58 extern int sfdcdos(Sfio_t*); 59 extern int sfdcfilter(Sfio_t*, const char*); 60 extern int sfdcmore(Sfio_t*, const char*, int, int); 61 extern int sfdcprefix(Sfio_t*, const char*); 62 extern int sfdcseekable(Sfio_t*); 63 extern int sfdcslow(Sfio_t*); 64 extern int sfdctee(Sfio_t*, Sfio_t*); [all …]
|
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/ |
H A D | sfio.h | 32 typedef struct _sfio_s Sfio_t; typedef 47 typedef ssize_t (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*)); 48 typedef ssize_t (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*)); 49 typedef Sfoff_t (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*)); 50 typedef int (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*)); 51 typedef int (*Sfwalk_f)_ARG_((Sfio_t*, Void_t*)); 66 typedef int (*Sffmtext_f)_ARG_((Sfio_t*, Void_t*, Sffmt_t*)); 67 typedef int (*Sffmtevent_f)_ARG_((Sfio_t*, int, Void_t*, Sffmt_t*)); 179 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */ 212 extern Sfio_t* sfstdin; [all …]
|
H A D | sfdisc.h | 59 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 61 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 67 extern __MANGLE__ int sfdcdio __PROTO__((Sfio_t*, size_t)); 68 extern __MANGLE__ int sfdcdos __PROTO__((Sfio_t*)); 69 extern __MANGLE__ int sfdcfilter __PROTO__((Sfio_t*, const char*)); 70 extern __MANGLE__ int sfdcmore __PROTO__((Sfio_t*, const char*, int, int)); 71 extern __MANGLE__ int sfdcprefix __PROTO__((Sfio_t*, const char*)); 72 extern __MANGLE__ int sfdcseekable __PROTO__((Sfio_t*)); 73 extern __MANGLE__ int sfdcslow __PROTO__((Sfio_t*)); 74 extern __MANGLE__ int sfdctee __PROTO__((Sfio_t*, Sfio_t*)); [all …]
|
/titanic_44/usr/src/lib/libast/i386/include/ast/ |
H A D | sfio.h | 32 typedef struct _sfio_s Sfio_t; typedef 47 typedef ssize_t (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*)); 48 typedef ssize_t (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*)); 49 typedef Sfoff_t (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*)); 50 typedef int (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*)); 51 typedef int (*Sfwalk_f)_ARG_((Sfio_t*, Void_t*)); 66 typedef int (*Sffmtext_f)_ARG_((Sfio_t*, Void_t*, Sffmt_t*)); 67 typedef int (*Sffmtevent_f)_ARG_((Sfio_t*, int, Void_t*, Sffmt_t*)); 179 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */ 212 extern Sfio_t* sfstdin; [all …]
|
H A D | sfdisc.h | 59 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 61 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 67 extern __MANGLE__ int sfdcdio __PROTO__((Sfio_t*, size_t)); 68 extern __MANGLE__ int sfdcdos __PROTO__((Sfio_t*)); 69 extern __MANGLE__ int sfdcfilter __PROTO__((Sfio_t*, const char*)); 70 extern __MANGLE__ int sfdcmore __PROTO__((Sfio_t*, const char*, int, int)); 71 extern __MANGLE__ int sfdcprefix __PROTO__((Sfio_t*, const char*)); 72 extern __MANGLE__ int sfdcseekable __PROTO__((Sfio_t*)); 73 extern __MANGLE__ int sfdcslow __PROTO__((Sfio_t*)); 74 extern __MANGLE__ int sfdctee __PROTO__((Sfio_t*, Sfio_t*)); [all …]
|
/titanic_44/usr/src/lib/libast/sparc/include/ast/ |
H A D | sfio.h | 32 typedef struct _sfio_s Sfio_t; typedef 47 typedef ssize_t (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*)); 48 typedef ssize_t (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*)); 49 typedef Sfoff_t (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*)); 50 typedef int (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*)); 51 typedef int (*Sfwalk_f)_ARG_((Sfio_t*, Void_t*)); 66 typedef int (*Sffmtext_f)_ARG_((Sfio_t*, Void_t*, Sffmt_t*)); 67 typedef int (*Sffmtevent_f)_ARG_((Sfio_t*, int, Void_t*, Sffmt_t*)); 179 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */ 212 extern Sfio_t* sfstdin; [all …]
|
H A D | sfdisc.h | 59 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 61 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_… 67 extern __MANGLE__ int sfdcdio __PROTO__((Sfio_t*, size_t)); 68 extern __MANGLE__ int sfdcdos __PROTO__((Sfio_t*)); 69 extern __MANGLE__ int sfdcfilter __PROTO__((Sfio_t*, const char*)); 70 extern __MANGLE__ int sfdcmore __PROTO__((Sfio_t*, const char*, int, int)); 71 extern __MANGLE__ int sfdcprefix __PROTO__((Sfio_t*, const char*)); 72 extern __MANGLE__ int sfdcseekable __PROTO__((Sfio_t*)); 73 extern __MANGLE__ int sfdcslow __PROTO__((Sfio_t*)); 74 extern __MANGLE__ int sfdctee __PROTO__((Sfio_t*, Sfio_t*)); [all …]
|
/titanic_44/usr/src/lib/libast/common/sfio/ |
H A D | sfextern.c | 43 { NIL(Sfpool_t*), 0, 0, 0, NIL(Sfio_t**) }, /* _Sfpool */ 44 NIL(int(*)_ARG_((Sfio_t*,int))), /* _Sfpmove */ 45 NIL(Sfio_t*(*)_ARG_((Sfio_t*, Sfio_t*))), /* _Sfstack */ 46 NIL(void(*)_ARG_((Sfio_t*, int, void*))), /* _Sfnotify */ 47 NIL(int(*)_ARG_((Sfio_t*))), /* _Sfstdsync */ 82 Sfio_t _Sfstdin = SFNEW(NIL(char*),-1,0, 84 Sfio_t _Sfstdout = SFNEW(NIL(char*),-1,1, 86 Sfio_t _Sfstderr = SFNEW(NIL(char*),-1,2, 93 Sfio_t* sfstdin = &_Sfstdin; 94 Sfio_t* sfstdout = &_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() 35 Sfio_t* oldf; /* old stream to be reused */ 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*); [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 | 99 static int _sfphead(Sfpool_t* p, Sfio_t* f, int n) in _sfphead() 103 Sfio_t* f; /* the stream */ 107 reg Sfio_t* head; 170 static int _sfpdelete(Sfpool_t* p, Sfio_t* f, int n) in _sfpdelete() 174 Sfio_t* f; /* the stream */ 220 static int _sfpmove(reg Sfio_t* f, reg int type) in _sfpmove() 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() [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 | sftmp.c | 49 Sfio_t* f; /* associated stream */ 56 static int _tmprmfile(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) in _tmprmfile() 59 Sfio_t* f; in _tmprmfile() 119 static int _rmtmp(Sfio_t* f, char* file) in _rmtmp() 122 Sfio_t* f; in _rmtmp() 200 static int _tmpfd(Sfio_t* f) in _tmpfd() 203 Sfio_t* f; in _tmpfd() 285 static int _tmpexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) in _tmpexcept() 288 Sfio_t* f; in _tmpexcept() 295 reg Sfio_t* sf; [all …]
|
/titanic_44/usr/src/lib/libast/common/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() 85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) in fread_unlocked() [all …]
|
/titanic_44/usr/src/lib/libast/common/disc/ |
H A D | sfdcsubstr.c | 35 Sfio_t* parent; /* parent stream */ 42 static ssize_t streamio(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc, int type) in streamio() 45 Sfio_t* f; in streamio() 86 static ssize_t streamwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in streamwrite() 89 Sfio_t* f; in streamwrite() 99 static ssize_t streamread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) in streamread() 102 Sfio_t* f; in streamread() 112 static Sfoff_t streamseek(Sfio_t* f, Sfoff_t pos, int type, Sfdisc_t* disc) in streamseek() 115 Sfio_t* f; in streamseek() 157 static int streamexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in streamexcept() [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() 101 static ssize_t filterwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in filterwrite() 104 Sfio_t* f; /* stream writing to */ in filterwrite() 115 static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc) in filterseek() 118 Sfio_t* f; in filterseek() 123 { f = NIL(Sfio_t*); 132 static int filterexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) in filterexcept() 135 Sfio_t* f; in filterexcept() [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 */ 41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in skwrite() 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; 102 static Sfoff_t skseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) in skseek() 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() [all …]
|
H A D | sfdcunion.c | 34 { Sfio_t* f; /* the stream */ 49 static ssize_t unwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in unwrite() 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() [all …]
|
/titanic_44/usr/src/lib/libast/common/misc/ |
H A D | stk.c | 57 #define STK_HDRSIZE (sizeof(Sfio_t)+sizeof(Sfdisc_t)) 61 static int stkexcept(Sfio_t*,int,void*,Sfdisc_t*); 64 Sfio_t _Stak_data = SFNEW((char*)0,0,-1,SF_STATIC|SF_WRITE|SF_STRING,&stkdisc,0); 66 __EXTERN__(Sfio_t, _Stak_data); 87 static char *stkgrow(Sfio_t*, unsigned); 91 #define stk2stream(sp) ((Sfio_t*)(((char*)(sp))-STK_HDRSIZE)) 137 register Sfio_t *sp; in stkinit() 144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) in stkexcept() 192 Sfio_t *old = 0; in stkexcept() 213 Sfio_t *stkopen(int flags) in stkopen() [all …]
|
/titanic_44/usr/src/lib/libast/common/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()
|