diff options
author | Roland McGrath <roland@gnu.org> | 1995-04-01 09:01:49 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-04-01 09:01:49 +0000 |
commit | 2f8033d6067fff3e7d77bb2174a9564bd7199cea (patch) | |
tree | 338cc27cac49feff7928918f6f78b7bc9e129993 /locale | |
parent | 5de9ba232c42a03b7c9839f9ed907a24d63d7c78 (diff) | |
download | glibc-2f8033d6067fff3e7d77bb2174a9564bd7199cea.tar.gz |
Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
if undefined.
* string/strxfrm.c: Just copy the string (for now).
* string/strcoll.c: Just call strcmp (for now).
* mach/Makefile (lock): Add mutex-init.
* mach/mutex-solid.c (_cthread_mutex_lock_routine,
_cthread_mutex_unlock_routine): Variables removed.
(__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
(__mutex_init): Function moved to new file mutex-init.c.
* mach/mutex-init.c: New file, broken out of mutex-solid.c.
Diffstat (limited to 'locale')
-rw-r--r-- | locale/loadlocale.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 8066fbbaa3..f3e8e4ad9b 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -102,6 +102,10 @@ _nl_load_locale (int category, char **name) /* Linux seems to lack read-only copy-on-write. */ #define MAP_COPY MAP_PRIVATE #endif +#ifndef MAP_FILE + /* Some systems do not have this flag; it is superfluous. */ +#define MAP_FILE 0 +#endif filedata = (void *) __mmap ((caddr_t) 0, st.st_size, PROT_READ, MAP_FILE|MAP_COPY, fd, 0); if (filedata == (void *) -1) |