Changeset 390


Ignore:
Timestamp:
23/05/19 00:45:39 (8 months ago)
Author:
coas-nagasima
Message:

コードを整理

Location:
azure_iot_hub/trunk
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • azure_iot_hub/trunk/app_iothub_client/src/client.c

    r389 r390  
    160160        else
    161161        {
    162 #if 0
     162#if 1
    163163                (void)printf("Starting the IoTHub client sample HTTP...\r\n");
    164164                IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol = HTTP_Protocol;
     
    235235                                                temperature = minTemperature + (rand() % 10);
    236236                                                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);
    238238                                                if ((messages[iterator].messageHandle = IoTHubMessage_CreateFromByteArray((const unsigned char*)msgText, strlen(msgText))) == NULL)
    239239                                                {
  • azure_iot_hub/trunk/musl-1.1.18/include/bits/alltypes.h

    r389 r390  
    1 #ifdef _MSC_VER
    2 #define __builtin_va_list char *
    3 #define __NEED_va_list
    4 #define restrict __restrict
    5 #endif
    6 
    71#define _Addr int
    82#define _Int64 long long
     
    4640
    4741#if defined(__NEED_time_t) && !defined(__DEFINED_time_t)
    48 #if defined(_MSC_VER) || defined(__c2__)
    49 typedef long long time_t;
    50 #else
    5142typedef long time_t;
    52 #endif
    5343#define __DEFINED_time_t
    5444#endif
  • azure_iot_hub/trunk/musl-1.1.18/include/bits/errno.h

    r389 r390  
    1 #ifdef _INC_ERRNO
    2 #undef EADDRINUSE
    3 #undef EADDRNOTAVAIL
    4 #undef EAFNOSUPPORT
    5 #undef EALREADY
    6 #undef EBADMSG
    7 #undef ECANCELED
    8 #undef ECONNABORTED
    9 #undef ECONNREFUSED
    10 #undef ECONNRESET
    11 #undef EDEADLK
    12 #undef EDESTADDRREQ
    13 #undef EHOSTUNREACH
    14 #undef EIDRM
    15 #undef EILSEQ
    16 #undef EINPROGRESS
    17 #undef EISCONN
    18 #undef ELOOP
    19 #undef EMSGSIZE
    20 #undef ENAMETOOLONG
    21 #undef ENETDOWN
    22 #undef ENETRESET
    23 #undef ENETUNREACH
    24 #undef ENOBUFS
    25 #undef ENODATA
    26 #undef ENOLCK
    27 #undef ENOLINK
    28 #undef ENOMSG
    29 #undef ENOPROTOOPT
    30 #undef ENOSR
    31 #undef ENOSTR
    32 #undef ENOSYS
    33 #undef ENOTCONN
    34 #undef ENOTEMPTY
    35 #undef ENOTRECOVERABLE
    36 #undef ENOTSOCK
    37 #undef ENOTSUP
    38 #undef EOPNOTSUPP
    39 #undef EOVERFLOW
    40 #undef EOWNERDEAD
    41 #undef EPROTO
    42 #undef EPROTONOSUPPORT
    43 #undef EPROTOTYPE
    44 #undef ETIME
    45 #undef ETIMEDOUT
    46 #undef ETXTBSY
    47 #undef EWOULDBLOCK
    48 #endif
    49 
    501#define EPERM            1
    512#define ENOENT           2
  • azure_iot_hub/trunk/musl-1.1.18/include/setjmp.h

    r389 r390  
    3333_Noreturn void longjmp (jmp_buf, int);
    3434
    35 #if !defined(_MSC_VER) && !defined(__c2__)
    36 #define setjmp __builtin_setjmp
    37 #else
    3835#define setjmp setjmp
    39 #endif
    4036
    4137#ifdef __cplusplus
  • azure_iot_hub/trunk/musl-1.1.18/include/stdarg.h

    r389 r390  
    1010#include <bits/alltypes.h>
    1111
    12 #if !defined(_MSC_VER) && !defined(__c2__)
    13 
    1412#define va_start(v,l)   __builtin_va_start(v,l)
    1513#define va_end(v)       __builtin_va_end(v)
    1614#define va_arg(v,l)     __builtin_va_arg(v,l)
    1715#define va_copy(d,s)    __builtin_va_copy(d,s)
    18 
    19 #else
    20 
    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_start
    28 #define va_arg   __crt_va_arg
    29 #define va_end   __crt_va_end
    30 #define va_copy(destination, source) ((destination) = (source))
    31 
    32 #endif
    3316
    3417#ifdef __cplusplus
  • azure_iot_hub/trunk/musl-1.1.18/include/stdio.h

    r389 r390  
    2222#include <bits/alltypes.h>
    2323
    24 #ifndef _UCRT
    2524#ifdef __cplusplus
    2625#define NULL 0L
    2726#else
    2827#define NULL ((void*)0)
    29 #endif
    3028#endif
    3129
  • azure_iot_hub/trunk/musl-1.1.18/src/env/__init_tls.c

    r389 r390  
    7272#endif
    7373
    74 #ifndef __c2__
    7574__attribute__((__weak__, __visibility__("hidden")))
    76 #endif
    7775extern const size_t _DYNAMIC[];
    7876
     
    136134}
    137135
    138 #ifndef __c2__
    139136weak_alias(static_init_tls, __init_tls);
    140 #else
    141 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  
    99void __init_tls(size_t *);
    1010
    11 #ifndef __c2__
    1211static void dummy(void) {}
    1312weak_alias(dummy, _init);
    14 #else
    15 __attribute((weak))
    16 void _init(void) {}
    17 #endif
    1813
    19 #ifndef __c2__
    2014__attribute__((__weak__, __visibility__("hidden")))
    2115extern void (*const __init_array_start)(void), (*const __init_array_end)(void);
    22 #else
    23 extern void(*const __init_array_start)(void);
    24 #define __init_array_end __init_array_start
    25 #endif
    2616
    27 #ifndef __c2__
    2817static void dummy1(void *p) {}
    2918weak_alias(dummy1, __init_ssp);
    30 #else
    31 __attribute((weak))
    32 void __init_ssp(void *p) {}
    33 #endif
    3419
    3520#define AUX_CNT 38
     
    7762}
    7863
    79 #ifndef __c2__
    8064weak_alias(libc_start_init, __libc_start_init);
    81 #else
    82 void __libc_start_init(void)
    83 {
    84         libc_start_init();
    85 }
    86 #undef exit
    87 #define exit(x) x
    88 #endif
    8965
    9066int __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  
    33#include "libc.h"
    44
    5 #ifndef __c2__
    65static void dummy(char *old, char *new) {}
    76weak_alias(dummy, __env_rm_add);
    8 #else
    9 extern void __env_rm_add(char *old, char *new);
    10 #endif
    117
    128int clearenv()
  • azure_iot_hub/trunk/musl-1.1.18/src/env/putenv.c

    r389 r390  
    55char *__strchrnul(const char *, int);
    66
    7 #ifndef __c2__
    87static void dummy(char *old, char *new) {}
    98weak_alias(dummy, __env_rm_add);
    10 #else
    11 extern void __env_rm_add(char *old, char *new);
    12 #endif
    139
    1410int __putenv(char *s, size_t l, char *r)
  • azure_iot_hub/trunk/musl-1.1.18/src/env/unsetenv.c

    r389 r390  
    66char *__strchrnul(const char *, int);
    77
    8 #ifndef __c2__
    98static void dummy(char *old, char *new) {}
    109weak_alias(dummy, __env_rm_add);
    11 #else
    12 extern void __env_rm_add(char *old, char *new);
    13 #endif
    1410
    1511int unsetenv(const char *name)
  • azure_iot_hub/trunk/musl-1.1.18/src/exit/exit.c

    r389 r390  
    33#include "libc.h"
    44
    5 #ifndef __c2__
    65static void dummy()
    76{
     
    1312weak_alias(dummy, __stdio_exit);
    1413weak_alias(dummy, _fini);
    15 #else
    16 __attribute__((weak))
    17 void __funcs_on_exit() { }
    18 void __stdio_exit();
    19 __attribute__((weak))
    20 void _fini() { }
    21 #endif
    2214
    2315__attribute__((__weak__, __visibility__("hidden")))
     
    3224}
    3325
    34 #ifndef __c2__
    3526weak_alias(libc_exit_fini, __libc_exit_fini);
    36 #else
    37 void __libc_exit_fini(void);
    38 #endif
    3927
    4028_Noreturn void exit(int code)
  • azure_iot_hub/trunk/musl-1.1.18/src/internal/atomic.h

    r389 r390  
    195195#ifndef a_barrier
    196196#define a_barrier a_barrier
    197 static inline void a_barrier()
     197static void a_barrier()
    198198{
    199199        volatile int tmp = 0;
  • azure_iot_hub/trunk/musl-1.1.18/src/ldso/dl_iterate_phdr.c

    r389 r390  
    55#define AUX_CNT 38
    66
    7 #ifndef __c2__
    87__attribute__((__weak__, __visibility__("hidden")))
    9 #endif
    108extern const size_t _DYNAMIC[];
    119
  • azure_iot_hub/trunk/musl-1.1.18/src/ldso/tlsdesc.c

    r389 r390  
    1010}
    1111
    12 #ifndef __c2__
    1312weak_alias(__tlsdesc_static, __tlsdesc_dynamic);
    14 #else
    15 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  
    77#include "libc.h"
    88
    9 #ifndef __c2__
    109static void dummy(void) { }
    1110weak_alias(dummy, __vm_wait);
    12 #else
    13 extern void __vm_wait(void);
    14 #endif
    1511
    1612#define UNIT SYSCALL_MMAP2_UNIT
     
    4238}
    4339
    44 #ifndef __c2__
    4540weak_alias(__mmap, mmap);
    46 #else
    47 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 #endif
    5241
    5342LFS64(mmap);
  • azure_iot_hub/trunk/musl-1.1.18/src/mman/mprotect.c

    r389 r390  
    1111}
    1212
    13 #ifndef __c2__
    1413weak_alias(__mprotect, mprotect);
    15 #else
    16 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  
    88#include "libc.h"
    99
    10 #ifndef __c2__
    1110static void dummy(void) { }
    1211weak_alias(dummy, __vm_wait);
    13 #else
    14 extern void __vm_wait(void);
    15 #endif
    1612
    1713void *__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  
    33#include "libc.h"
    44
    5 #ifndef __c2__
    65static void dummy(void) { }
    76weak_alias(dummy, __vm_wait);
    8 #else
    9 extern void __vm_wait(void);
    10 #endif
    117
    128int __munmap(void *start, size_t len)
     
    1612}
    1713
    18 #ifndef __c2__
    1914weak_alias(__munmap, munmap);
    20 #else
    21 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  
    66#include "pthread_impl.h"
    77
    8 #ifndef __c2__
    98static void dummy(int x)
    109{
     
    1211
    1312weak_alias(dummy, __fork_handler);
    14 #else
    15 extern void __fork_handler(int x);
    16 #endif
    1713
    1814pid_t fork(void)
  • azure_iot_hub/trunk/musl-1.1.18/src/stdio/__fdopen.c

    r389 r390  
    5858}
    5959
    60 #ifndef __c2__
    6160weak_alias(__fdopen, fdopen);
    62 #else
    63 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  
    11#include "stdio_impl.h"
    22
    3 #ifndef __c2__
    43static int dummy(int fd)
    54{
     
    87
    98weak_alias(dummy, __aio_close);
    10 #else
    11 extern int __aio_close(int fd);
    12 #endif
    139
    1410int __stdio_close(FILE *f)
  • azure_iot_hub/trunk/musl-1.1.18/src/stdio/__stdio_exit.c

    r389 r390  
    11#include "stdio_impl.h"
    22
    3 #ifndef __c2__
    43static FILE *volatile dummy_file = 0;
    54weak_alias(dummy_file, __stdin_used);
    65weak_alias(dummy_file, __stdout_used);
    76weak_alias(dummy_file, __stderr_used);
    8 #else
    9 extern FILE *volatile __stdin_used;
    10 extern FILE *volatile __stdout_used;
    11 #endif
    127
    138static void close_file(FILE *f)
     
    2722}
    2823
    29 #ifndef __c2__
    3024weak_alias(__stdio_exit, __stdio_exit_needed);
    31 #else
    32 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  
    22
    33/* stdout.c will override this if linked */
    4 #ifndef __c2__
    54static FILE *volatile dummy = 0;
    65weak_alias(dummy, __stdout_used);
    7 #else
    8 extern FILE *volatile __stdout_used;
    9 #endif
    106
    117int fflush(FILE *f)
     
    4642}
    4743
    48 #ifndef __c2__
    4944weak_alias(fflush, fflush_unlocked);
    50 #else
    51 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  
    3636}
    3737
    38 #ifndef __c2__
    3938weak_alias(fwrite, fwrite_unlocked);
    40 #else
    41 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  
    5454        return vfprintf(&f, fmt, ap);
    5555}
    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  
    1717
    1818weak_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  
    33int __set_thread_area(void *p)
    44{
    5 #ifndef __c2__
    65        __asm__ __volatile__ ( "mvtc %0, fintv" : : "r"(p) : "memory" );
    76        return 0;
    8 #else
    9 #ifdef SYS_set_thread_area
    10         return __syscall(SYS_set_thread_area, p);
    11 #else
    12         return -ENOSYS;
    13 #endif
    14 #endif
    157}
  • azure_iot_hub/trunk/musl-1.1.18/src/thread/__syscall_cp.c

    r389 r390  
    22#include "syscall.h"
    33
    4 #undef sccp
    54__attribute__((__visibility__("hidden")))
    65long __syscall_cp_c();
     
    1312}
    1413
    15 #ifndef __c2__
    1614weak_alias(sccp, __syscall_cp_c);
    17 #else
    18 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 #endif
    2515
    2616long (__syscall_cp)(syscall_arg_t nr,
  • azure_iot_hub/trunk/musl-1.1.18/src/thread/__tls_get_addr.c

    r389 r390  
    1414}
    1515
    16 #ifndef __c2__
    1716weak_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  
    11#include "pthread_impl.h"
    22
    3 #ifndef __c2__
    43static void dummy(struct __ptcb *cb)
    54{
     
    76weak_alias(dummy, __do_cleanup_push);
    87weak_alias(dummy, __do_cleanup_pop);
    9 #else
    10 extern void __do_cleanup_push(struct __ptcb *cb);
    11 extern void __do_cleanup_pop(struct __ptcb *cb);
    12 #endif
    138
    149void _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  
    212212}
    213213
    214 #ifndef __c2__
    215214weak_alias(__pthread_cond_timedwait, pthread_cond_timedwait);
    216 #else
    217 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  
    1414{
    1515}
    16 #ifndef __c2__
    1716weak_alias(dummy_0, __acquire_ptc);
    1817weak_alias(dummy_0, __release_ptc);
    19 #else
    20 extern void __acquire_ptc();
    21 extern void __release_ptc();
    22 #endif
    2318weak_alias(dummy_0, __pthread_tsd_run_dtors);
    2419weak_alias(dummy_0, __do_orphaned_stdio_locks);
     
    168163
    169164/* pthread_key_create.c overrides this */
    170 #ifndef __c2__
    171165static volatile size_t dummy = 0;
    172166weak_alias(dummy, __pthread_tsd_size);
    173167static void *dummy_tsd[1] = { 0 };
    174168weak_alias(dummy_tsd, __pthread_tsd_main);
    175 #else
    176 extern volatile size_t __pthread_tsd_size;
    177 extern void *__pthread_tsd_main;
    178 #endif
    179169
    180170volatile int __block_new_threads = 0;
     
    182172size_t __default_guardsize = DEFAULT_GUARD_SIZE;
    183173
    184 #ifndef __c2__
    185174static FILE *volatile dummy_file = 0;
    186175weak_alias(dummy_file, __stdin_used);
    187176weak_alias(dummy_file, __stdout_used);
    188177weak_alias(dummy_file, __stderr_used);
    189 #else
    190 extern FILE *volatile __stdin_used;
    191 extern FILE *volatile __stdout_used;
    192 extern FILE *volatile __stderr_used;
    193 #endif
    194178
    195179static void init_file_lock(FILE *f)
     
    329313}
    330314
    331 #ifndef __c2__
    332315weak_alias(__pthread_exit, pthread_exit);
    333316weak_alias(__pthread_create, pthread_create);
    334 #else
    335 _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  
    1212}
    1313
    14 #ifndef __c2__
    1514weak_alias(__pthread_mutex_lock, pthread_mutex_lock);
    16 #else
    17 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  
    5656}
    5757
    58 #ifndef __c2__
    5958weak_alias(__pthread_mutex_trylock, pthread_mutex_trylock);
    60 #else
    61 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  
    3535}
    3636
    37 #ifndef __c2__
    3837weak_alias(__pthread_mutex_unlock, pthread_mutex_unlock);
    39 #else
    40 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  
    88}
    99
    10 #ifndef __c2__
    1110weak_alias(__pthread_self_internal, pthread_self);
    1211weak_alias(__pthread_self_internal, thrd_current);
    13 #else
    14 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  
    1010}
    1111
    12 #ifndef __c2__
    1312weak_alias(__pthread_setcancelstate, pthread_setcancelstate);
    14 #else
    15 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  
    1313}
    1414
    15 #ifndef __c2__
    1615weak_alias(__pthread_testcancel, pthread_testcancel);
    17 #else
    18 void pthread_testcancel()
    19 {
    20         __pthread_testcancel();
    21 }
    22 #endif
  • azure_iot_hub/trunk/musl-1.1.18/src/thread/synccall.c

    r389 r390  
    1818static volatile int target_tid;
    1919static void (*callback)(void *), *context;
    20 #ifndef __c2__
    2120static volatile int dummy = 0;
    2221weak_alias(dummy, __block_new_threads);
    23 #else
    24 extern volatile int __block_new_threads;
    25 #endif
    2622
    2723static void handler(int sig)
  • azure_iot_hub/trunk/musl-1.1.18/src/time/clock_gettime.c

    r389 r390  
    5656}
    5757
    58 #ifndef __c2__
    5958weak_alias(__clock_gettime, clock_gettime);
    60 #else
    61 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  
    1717}
    1818
    19 #ifndef __c2__
    2019weak_alias(__gmtime_r, gmtime_r);
    21 #else
    22 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  
    1919}
    2020
    21 #ifndef __c2__
    2221weak_alias(__localtime_r, localtime_r);
    23 #else
    24 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  
    1515};
    1616
    17 #ifndef __c2__
    1817static void dummy_1(pthread_t self)
    1918{
    2019}
    2120weak_alias(dummy_1, __pthread_tsd_run_dtors);
    22 #else
    23 extern void __pthread_tsd_run_dtors(pthread_t self);
    24 #endif
    2521
    2622void __reset_tls();
  • azure_iot_hub/trunk/musl-1.1.18/src/unistd/close.c

    r389 r390  
    44#include "libc.h"
    55
    6 #ifndef __c2__
    76static int dummy(int fd)
    87{
     
    1110
    1211weak_alias(dummy, __aio_close);
    13 #else
    14 extern int __aio_close(int fd);
    15 #endif
    1612
    1713int close(int fd)
Note: See TracChangeset for help on using the changeset viewer.