summaryrefslogtreecommitdiff
path: root/include/nasmlib.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-04-17 13:52:19 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-04-17 13:56:50 -0700
commit8dc965347ddf9caabacc4ca0441efe3a4ec32af8 (patch)
tree39c561c38dab93e90d70a82a1c6180e1571a15c1 /include/nasmlib.h
parent74fa0a736ab769dd07ebe3c98b7e94543b558134 (diff)
downloadnasm-8dc965347ddf9caabacc4ca0441efe3a4ec32af8.tar.gz
rdoff: use nasm-provided safe memory allocation and I/O
We already have abort-on-error memory allocation and I/O operations in nasmlib, so use them for rdoff as well. Delete long-since-obsolete rdoff Mkfiles directory. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'include/nasmlib.h')
-rw-r--r--include/nasmlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/nasmlib.h b/include/nasmlib.h
index 747ee11c..0b2bcb17 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -101,8 +101,10 @@ char * safe_alloc nasm_strndup(const char *, size_t);
#define nasm_zeron(p,n) (memset((p), 0, (n)*sizeof(*(p))))
/*
- * Wrapper around fwrite() which fatal-errors on output failure.
+ * Wrappers around fread()/fwrite() which fatal-errors on failure.
+ * For fread(), only use this if EOF is supposed to be a fatal error!
*/
+void nasm_read(void *, size_t, FILE *);
void nasm_write(const void *, size_t, FILE *);
/*