summaryrefslogtreecommitdiff
path: root/com32/libutil/include/syslinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-03-14 19:22:07 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-03-14 19:22:07 -0700
commitab6acefe649751b072fd9be21ff5de7733c1370e (patch)
tree7abe6b36fd8774cb758421bdcce6949b1782a5f7 /com32/libutil/include/syslinux
parent37b99c20bf10933524f3b8c1ec04215d5c94c18d (diff)
downloadsyslinux-ab6acefe649751b072fd9be21ff5de7733c1370e.tar.gz
Move the loadfile() routine into the syslinux/ namespace, and use it.syslinux-3.40-pre13
- Move the loadfile() routine into <syslinux/loadfile.h>. - Actually use the loadfile() routine.
Diffstat (limited to 'com32/libutil/include/syslinux')
-rw-r--r--com32/libutil/include/syslinux/loadfile.h12
1 files changed, 12 insertions, 0 deletions
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 <stddef.h>
+
+/* 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