Lines Matching refs:read
89 if (read(fd, (char *)&ehdr, sizeof(ehdr)) != sizeof(ehdr))
114 if (read(fd, (char *)&stringsz, sizeof(long)) != sizeof(long))
127 * Read text & data, clear bss
130 if ((read(fd, (char *)(od->kstart), ehdr.a_text) != ehdr.a_text)
131 ||(read(fd,(char *)(od->kstart+textsz),ehdr.a_data) != ehdr.a_data))
136 * Read symbol and string table
144 if (read(fd, (char *)p, ehdr.a_syms) != ehdr.a_syms)
148 if (read(fd, (char *)p, stringsz) != stringsz)
159 /* 2 */ "Cannot read string-table size",
162 /* 5 */ "Unable to read kernel image",
163 /* 6 */ "Cannot read symbol table",
164 /* 7 */ "Cannot read string table"