summaryrefslogtreecommitdiffstats
path: root/scripts/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/common.h')
-rw-r--r--scripts/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/common.h b/scripts/common.h
new file mode 100644
index 0000000000..820108c52c
--- /dev/null
+++ b/scripts/common.h
@@ -0,0 +1,10 @@
+#ifndef __COMMON_H
+#define __COMMON_H
+
+int read_file_2(const char *filename, size_t *size, void **outbuf, size_t max_size);
+void *read_file(const char *filename, size_t *size);
+int write_file(const char *filename, const void *buf, size_t size);
+int read_full(int fd, void *buf, size_t size);
+int write_full(int fd, void *buf, size_t size);
+
+#endif /* __COMMON_H */