commit 61b7b7dbc0a74fae3e23b78cd7d61ced9922927b
parent 5fa52cf167cadda288c71b4f083da38481698159
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 19 Jan 2025 12:06:59 +0100
libmach: Make objpos() a public interface
This function can be very useful in different tools that has to access
data directly from the file and they have to follow file pointers.
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/bits/scc/mach.h b/include/bits/scc/mach.h
@@ -128,6 +128,7 @@ extern int archive(FILE *);
extern long armember(FILE *, char *, struct ar_hdr *);
extern int objprobe(FILE *, char **);
+extern int objpos(Obj *, FILE *, long);
extern int readobj(Obj *, FILE *);
extern int writeobj(Obj *, Map *, FILE *);
diff --git a/src/libmach/libmach.h b/src/libmach/libmach.h
@@ -37,7 +37,6 @@ struct map {
/* common functions */
extern int pack(int order, unsigned char *dst, char *fmt, ...);
extern int unpack(int order, unsigned char *src, char *fmt, ...);
-extern int objpos(Obj *obj, FILE *fp, long pos);
/* globals */
extern Objops *objops[];