7 typedef FILE * InputStream;
8 typedef FILE * OutputStream;
17 if (strEQ(name, "_IOFBF"))
19 { *pval = _IOFBF; return TRUE; }
23 if (strEQ(name, "_IOLBF"))
25 { *pval = _IOLBF; return TRUE; }
29 if (strEQ(name, "_IONBF"))
31 { *pval = _IONBF; return TRUE; }
42 MODULE = FileHandle PACKAGE = FileHandle PREFIX = f
49 if (constant(name, &i))
62 fgetpos(handle, &pos);
63 ST(0) = sv_2mortal(newSVpv((char*)&pos, sizeof(Fpos_t)));
76 RETVAL = fsetpos(handle, (Fpos_t*)SvPVX(pos));
90 RETVAL = ungetc(c, handle);
99 new_tmpfile(packname = "FileHandle")
111 RETVAL = ferror(handle);
124 RETVAL = fflush(handle);
135 char * buf = SvPOK(ST(1)) ? sv_grow(ST(1), BUFSIZ) : 0;
144 setvbuf(handle, buf, type, size)
146 char * buf = SvPOK(ST(1)) ? sv_grow(ST(1), SvIV(ST(3))) : 0;
151 RETVAL = setvbuf(handle, buf, type, size);