18 /* Only use fseeko/ftello if they are both there. */
20 #if defined (HAVE_FSEEKO) && defined (HAVE_FTELLO)
28 #if defined (MSDOS) && !defined (GO32)
29 #ifndef NON_UNIX_STDIO
30 #define NON_UNIX_STDIO
43 FILE *ufd
; /*0=unconnected */
45 #if !(defined (MSDOS) && !defined (GO32))
49 int url
; /*0=sequential */
50 flag useek
; /*true=can backspace, use dir, ... */
52 flag urw
; /* (1 for can read) | (2 for can write) */
55 flag uwrt
; /*last io was write */
61 extern cilist
*f__elist
; /*active external io list */
62 extern flag f__reading
, f__external
, f__sequential
, f__formatted
;
63 extern int (*f__getn
) (void); /* for formatted input */
64 extern void (*f__putn
) (int); /* for formatted output */
65 extern void x_putc (int);
66 extern long f__inode (char *, int *);
67 extern void sig_die (char *, int);
68 extern void f__fatal (int, char *);
69 extern int t_runc (alist
*);
70 extern int f__nowreading (unit
*), f__nowwriting (unit
*);
71 extern int fk_open (int, int, ftnint
);
72 extern int en_fio (void);
73 extern void f_init (void);
74 extern int (*f__donewrec
) (void), t_putc (int), x_wSL (void);
75 extern void b_char (char *, char *, ftnlen
), g_char (char *, ftnlen
, char *);
76 extern int c_sfe (cilist
*), z_rnew (void);
77 extern int isatty (int);
78 extern int err__fl (int, int, char *);
79 extern int xrd_SL (void);
80 extern int f__putbuf (int);
81 extern int (*f__doend
) (void);
82 extern FILE *f__cf
; /*current file */
83 extern unit
*f__curunit
; /*current unit */
84 extern unit f__units
[];
85 #define err(f,m,s) do {if(f) {f__init &= ~2; errno= m;} else f__fatal(m,s); return(m);} while(0)
86 #define errfl(f,m,s) do {return err__fl((int)f,m,s);} while(0)
91 extern int f__recpos
; /*position in current record */
92 extern int f__cursor
; /* offset to move to */
93 extern int f__hiwater
; /* so TL doesn't confuse us */
104 #define buf_end(x) (x->_flag & _IONBF ? x->_ptr : x->_base + BUFSIZ)