summaryrefslogtreecommitdiff
path: root/lib/setlocale-lock.c
Commit message (Collapse)AuthorAgeFilesLines
* Put LGPLv2+ notices in source files where appropriate.Bruno Haible2021-06-041-7/+7
| | | | | * lib/**.{h,c,gperf}: Use LGPLv2+ notice whenever the module description says so.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* setlocale-null: Avoid crashing the MSVC linker.Bruno Haible2020-01-021-1/+1
| | | | | * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on MSVC.
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* setlocale-null: Make it easy to rely on the lock in another library.Bruno Haible2019-12-241-25/+37
| | | | | * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is defined.
* setlocale-null: Export the lock function also on non-Windows platforms.Bruno Haible2019-12-231-5/+19
| | | | | | | | * lib/setlocale-lock.c (DLL_EXPORTED): New macro. (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED. * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro. * modules/setlocale-null (configure.ac): Invoke it. (Files): Add m4/visibility.m4.
* setlocale-null: Make API more useful.Bruno Haible2019-12-181-5/+5
| | | | | | | | | | | | | | | | * 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.
* setlocale-null: New module.Bruno Haible2019-12-151-0/+124
* lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null): New declarations. * lib/setlocale_null.c: New file. * lib/setlocale-lock.c: New file. * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API. * m4/setlocale_null.m4: New file. * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE_NULL. * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL. * modules/setlocale-null: New file. * doc/posix-functions/setlocale.texi: Mention the new module.