diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-05-25 04:28:46 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-05-25 04:34:00 -0700 |
commit | 3e83cec90e19de8cb019db29bd1db1f867785dd3 (patch) | |
tree | 6aa0d51112f3032d54e94464fadf9eba78a54122 /output/codeview.c | |
parent | 4976cd251811d056a06edf6a239a268750c096db (diff) | |
download | nasm-3e83cec90e19de8cb019db29bd1db1f867785dd3.tar.gz |
Add wrappers around fopen(), use mmap on glibc
Add wrappers to fopen(). The intent is to replace references to
FILE * with an internal structure which can also cache things like the
filename and, when needed, the full pathname and checksums.
Also, add the "m" flag if we are compiling for glibc, for speed.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/codeview.c')
-rw-r--r-- | output/codeview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/output/codeview.c b/output/codeview.c index 945e2225..d3c72ae3 100644 --- a/output/codeview.c +++ b/output/codeview.c @@ -341,7 +341,7 @@ static void calc_md5(const char *const filename, FILE *f; MD5_CTX ctx; - f = pp_input_fopen(filename, "rb"); + f = pp_input_fopen(filename, NF_BINARY); if (!f) goto done; |