Lines Matching defs:Sfio_t

32 typedef struct _sfio_s		Sfio_t;
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*));
180 #define SF_POPSTACK ((Sfio_t*)0) /* pop the stream stack */
212 extern Sfio_t* sfstdin;
213 extern Sfio_t* sfstdout;
214 extern Sfio_t* sfstderr;
220 extern Sfio_t _Sfstdin;
221 extern Sfio_t _Sfstdout;
222 extern Sfio_t _Sfstderr;
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*));
235 extern Sfio_t* sftmp _ARG_((size_t));
237 extern int sfpurge _ARG_((Sfio_t*));
238 extern int sfpoll _ARG_((Sfio_t**, int, int));
239 extern Void_t* sfreserve _ARG_((Sfio_t*, ssize_t, int));
240 extern int sfresize _ARG_((Sfio_t*, Sfoff_t));
241 extern int sfsync _ARG_((Sfio_t*));
242 extern int sfclrlock _ARG_((Sfio_t*));
243 extern Void_t* sfsetbuf _ARG_((Sfio_t*, Void_t*, size_t));
244 extern Sfdisc_t* sfdisc _ARG_((Sfio_t*,Sfdisc_t*));
245 extern int sfraise _ARG_((Sfio_t*, int, Void_t*));
246 extern int sfnotify _ARG_((void(*)(Sfio_t*, int, void*)));
247 extern int sfset _ARG_((Sfio_t*, int, int));
248 extern int sfsetfd _ARG_((Sfio_t*, int));
249 extern Sfio_t* sfpool _ARG_((Sfio_t*, Sfio_t*, int));
250 extern ssize_t sfread _ARG_((Sfio_t*, Void_t*, size_t));
251 extern ssize_t sfwrite _ARG_((Sfio_t*, const Void_t*, size_t));
252 extern Sfoff_t sfmove _ARG_((Sfio_t*, Sfio_t*, Sfoff_t, int));
253 extern int sfclose _ARG_((Sfio_t*));
254 extern Sfoff_t sftell _ARG_((Sfio_t*));
255 extern Sfoff_t sfseek _ARG_((Sfio_t*, Sfoff_t, int));
256 extern ssize_t sfputr _ARG_((Sfio_t*, const char*, int));
257 extern char* sfgetr _ARG_((Sfio_t*, int, int));
258 extern ssize_t sfnputc _ARG_((Sfio_t*, int, size_t));
259 extern int sfungetc _ARG_((Sfio_t*, int));
260 extern int sfprintf _ARG_((Sfio_t*, const char*, ...));
266 extern int sfvprintf _ARG_((Sfio_t*, const char*, va_list));
267 extern int sfscanf _ARG_((Sfio_t*, const char*, ...));
270 extern int sfvscanf _ARG_((Sfio_t*, const char*, va_list));
273 extern int sfmutex _ARG_((Sfio_t*, int));
276 extern ssize_t sfrd _ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*));
277 extern ssize_t sfwr _ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*));
278 extern Sfoff_t sfsk _ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*));
286 extern int sfputd _ARG_((Sfio_t*, Sfdouble_t));
287 extern int sfputl _ARG_((Sfio_t*, Sflong_t));
288 extern int sfputu _ARG_((Sfio_t*, Sfulong_t));
289 extern int sfputm _ARG_((Sfio_t*, Sfulong_t, Sfulong_t));
290 extern int sfputc _ARG_((Sfio_t*, int));
292 extern Sfdouble_t sfgetd _ARG_((Sfio_t*));
293 extern Sflong_t sfgetl _ARG_((Sfio_t*));
294 extern Sfulong_t sfgetu _ARG_((Sfio_t*));
295 extern Sfulong_t sfgetm _ARG_((Sfio_t*, Sfulong_t));
296 extern int sfgetc _ARG_((Sfio_t*));
298 extern int _sfputd _ARG_((Sfio_t*, Sfdouble_t));
299 extern int _sfputl _ARG_((Sfio_t*, Sflong_t));
300 extern int _sfputu _ARG_((Sfio_t*, Sfulong_t));
301 extern int _sfputm _ARG_((Sfio_t*, Sfulong_t, Sfulong_t));
302 extern int _sfflsbuf _ARG_((Sfio_t*, int));
304 extern int _sffilbuf _ARG_((Sfio_t*, int));
311 extern Sfoff_t sfsize _ARG_((Sfio_t*));
312 extern int sfclrerr _ARG_((Sfio_t*));
313 extern int sfeof _ARG_((Sfio_t*));
314 extern int sferror _ARG_((Sfio_t*));
315 extern int sffileno _ARG_((Sfio_t*));
316 extern int sfstacked _ARG_((Sfio_t*));
317 extern ssize_t sfvalue _ARG_((Sfio_t*));
339 #define _SF_(f) ((Sfio_t*)(f))
362 #define __sf_stacked(f) (_SF_(f)->_push != (Sfio_t*)0)
369 __INLINE__ int sfputd(Sfio_t* f, Sfdouble_t v) { return __sf_putd(f,v); }
370 __INLINE__ int sfputl(Sfio_t* f, Sflong_t v) { return __sf_putl(f,v); }
371 __INLINE__ int sfputu(Sfio_t* f, Sfulong_t v) { return __sf_putu(f,v); }
372 __INLINE__ int sfputm(Sfio_t* f, Sfulong_t v, Sfulong_t m)
375 __INLINE__ int sfputc(Sfio_t* f, int c) { return __sf_putc(f,c); }
376 __INLINE__ int sfgetc(Sfio_t* f) { return __sf_getc(f); }
382 __INLINE__ int sffileno(Sfio_t* f) { return __sf_fileno(f); }
383 __INLINE__ int sfeof(Sfio_t* f) { return __sf_eof(f); }
384 __INLINE__ int sferror(Sfio_t* f) { return __sf_error(f); }
385 __INLINE__ int sfclrerr(Sfio_t* f) { return __sf_clrerr(f); }
386 __INLINE__ int sfstacked(Sfio_t* f) { return __sf_stacked(f); }
387 __INLINE__ ssize_t sfvalue(Sfio_t* f) { return __sf_value(f); }