From ab6acefe649751b072fd9be21ff5de7733c1370e Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 14 Mar 2007 19:22:07 -0700 Subject: Move the loadfile() routine into the syslinux/ namespace, and use it. - Move the loadfile() routine into . - Actually use the loadfile() routine. --- com32/libutil/include/syslinux/loadfile.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 com32/libutil/include/syslinux/loadfile.h (limited to 'com32/libutil/include/syslinux') diff --git a/com32/libutil/include/syslinux/loadfile.h b/com32/libutil/include/syslinux/loadfile.h new file mode 100644 index 00000000..fbda589d --- /dev/null +++ b/com32/libutil/include/syslinux/loadfile.h @@ -0,0 +1,12 @@ +#ifndef LIBUTIL_LOADFILE_H +#define LIBUTIL_LOADFILE_H + +#include + +/* loadfile() returns the true size of the file, but will guarantee valid, + zero-padded memory out to this boundary. */ +#define LOADFILE_ZERO_PAD 64 + +int loadfile(const char *, void **, size_t *); + +#endif -- cgit v1.2.1