ref: 2e7e4ca6b9def1b7bae6b93285f6431039f9656a
dir: /src/libmach/readobj.c/
#include <stdio.h>
#include <scc/mach.h>
#include "libmach.h"
int
readobj(Obj *obj, FILE *fp)
{
long off;
if ((off = ftell(fp)) == EOF)
return -1;
obj->pos = off;
return (*obj->ops->read)(obj, fp);
}