Lines Matching defs:io
40 BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
42 left = io->file->len - io->offset;
51 memcpy (f->buffer, io->file->bits + io->offset, len);
52 io->offset += len;
61 BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
73 io->offset += todo;
74 if (io->offset > io->file->len)
75 io->offset = io->file->len;
76 if (io->offset < 0)
77 io->offset = 0;
86 BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
88 free (io);
97 BuiltinIOPtr io;
106 io = malloc (sizeof (BuiltinIORec));
107 if (!io)
109 io->offset = 0;
110 io->file = (void *) &builtin_files[i];
111 raw = BufFileCreate ((char *) io, BuiltinFill, 0, BuiltinSkip, BuiltinClose);
114 free (io);