diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-05-30 01:41:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-05-30 01:41:23 -0400 |
commit | 11c531e21de9c417166da934898ea7225a758fdf (patch) | |
tree | b70cd41e7a7b9304235a3eb0f09d9c4d335efb38 /src/locale | |
parent | 9a59faab3c0c46d2e96245e11fc71351caba1a2e (diff) | |
download | musl-11c531e21de9c417166da934898ea7225a758fdf.tar.gz musl-11c531e21de9c417166da934898ea7225a758fdf.tar.bz2 musl-11c531e21de9c417166da934898ea7225a758fdf.tar.xz musl-11c531e21de9c417166da934898ea7225a758fdf.zip |
implement uselocale function (minimal)
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/uselocale.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/locale/uselocale.c b/src/locale/uselocale.c new file mode 100644 index 00000000..9c799578 --- /dev/null +++ b/src/locale/uselocale.c @@ -0,0 +1,10 @@ +#include "locale_impl.h" +#include "pthread_impl.h" + +locale_t uselocale(locale_t l) +{ + pthread_t self = pthread_self(); + locale_t old = self->locale; + if (l) self->locale = l; + return old; +} |