Changeset 390 for azure_iot_hub
- Timestamp:
- May 23, 2019, 12:45:39 AM (4 years ago)
- Location:
- azure_iot_hub/trunk
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub/trunk/app_iothub_client/src/client.c
r389 r390 160 160 else 161 161 { 162 #if 0162 #if 1 163 163 (void)printf("Starting the IoTHub client sample HTTP...\r\n"); 164 164 IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol = HTTP_Protocol; … … 235 235 temperature = minTemperature + (rand() % 10); 236 236 humidity = minHumidity + (rand() % 20); 237 sprintf_s(msgText, sizeof(msgText), "{\"deviceId\":\"myFirstDevice\",\"windSpeed\":%.2f,\"temperature\":%.2f,\"humidity\":%.2f}", avgWindSpeed + (rand() % 4 + 2), temperature, humidity);237 sprintf_s(msgText, sizeof(msgText), "{\"windSpeed\":%.2f,\"temperature\":%.2f,\"humidity\":%.2f}", avgWindSpeed + (rand() % 4 + 2), temperature, humidity); 238 238 if ((messages[iterator].messageHandle = IoTHubMessage_CreateFromByteArray((const unsigned char*)msgText, strlen(msgText))) == NULL) 239 239 { -
azure_iot_hub/trunk/musl-1.1.18/include/bits/alltypes.h
r389 r390 1 #ifdef _MSC_VER2 #define __builtin_va_list char *3 #define __NEED_va_list4 #define restrict __restrict5 #endif6 7 1 #define _Addr int 8 2 #define _Int64 long long … … 46 40 47 41 #if defined(__NEED_time_t) && !defined(__DEFINED_time_t) 48 #if defined(_MSC_VER) || defined(__c2__)49 typedef long long time_t;50 #else51 42 typedef long time_t; 52 #endif53 43 #define __DEFINED_time_t 54 44 #endif -
azure_iot_hub/trunk/musl-1.1.18/include/bits/errno.h
r389 r390 1 #ifdef _INC_ERRNO2 #undef EADDRINUSE3 #undef EADDRNOTAVAIL4 #undef EAFNOSUPPORT5 #undef EALREADY6 #undef EBADMSG7 #undef ECANCELED8 #undef ECONNABORTED9 #undef ECONNREFUSED10 #undef ECONNRESET11 #undef EDEADLK12 #undef EDESTADDRREQ13 #undef EHOSTUNREACH14 #undef EIDRM15 #undef EILSEQ16 #undef EINPROGRESS17 #undef EISCONN18 #undef ELOOP19 #undef EMSGSIZE20 #undef ENAMETOOLONG21 #undef ENETDOWN22 #undef ENETRESET23 #undef ENETUNREACH24 #undef ENOBUFS25 #undef ENODATA26 #undef ENOLCK27 #undef ENOLINK28 #undef ENOMSG29 #undef ENOPROTOOPT30 #undef ENOSR31 #undef ENOSTR32 #undef ENOSYS33 #undef ENOTCONN34 #undef ENOTEMPTY35 #undef ENOTRECOVERABLE36 #undef ENOTSOCK37 #undef ENOTSUP38 #undef EOPNOTSUPP39 #undef EOVERFLOW40 #undef EOWNERDEAD41 #undef EPROTO42 #undef EPROTONOSUPPORT43 #undef EPROTOTYPE44 #undef ETIME45 #undef ETIMEDOUT46 #undef ETXTBSY47 #undef EWOULDBLOCK48 #endif49 50 1 #define EPERM 1 51 2 #define ENOENT 2 -
azure_iot_hub/trunk/musl-1.1.18/include/setjmp.h
r389 r390 33 33 _Noreturn void longjmp (jmp_buf, int); 34 34 35 #if !defined(_MSC_VER) && !defined(__c2__)36 #define setjmp __builtin_setjmp37 #else38 35 #define setjmp setjmp 39 #endif40 36 41 37 #ifdef __cplusplus -
azure_iot_hub/trunk/musl-1.1.18/include/stdarg.h
r389 r390 10 10 #include <bits/alltypes.h> 11 11 12 #if !defined(_MSC_VER) && !defined(__c2__)13 14 12 #define va_start(v,l) __builtin_va_start(v,l) 15 13 #define va_end(v) __builtin_va_end(v) 16 14 #define va_arg(v,l) __builtin_va_arg(v,l) 17 15 #define va_copy(d,s) __builtin_va_copy(d,s) 18 19 #else20 21 #define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))22 23 #define __crt_va_start(ap, v) ((void)(ap = (va_list)&(v) + _INTSIZEOF(v)))24 #define __crt_va_arg(ap, t) (*(t*)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)))25 #define __crt_va_end(ap) ((void)(ap = (va_list)0))26 27 #define va_start __crt_va_start28 #define va_arg __crt_va_arg29 #define va_end __crt_va_end30 #define va_copy(destination, source) ((destination) = (source))31 32 #endif33 16 34 17 #ifdef __cplusplus -
azure_iot_hub/trunk/musl-1.1.18/include/stdio.h
r389 r390 22 22 #include <bits/alltypes.h> 23 23 24 #ifndef _UCRT25 24 #ifdef __cplusplus 26 25 #define NULL 0L 27 26 #else 28 27 #define NULL ((void*)0) 29 #endif30 28 #endif 31 29 -
azure_iot_hub/trunk/musl-1.1.18/src/env/__init_tls.c
r389 r390 72 72 #endif 73 73 74 #ifndef __c2__75 74 __attribute__((__weak__, __visibility__("hidden"))) 76 #endif77 75 extern const size_t _DYNAMIC[]; 78 76 … … 136 134 } 137 135 138 #ifndef __c2__139 136 weak_alias(static_init_tls, __init_tls); 140 #else141 void __init_tls(size_t *aux)142 {143 static_init_tls(aux);144 }145 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/env/__libc_start_main.c
r389 r390 9 9 void __init_tls(size_t *); 10 10 11 #ifndef __c2__12 11 static void dummy(void) {} 13 12 weak_alias(dummy, _init); 14 #else15 __attribute((weak))16 void _init(void) {}17 #endif18 13 19 #ifndef __c2__20 14 __attribute__((__weak__, __visibility__("hidden"))) 21 15 extern void (*const __init_array_start)(void), (*const __init_array_end)(void); 22 #else23 extern void(*const __init_array_start)(void);24 #define __init_array_end __init_array_start25 #endif26 16 27 #ifndef __c2__28 17 static void dummy1(void *p) {} 29 18 weak_alias(dummy1, __init_ssp); 30 #else31 __attribute((weak))32 void __init_ssp(void *p) {}33 #endif34 19 35 20 #define AUX_CNT 38 … … 77 62 } 78 63 79 #ifndef __c2__80 64 weak_alias(libc_start_init, __libc_start_init); 81 #else82 void __libc_start_init(void)83 {84 libc_start_init();85 }86 #undef exit87 #define exit(x) x88 #endif89 65 90 66 int __libc_start_main(int (*main)(int,char **,char **), int argc, char **argv) -
azure_iot_hub/trunk/musl-1.1.18/src/env/clearenv.c
r389 r390 3 3 #include "libc.h" 4 4 5 #ifndef __c2__6 5 static void dummy(char *old, char *new) {} 7 6 weak_alias(dummy, __env_rm_add); 8 #else9 extern void __env_rm_add(char *old, char *new);10 #endif11 7 12 8 int clearenv() -
azure_iot_hub/trunk/musl-1.1.18/src/env/putenv.c
r389 r390 5 5 char *__strchrnul(const char *, int); 6 6 7 #ifndef __c2__8 7 static void dummy(char *old, char *new) {} 9 8 weak_alias(dummy, __env_rm_add); 10 #else11 extern void __env_rm_add(char *old, char *new);12 #endif13 9 14 10 int __putenv(char *s, size_t l, char *r) -
azure_iot_hub/trunk/musl-1.1.18/src/env/unsetenv.c
r389 r390 6 6 char *__strchrnul(const char *, int); 7 7 8 #ifndef __c2__9 8 static void dummy(char *old, char *new) {} 10 9 weak_alias(dummy, __env_rm_add); 11 #else12 extern void __env_rm_add(char *old, char *new);13 #endif14 10 15 11 int unsetenv(const char *name) -
azure_iot_hub/trunk/musl-1.1.18/src/exit/exit.c
r389 r390 3 3 #include "libc.h" 4 4 5 #ifndef __c2__6 5 static void dummy() 7 6 { … … 13 12 weak_alias(dummy, __stdio_exit); 14 13 weak_alias(dummy, _fini); 15 #else16 __attribute__((weak))17 void __funcs_on_exit() { }18 void __stdio_exit();19 __attribute__((weak))20 void _fini() { }21 #endif22 14 23 15 __attribute__((__weak__, __visibility__("hidden"))) … … 32 24 } 33 25 34 #ifndef __c2__35 26 weak_alias(libc_exit_fini, __libc_exit_fini); 36 #else37 void __libc_exit_fini(void);38 #endif39 27 40 28 _Noreturn void exit(int code) -
azure_iot_hub/trunk/musl-1.1.18/src/internal/atomic.h
r389 r390 195 195 #ifndef a_barrier 196 196 #define a_barrier a_barrier 197 static inlinevoid a_barrier()197 static void a_barrier() 198 198 { 199 199 volatile int tmp = 0; -
azure_iot_hub/trunk/musl-1.1.18/src/ldso/dl_iterate_phdr.c
r389 r390 5 5 #define AUX_CNT 38 6 6 7 #ifndef __c2__8 7 __attribute__((__weak__, __visibility__("hidden"))) 9 #endif10 8 extern const size_t _DYNAMIC[]; 11 9 -
azure_iot_hub/trunk/musl-1.1.18/src/ldso/tlsdesc.c
r389 r390 10 10 } 11 11 12 #ifndef __c2__13 12 weak_alias(__tlsdesc_static, __tlsdesc_dynamic); 14 #else15 ptrdiff_t __tlsdesc_dynamic()16 {17 return __tlsdesc_static();18 }19 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/mman/mmap.c
r389 r390 7 7 #include "libc.h" 8 8 9 #ifndef __c2__10 9 static void dummy(void) { } 11 10 weak_alias(dummy, __vm_wait); 12 #else13 extern void __vm_wait(void);14 #endif15 11 16 12 #define UNIT SYSCALL_MMAP2_UNIT … … 42 38 } 43 39 44 #ifndef __c2__45 40 weak_alias(__mmap, mmap); 46 #else47 void *mmap(void *start, size_t len, int prot, int flags, int fd, off_t off)48 {49 return __mmap(start, len, prot, flags, fd, off);50 }51 #endif52 41 53 42 LFS64(mmap); -
azure_iot_hub/trunk/musl-1.1.18/src/mman/mprotect.c
r389 r390 11 11 } 12 12 13 #ifndef __c2__14 13 weak_alias(__mprotect, mprotect); 15 #else16 int mprotect(void *addr, size_t len, int prot)17 {18 return __mprotect(addr, len, prot);19 }20 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/mman/mremap.c
r389 r390 8 8 #include "libc.h" 9 9 10 #ifndef __c2__11 10 static void dummy(void) { } 12 11 weak_alias(dummy, __vm_wait); 13 #else14 extern void __vm_wait(void);15 #endif16 12 17 13 void *__mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...) -
azure_iot_hub/trunk/musl-1.1.18/src/mman/munmap.c
r389 r390 3 3 #include "libc.h" 4 4 5 #ifndef __c2__6 5 static void dummy(void) { } 7 6 weak_alias(dummy, __vm_wait); 8 #else9 extern void __vm_wait(void);10 #endif11 7 12 8 int __munmap(void *start, size_t len) … … 16 12 } 17 13 18 #ifndef __c2__19 14 weak_alias(__munmap, munmap); 20 #else21 int munmap(void *start, size_t len)22 {23 return __munmap(start, len);24 }25 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/process/fork.c
r389 r390 6 6 #include "pthread_impl.h" 7 7 8 #ifndef __c2__9 8 static void dummy(int x) 10 9 { … … 12 11 13 12 weak_alias(dummy, __fork_handler); 14 #else15 extern void __fork_handler(int x);16 #endif17 13 18 14 pid_t fork(void) -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__fdopen.c
r389 r390 58 58 } 59 59 60 #ifndef __c2__61 60 weak_alias(__fdopen, fdopen); 62 #else63 FILE *fdopen(int fd, const char *mode)64 {65 return __fdopen(fd, mode);66 }67 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__stdio_close.c
r389 r390 1 1 #include "stdio_impl.h" 2 2 3 #ifndef __c2__4 3 static int dummy(int fd) 5 4 { … … 8 7 9 8 weak_alias(dummy, __aio_close); 10 #else11 extern int __aio_close(int fd);12 #endif13 9 14 10 int __stdio_close(FILE *f) -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/__stdio_exit.c
r389 r390 1 1 #include "stdio_impl.h" 2 2 3 #ifndef __c2__4 3 static FILE *volatile dummy_file = 0; 5 4 weak_alias(dummy_file, __stdin_used); 6 5 weak_alias(dummy_file, __stdout_used); 7 6 weak_alias(dummy_file, __stderr_used); 8 #else9 extern FILE *volatile __stdin_used;10 extern FILE *volatile __stdout_used;11 #endif12 7 13 8 static void close_file(FILE *f) … … 27 22 } 28 23 29 #ifndef __c2__30 24 weak_alias(__stdio_exit, __stdio_exit_needed); 31 #else32 void __stdio_exit_needed(void)33 {34 __stdio_exit();35 }36 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/fflush.c
r389 r390 2 2 3 3 /* stdout.c will override this if linked */ 4 #ifndef __c2__5 4 static FILE *volatile dummy = 0; 6 5 weak_alias(dummy, __stdout_used); 7 #else8 extern FILE *volatile __stdout_used;9 #endif10 6 11 7 int fflush(FILE *f) … … 46 42 } 47 43 48 #ifndef __c2__49 44 weak_alias(fflush, fflush_unlocked); 50 #else51 int fflush_unlocked(FILE *f)52 {53 return fflush_unlocked(f);54 }55 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/fwrite.c
r389 r390 36 36 } 37 37 38 #ifndef __c2__39 38 weak_alias(fwrite, fwrite_unlocked); 40 #else41 size_t fwrite_unlocked(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f)42 {43 return fwrite(src, size, nmemb, f);44 }45 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/vsnprintf.c
r389 r390 54 54 return vfprintf(&f, fmt, ap); 55 55 } 56 57 #ifdef __c2__58 int _vsnprintf(char *restrict s, size_t n, const char *restrict fmt, va_list ap)59 {60 return vsnprintf(s, n, fmt, ap);61 }62 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/stdio/vsscanf.c
r389 r390 17 17 18 18 weak_alias(vsscanf,__isoc99_vsscanf); 19 20 #ifdef __c2__21 void _vacopy(va_list a, va_list b)22 {23 void *c;24 c = *(void **)b;25 *(void **)a = &c;26 }27 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/__set_thread_area.c
r389 r390 3 3 int __set_thread_area(void *p) 4 4 { 5 #ifndef __c2__6 5 __asm__ __volatile__ ( "mvtc %0, fintv" : : "r"(p) : "memory" ); 7 6 return 0; 8 #else9 #ifdef SYS_set_thread_area10 return __syscall(SYS_set_thread_area, p);11 #else12 return -ENOSYS;13 #endif14 #endif15 7 } -
azure_iot_hub/trunk/musl-1.1.18/src/thread/__syscall_cp.c
r389 r390 2 2 #include "syscall.h" 3 3 4 #undef sccp5 4 __attribute__((__visibility__("hidden"))) 6 5 long __syscall_cp_c(); … … 13 12 } 14 13 15 #ifndef __c2__16 14 weak_alias(sccp, __syscall_cp_c); 17 #else18 long __syscall_cp_c(syscall_arg_t nr,19 syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,20 syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)21 {22 return sccp(nr, u, v, w, x, y, z);23 }24 #endif25 15 26 16 long (__syscall_cp)(syscall_arg_t nr, -
azure_iot_hub/trunk/musl-1.1.18/src/thread/__tls_get_addr.c
r389 r390 14 14 } 15 15 16 #ifndef __c2__17 16 weak_alias(__tls_get_addr, __tls_get_new); 18 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_cleanup_push.c
r389 r390 1 1 #include "pthread_impl.h" 2 2 3 #ifndef __c2__4 3 static void dummy(struct __ptcb *cb) 5 4 { … … 7 6 weak_alias(dummy, __do_cleanup_push); 8 7 weak_alias(dummy, __do_cleanup_pop); 9 #else10 extern void __do_cleanup_push(struct __ptcb *cb);11 extern void __do_cleanup_pop(struct __ptcb *cb);12 #endif13 8 14 9 void _pthread_cleanup_push(struct __ptcb *cb, void (*f)(void *), void *x) -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_cond_timedwait.c
r389 r390 212 212 } 213 213 214 #ifndef __c2__215 214 weak_alias(__pthread_cond_timedwait, pthread_cond_timedwait); 216 #else217 int pthread_cond_timedwait(pthread_cond_t *restrict c, pthread_mutex_t *restrict m, const struct timespec *restrict ts)218 {219 return __pthread_cond_timedwait(c, m, ts);220 }221 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_create.c
r389 r390 14 14 { 15 15 } 16 #ifndef __c2__17 16 weak_alias(dummy_0, __acquire_ptc); 18 17 weak_alias(dummy_0, __release_ptc); 19 #else20 extern void __acquire_ptc();21 extern void __release_ptc();22 #endif23 18 weak_alias(dummy_0, __pthread_tsd_run_dtors); 24 19 weak_alias(dummy_0, __do_orphaned_stdio_locks); … … 168 163 169 164 /* pthread_key_create.c overrides this */ 170 #ifndef __c2__171 165 static volatile size_t dummy = 0; 172 166 weak_alias(dummy, __pthread_tsd_size); 173 167 static void *dummy_tsd[1] = { 0 }; 174 168 weak_alias(dummy_tsd, __pthread_tsd_main); 175 #else176 extern volatile size_t __pthread_tsd_size;177 extern void *__pthread_tsd_main;178 #endif179 169 180 170 volatile int __block_new_threads = 0; … … 182 172 size_t __default_guardsize = DEFAULT_GUARD_SIZE; 183 173 184 #ifndef __c2__185 174 static FILE *volatile dummy_file = 0; 186 175 weak_alias(dummy_file, __stdin_used); 187 176 weak_alias(dummy_file, __stdout_used); 188 177 weak_alias(dummy_file, __stderr_used); 189 #else190 extern FILE *volatile __stdin_used;191 extern FILE *volatile __stdout_used;192 extern FILE *volatile __stderr_used;193 #endif194 178 195 179 static void init_file_lock(FILE *f) … … 329 313 } 330 314 331 #ifndef __c2__332 315 weak_alias(__pthread_exit, pthread_exit); 333 316 weak_alias(__pthread_create, pthread_create); 334 #else335 _Noreturn void pthread_exit(void *result)336 {337 __pthread_exit(result);338 }339 340 int pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp, void *(*entry)(void *), void *restrict arg)341 {342 return __pthread_create(res, attrp, entry, arg);343 }344 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_mutex_lock.c
r389 r390 12 12 } 13 13 14 #ifndef __c2__15 14 weak_alias(__pthread_mutex_lock, pthread_mutex_lock); 16 #else17 int pthread_mutex_lock(pthread_mutex_t *m)18 {19 return __pthread_mutex_lock(m);20 }21 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_mutex_trylock.c
r389 r390 56 56 } 57 57 58 #ifndef __c2__59 58 weak_alias(__pthread_mutex_trylock, pthread_mutex_trylock); 60 #else61 int pthread_mutex_trylock(pthread_mutex_t *m)62 {63 return __pthread_mutex_trylock(m);64 }65 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_mutex_unlock.c
r389 r390 35 35 } 36 36 37 #ifndef __c2__38 37 weak_alias(__pthread_mutex_unlock, pthread_mutex_unlock); 39 #else40 int pthread_mutex_unlock(pthread_mutex_t *m)41 {42 return __pthread_mutex_unlock(m);43 }44 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_self.c
r389 r390 8 8 } 9 9 10 #ifndef __c2__11 10 weak_alias(__pthread_self_internal, pthread_self); 12 11 weak_alias(__pthread_self_internal, thrd_current); 13 #else14 pthread_t pthread_self()15 {16 return __pthread_self_internal();17 }18 19 pthread_t thrd_current()20 {21 return __pthread_self_internal();22 }23 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_setcancelstate.c
r389 r390 10 10 } 11 11 12 #ifndef __c2__13 12 weak_alias(__pthread_setcancelstate, pthread_setcancelstate); 14 #else15 int pthread_setcancelstate(int new, int *old)16 {17 return __pthread_setcancelstate(new, old);18 }19 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_testcancel.c
r389 r390 13 13 } 14 14 15 #ifndef __c2__16 15 weak_alias(__pthread_testcancel, pthread_testcancel); 17 #else18 void pthread_testcancel()19 {20 __pthread_testcancel();21 }22 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/thread/synccall.c
r389 r390 18 18 static volatile int target_tid; 19 19 static void (*callback)(void *), *context; 20 #ifndef __c2__21 20 static volatile int dummy = 0; 22 21 weak_alias(dummy, __block_new_threads); 23 #else24 extern volatile int __block_new_threads;25 #endif26 22 27 23 static void handler(int sig) -
azure_iot_hub/trunk/musl-1.1.18/src/time/clock_gettime.c
r389 r390 56 56 } 57 57 58 #ifndef __c2__59 58 weak_alias(__clock_gettime, clock_gettime); 60 #else61 int clock_gettime(clockid_t clk, struct timespec *ts)62 {63 return __clock_gettime(clk, ts);64 }65 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/time/gmtime_r.c
r389 r390 17 17 } 18 18 19 #ifndef __c2__20 19 weak_alias(__gmtime_r, gmtime_r); 21 #else22 struct tm *gmtime_r(const time_t *restrict t, struct tm *restrict tm)23 {24 return __gmtime_r(t, tm);25 }26 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/time/localtime_r.c
r389 r390 19 19 } 20 20 21 #ifndef __c2__22 21 weak_alias(__localtime_r, localtime_r); 23 #else24 struct tm *localtime_r(const time_t *restrict t, struct tm *restrict tm)25 {26 return __localtime_r(t, tm);27 }28 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/time/timer_create.c
r389 r390 15 15 }; 16 16 17 #ifndef __c2__18 17 static void dummy_1(pthread_t self) 19 18 { 20 19 } 21 20 weak_alias(dummy_1, __pthread_tsd_run_dtors); 22 #else23 extern void __pthread_tsd_run_dtors(pthread_t self);24 #endif25 21 26 22 void __reset_tls(); -
azure_iot_hub/trunk/musl-1.1.18/src/unistd/close.c
r389 r390 4 4 #include "libc.h" 5 5 6 #ifndef __c2__7 6 static int dummy(int fd) 8 7 { … … 11 10 12 11 weak_alias(dummy, __aio_close); 13 #else14 extern int __aio_close(int fd);15 #endif16 12 17 13 int close(int fd)
Note:
See TracChangeset
for help on using the changeset viewer.