]> sourceware.org Git - glibc.git/commitdiff
(_nl_load_locale) [! MAP_COPY]: Define MAP_COPY to MAP_PRIVATE.
authorRoland McGrath <roland@gnu.org>
Fri, 10 Mar 1995 03:28:54 +0000 (03:28 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 10 Mar 1995 03:28:54 +0000 (03:28 +0000)
locale/loadlocale.c

index 24959a59e842726d7e8cf94737c997b3698515d4..5c367ae4befe2d859c32da8e0041213519a892df 100644 (file)
@@ -83,6 +83,10 @@ _nl_load_locale (int category, char **name)
   {
     /* Map in the file's data.  */
     int save = errno;
+#ifndef MAP_COPY
+    /* Linux seems to lack read-only copy-on-write.  */
+#define MAP_COPY MAP_PRIVATE
+#endif
     filedata = (void *) __mmap ((caddr_t) 0, st.st_size,
                                PROT_READ, MAP_FILE|MAP_COPY, fd, 0);
     if (filedata == (void *) -1)
This page took 0.046616 seconds and 5 git commands to generate.