• Bruno Haible's avatar
    setlocale-null: Make API more useful. · 3a310962
    Bruno Haible authored
    * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
    callers changed.
    (setlocale_null): New declaration.
    * lib/setlocale_null.c (setlocale_null_androidfix): New function,
    extracted from setlocale_null_unlocked.
    (setlocale_null_unlocked): Invoke it.
    (setlocale_null_r): Renamed from setlocale_null.
    (setlocale_null): New function, extracted from setlocale_mtsafe in
    setlocale.c.
    * lib/setlocale.c: Don't include <errno.h>.
    (setlocale_mtsafe): Invoke setlocale_null.
    * lib/setlocale-lock.c: Update comments.
    * doc/posix-functions/setlocale.texi: Mention both functions.
    3a310962
setlocale.texi 2.15 KB