Lines Matching refs:io
3 #include "api/io.h"
20 static void read_to_eol(struct io *io)
25 ch = io__get_char(io);
35 struct io io;
39 io.fd = open(filename, O_RDONLY, 0);
41 if (io.fd < 0)
44 io__init(&io, io.fd, bf, sizeof(bf));
47 while (!io.eof) {
54 if (io__get_hex(&io, &start) != ' ') {
55 read_to_eol(&io);
58 symbol_type = io__get_char(&io);
59 if (io__get_char(&io) != ' ') {
60 read_to_eol(&io);
64 ch = io__get_char(&io);
76 close(io.fd);