2002-08-08 Roland McGrath <roland@redhat.com>
* locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT. * catgets/open_catalog.c (__open_catalog): Likewise.
This commit is contained in:
parent
b40a4e9d2a
commit
946860b1cb
|
@ -211,14 +211,10 @@ __open_catalog (const char *cat_name, const char *nlspath, const char *env_var,
|
||||||
# ifndef MAP_FILE
|
# ifndef MAP_FILE
|
||||||
/* Some systems do not have this flag; it is superfluous. */
|
/* Some systems do not have this flag; it is superfluous. */
|
||||||
# define MAP_FILE 0
|
# define MAP_FILE 0
|
||||||
# endif
|
|
||||||
# ifndef MAP_INHERIT
|
|
||||||
/* Some systems might lack this; they lose. */
|
|
||||||
# define MAP_INHERIT 0
|
|
||||||
# endif
|
# endif
|
||||||
catalog->file_ptr =
|
catalog->file_ptr =
|
||||||
(struct catalog_obj *) __mmap (NULL, st.st_size, PROT_READ,
|
(struct catalog_obj *) __mmap (NULL, st.st_size, PROT_READ,
|
||||||
MAP_FILE|MAP_COPY|MAP_INHERIT, fd, 0);
|
MAP_FILE|MAP_COPY, fd, 0);
|
||||||
if (__builtin_expect (catalog->file_ptr != (struct catalog_obj *) MAP_FAILED,
|
if (__builtin_expect (catalog->file_ptr != (struct catalog_obj *) MAP_FAILED,
|
||||||
1))
|
1))
|
||||||
/* Tell the world we managed to mmap the file. */
|
/* Tell the world we managed to mmap the file. */
|
||||||
|
|
Loading…
Reference in New Issue