summaryrefslogtreecommitdiff
path: root/src/mystdlib.c
diff options
context:
space:
mode:
authorerdgeist <>2005-07-12 13:46:47 +0000
committererdgeist <>2005-07-12 13:46:47 +0000
commit88ba1d04480e5350476291aaa9a400dc571bbc75 (patch)
treefed494a726fbd09994668212c88ab3d4cce444fb /src/mystdlib.c
parentb1d066634b4ad459a58ea8cdf05aee42680ba2b2 (diff)
sync
Diffstat (limited to 'src/mystdlib.c')
-rw-r--r--src/mystdlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mystdlib.c b/src/mystdlib.c
index 2deda22..9d73293 100644
--- a/src/mystdlib.c
+++ b/src/mystdlib.c
@@ -20,7 +20,7 @@ MAP map_file( char *filename, int readonly )
20 { 20 {
21 fstat( map->fh, &fstatus ); 21 fstat( map->fh, &fstatus );
22 if( ( map->addr = mmap( NULL, map->size = (size_t)fstatus.st_size, 22 if( ( map->addr = mmap( NULL, map->size = (size_t)fstatus.st_size,
23 PROT_READ | ( readonly ? 0 : PROT_WRITE), MAP_NOCORE | (readonly ? 0 : MAP_SHARED), map->fh, 0) ) == MAP_FAILED ) 23 PROT_READ | ( readonly ? 0 : PROT_WRITE), (readonly ? 0 : MAP_SHARED), map->fh, 0) ) == MAP_FAILED )
24 { 24 {
25 fprintf( stderr, "Mapping file '%s' failed\n", filename ); 25 fprintf( stderr, "Mapping file '%s' failed\n", filename );
26 close( map->fh ); free( map ); map = NULL; 26 close( map->fh ); free( map ); map = NULL;