1 /*
2  * Copyright 2018 The Emscripten Authors.  All rights reserved.
3  * Emscripten is available under two separate licenses, the MIT license and the
4  * University of Illinois/NCSA Open Source License.  Both these licenses can be
5  * found in the LICENSE file.
6  */
7 
8 // Extra libc helper functions
9 
10 char *tzname[2];
11 
_get_tzname()12 void* _get_tzname() {
13   return (void*)tzname;
14 }
15 
16 int daylight;
17 
_get_daylight()18 int* _get_daylight() {
19   return &daylight;
20 }
21 
22 long timezone;
23 
_get_timezone()24 long* _get_timezone() {
25   return &timezone;
26 }
27 
28 // Musl lock internals. As we assume wasi is single-threaded for now, these
29 // are no-ops.
30 
__lock(void * ptr)31 void __lock(void* ptr) {}
__unlock(void * ptr)32 void __unlock(void* ptr) {}
33 
34