diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-10 06:21:22 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-10 06:21:22 +0000 |
commit | 946860b1cb6372260430fb0f446083d66f35f434 (patch) | |
tree | 75b80078030deab15c0cec7433b538887825aa1c /catgets | |
parent | b40a4e9d2a7b3e30184975ab2fb0c59dd9109a36 (diff) | |
download | glibc-946860b1cb6372260430fb0f446083d66f35f434.zip glibc-946860b1cb6372260430fb0f446083d66f35f434.tar.gz glibc-946860b1cb6372260430fb0f446083d66f35f434.tar.bz2 |
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.
Diffstat (limited to 'catgets')
-rw-r--r-- | catgets/open_catalog.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/catgets/open_catalog.c b/catgets/open_catalog.c index 8100338..cd036d9 100644 --- a/catgets/open_catalog.c +++ b/catgets/open_catalog.c @@ -212,13 +212,9 @@ __open_catalog (const char *cat_name, const char *nlspath, const char *env_var, /* Some systems do not have this flag; it is superfluous. */ # define MAP_FILE 0 # endif -# ifndef MAP_INHERIT - /* Some systems might lack this; they lose. */ -# define MAP_INHERIT 0 -# endif catalog->file_ptr = (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, 1)) /* Tell the world we managed to mmap the file. */ |