about summary refs log tree commit diff
path: root/locale/loadlocale.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-08 19:09:39 +0000
committerRoland McGrath <roland@gnu.org>1995-04-08 19:09:39 +0000
commit883bc19b7c819edce146ca43b77991f7dcf0608b (patch)
tree33786f9e6d51680425f70d294b35237aa03f71da /locale/loadlocale.c
parent8ab69eb33086a5cb11846414487fe22da5b93154 (diff)
downloadglibc-883bc19b7c819edce146ca43b77991f7dcf0608b.tar.gz
glibc-883bc19b7c819edce146ca43b77991f7dcf0608b.tar.xz
glibc-883bc19b7c819edce146ca43b77991f7dcf0608b.zip
* locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
 	mmap call.

	* configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
 	for these too.

	* sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
 	set c_oflag value.

	* Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.

	* locale/Makefile (categories): Uncomment collate.
	* locale/lc-collate.c: New file.
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r--locale/loadlocale.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
index f3e8e4ad9b..bc9102bf28 100644
--- a/locale/loadlocale.c
+++ b/locale/loadlocale.c
@@ -106,8 +106,13 @@ _nl_load_locale (int category, char **name)
     /* 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
     filedata = (void *) __mmap ((caddr_t) 0, st.st_size,
-				PROT_READ, MAP_FILE|MAP_COPY, fd, 0);
+				PROT_READ, MAP_FILE|MAP_COPY|MAP_INHERIT,
+				fd, 0);
     if (filedata == (void *) -1)
       {
 	if (errno == ENOSYS)