== asctime() ================================================ -- asctime() [ found: 0 ] ----------------------------------- == basename() ================================================ -- basename() [ found: 0 ] ----------------------------------- == catgets() ================================================ -- catgets() [ found: 0 ] ----------------------------------- == crypt() ================================================ -- crypt() [ found: 0 ] ----------------------------------- == ctime() ================================================ pjlib/include/pj/file_access.h:48: warning: possible non-threadsafe use of ctime() pj_time_val ctime; pjlib/src/pj/file_access_unistd.c:105: warning: possible non-threadsafe use of ctime() statbuf->ctime.sec = buf.st_ctime; pjlib/src/pj/file_access_unistd.c:106: warning: possible non-threadsafe use of ctime() statbuf->ctime.msec = 0; pjlib/src/pj/file_access_win32.c:207: warning: possible non-threadsafe use of ctime() if (file_time_to_time_val(&creationTime, &stat->ctime) != PJ_SUCCESS) pjlib/src/pjlib-test/file.c:95: warning: possible non-threadsafe use of ctime() if (!PJ_TIME_VAL_GTE(stat.ctime, start_time)) pjlib/src/pjlib-test/file.c:98: warning: possible non-threadsafe use of ctime() PJ_TIME_VAL_SUB(stat.ctime, start_time); pjlib/src/pjlib-test/file.c:99: warning: possible non-threadsafe use of ctime() if (stat.ctime.sec > FILE_MAX_AGE) -- ctime() [ found: 7 ] ----------------------------------- == dbm_clearerr() ================================================ -- dbm_clearerr() [ found: 0 ] ----------------------------------- == dbm_close() ================================================ -- dbm_close() [ found: 0 ] ----------------------------------- == dbm_delete() ================================================ -- dbm_delete() [ found: 0 ] ----------------------------------- == dbm_error() ================================================ -- dbm_error() [ found: 0 ] ----------------------------------- == dbm_fetch() ================================================ -- dbm_fetch() [ found: 0 ] ----------------------------------- == dbm_firstkey() ================================================ -- dbm_firstkey() [ found: 0 ] ----------------------------------- == dbm_nextkey() ================================================ -- dbm_nextkey() [ found: 0 ] ----------------------------------- == dbm_open() ================================================ -- dbm_open() [ found: 0 ] ----------------------------------- == dbm_store() ================================================ -- dbm_store() [ found: 0 ] ----------------------------------- == dirname() ================================================ pjsip-apps/src/pjsua/pjsua_app_common.c:274: warning: possible non-threadsafe use of dirname() const char *dirname; pjsip-apps/src/pjsua/pjsua_app_common.c:279: warning: possible non-threadsafe use of dirname() dirname = "capture, render"; pjsip-apps/src/pjsua/pjsua_app_common.c:281: warning: possible non-threadsafe use of dirname() dirname = "capture"; pjsip-apps/src/pjsua/pjsua_app_common.c:283: warning: possible non-threadsafe use of dirname() dirname = "render"; pjsip-apps/src/pjsua/pjsua_app_common.c:325: warning: possible non-threadsafe use of dirname() dirname, title)); -- dirname() [ found: 5 ] ----------------------------------- == dlerror() ================================================ -- dlerror() [ found: 0 ] ----------------------------------- == drand48() ================================================ -- drand48() [ found: 0 ] ----------------------------------- == encrypt() ================================================ third_party/srtp/crypto/include/cipher.h:162: warning: possible non-threadsafe use of encrypt() cipher_encrypt_func_t encrypt; third_party/srtp/crypto/include/cipher.h:194: warning: possible non-threadsafe use of encrypt() (((c)->type)->encrypt(((c)->state), (buf), (len))) -- encrypt() [ found: 2 ] ----------------------------------- == endgrent() ================================================ -- endgrent() [ found: 0 ] ----------------------------------- == endpwent() ================================================ -- endpwent() [ found: 0 ] ----------------------------------- == endutxent() ================================================ -- endutxent() [ found: 0 ] ----------------------------------- == ftw() ================================================ -- ftw() [ found: 0 ] ----------------------------------- == getdate() ================================================ -- getdate() [ found: 0 ] ----------------------------------- == getenv() ================================================ pjsip-apps/src/swig/python/cc_mingw.c:39: warning: possible non-threadsafe use of getenv() p = getenv("PATH"); -- getenv() [ found: 1 ] ----------------------------------- == getgrent() ================================================ -- getgrent() [ found: 0 ] ----------------------------------- == getgrgid() ================================================ -- getgrgid() [ found: 0 ] ----------------------------------- == getgrnam() ================================================ -- getgrnam() [ found: 0 ] ----------------------------------- == gethostent() ================================================ -- gethostent() [ found: 0 ] ----------------------------------- == getlogin() ================================================ -- getlogin() [ found: 0 ] ----------------------------------- == getnetbyaddr() ================================================ -- getnetbyaddr() [ found: 0 ] ----------------------------------- == getnetbyname() ================================================ -- getnetbyname() [ found: 0 ] ----------------------------------- == getnetent() ================================================ -- getnetent() [ found: 0 ] ----------------------------------- == getopt() ================================================ third_party/gsm/src/toast.c:761: warning: possible non-threadsafe use of getopt() while ((opt = getopt(ac, av, "fcdpvhuaslVFC:")) != EOF) switch (opt) { third_party/gsm/tst/cod2lin.c:84: warning: possible non-threadsafe use of getopt() while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) { third_party/gsm/tst/lin2cod.c:85: warning: possible non-threadsafe use of getopt() while ((opt = getopt(ac, av, "vwF")) != EOF) switch (opt) { third_party/gsm/tst/lin2txt.c:76: warning: possible non-threadsafe use of getopt() while ((opt = getopt(ac, av, "v")) != EOF) switch (opt) { third_party/srtp/crypto/test/auth_driver.c:96: warning: possible non-threadsafe use of getopt() c = getopt(argc, argv, "tv"); -- getopt() [ found: 5 ] ----------------------------------- == getprotobyname() ================================================ -- getprotobyname() [ found: 0 ] ----------------------------------- == getprotobynumber() ================================================ -- getprotobynumber() [ found: 0 ] ----------------------------------- == getprotoent() ================================================ -- getprotoent() [ found: 0 ] ----------------------------------- == getpwent() ================================================ -- getpwent() [ found: 0 ] ----------------------------------- == getpwnam() ================================================ -- getpwnam() [ found: 0 ] ----------------------------------- == getpwuid() ================================================ -- getpwuid() [ found: 0 ] ----------------------------------- == getservbyname() ================================================ -- getservbyname() [ found: 0 ] ----------------------------------- == getservbyport() ================================================ -- getservbyport() [ found: 0 ] ----------------------------------- == getservent() ================================================ -- getservent() [ found: 0 ] ----------------------------------- == getutxent() ================================================ -- getutxent() [ found: 0 ] ----------------------------------- == getutxid() ================================================ -- getutxid() [ found: 0 ] ----------------------------------- == getutxline() ================================================ -- getutxline() [ found: 0 ] ----------------------------------- == gmtime() ================================================ -- gmtime() [ found: 0 ] ----------------------------------- == hcreate() ================================================ -- hcreate() [ found: 0 ] ----------------------------------- == hdestroy() ================================================ -- hdestroy() [ found: 0 ] ----------------------------------- == hsearch() ================================================ -- hsearch() [ found: 0 ] ----------------------------------- == inet_ntoa() ================================================ pjlib/src/pj/sock_bsd.c:224: warning: possible non-threadsafe use of inet_ntoa() return inet_ntoa(*(struct in_addr*)&inaddr); pjlib/src/pj/sock_bsd.c:228: warning: possible non-threadsafe use of inet_ntoa() return inet_ntoa(addr); -- inet_ntoa() [ found: 2 ] ----------------------------------- == l64a() ================================================ -- l64a() [ found: 0 ] ----------------------------------- == lgamma() ================================================ -- lgamma() [ found: 0 ] ----------------------------------- == lgammaf() ================================================ -- lgammaf() [ found: 0 ] ----------------------------------- == lgammal() ================================================ -- lgammal() [ found: 0 ] ----------------------------------- == localeconv() ================================================ -- localeconv() [ found: 0 ] ----------------------------------- == localtime() ================================================ pjlib/src/pj/os_time_common.c:35: warning: possible non-threadsafe use of localtime() local_time = localtime((time_t*)&tv->sec); -- localtime() [ found: 1 ] ----------------------------------- == lrand48() ================================================ -- lrand48() [ found: 0 ] ----------------------------------- == mblen() ================================================ -- mblen() [ found: 0 ] ----------------------------------- == mbtowc() ================================================ -- mbtowc() [ found: 0 ] ----------------------------------- == mrand48() ================================================ -- mrand48() [ found: 0 ] ----------------------------------- == nftw() ================================================ -- nftw() [ found: 0 ] ----------------------------------- == nl_langinfo() ================================================ -- nl_langinfo() [ found: 0 ] ----------------------------------- == ptsname() ================================================ -- ptsname() [ found: 0 ] ----------------------------------- == putenv() ================================================ -- putenv() [ found: 0 ] ----------------------------------- == pututxline() ================================================ -- pututxline() [ found: 0 ] ----------------------------------- == rand() ================================================ third_party/milenage/milenage.h:24: warning: possible non-threadsafe use of rand() void f1 ( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], third_party/milenage/milenage.h:26: warning: possible non-threadsafe use of rand() void f2345 ( u8 k[16], u8 rand[16], third_party/milenage/milenage.h:28: warning: possible non-threadsafe use of rand() void f1star( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], third_party/milenage/milenage.h:30: warning: possible non-threadsafe use of rand() void f5star( u8 k[16], u8 rand[16], third_party/srtp/crypto/include/prng.h:68: warning: possible non-threadsafe use of rand() rand_source_func_t rand; third_party/srtp/crypto/include/prng.h:85: warning: possible non-threadsafe use of rand() rand_source_func_t rand; pjlib/include/pj/compat/rand.h:41: warning: possible non-threadsafe use of rand() return ((rand() & 0xFFFF) << 16) | (rand() & 0xFFFF); pjlib/include/pj/compat/rand.h:44: warning: possible non-threadsafe use of rand() #define platform_rand rand pjmedia/src/test/wsola_test.c:129: warning: possible non-threadsafe use of rand() if ((rand() % 100) < expansion_rate100) { pjmedia/src/test/wsola_test.c:146: warning: possible non-threadsafe use of rand() if ((rand() % 10) < lost_rate10) { pjmedia/src/test/wsola_test.c:258: warning: possible non-threadsafe use of rand() unsigned buf1_len = (rand() % TOT_LEN); pjsip-apps/src/samples/footprint.c:110: warning: possible non-threadsafe use of rand() rand(); third_party/milenage/milenage.c:35: warning: possible non-threadsafe use of rand() void f1 ( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], third_party/milenage/milenage.c:50: warning: possible non-threadsafe use of rand() rijndaelInput[i] = rand[i] ^ op_c[i]; third_party/milenage/milenage.c:96: warning: possible non-threadsafe use of rand() void f2345 ( u8 k[16], u8 rand[16], third_party/milenage/milenage.c:110: warning: possible non-threadsafe use of rand() rijndaelInput[i] = rand[i] ^ op_c[i]; third_party/milenage/milenage.c:174: warning: possible non-threadsafe use of rand() void f1star( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2], third_party/milenage/milenage.c:189: warning: possible non-threadsafe use of rand() rijndaelInput[i] = rand[i] ^ op_c[i]; third_party/milenage/milenage.c:234: warning: possible non-threadsafe use of rand() void f5star( u8 k[16], u8 rand[16], third_party/milenage/milenage.c:248: warning: possible non-threadsafe use of rand() rijndaelInput[i] = rand[i] ^ op_c[i]; third_party/speex/libspeex/scal.c:106: warning: possible non-threadsafe use of rand() st->seed = rand(); third_party/srtp/crypto/cipher/cipher.c:327: warning: possible non-threadsafe use of rand() length = rand() % (SELF_TEST_BUF_OCTETS - 64); third_party/srtp/crypto/include/kernel_compat.h:71: warning: possible non-threadsafe use of rand() static inline int rand(void ) third_party/srtp/crypto/replay/ut_sim.c:57: warning: possible non-threadsafe use of rand() return rand() > (RAND_MAX/2) ? -1 : 1; third_party/srtp/crypto/rng/ctr_prng.c:65: warning: possible non-threadsafe use of rand() ctr_prng.rand = random_source; third_party/srtp/crypto/rng/ctr_prng.c:92: warning: possible non-threadsafe use of rand() status = ctr_prng_init(ctr_prng.rand); third_party/srtp/crypto/rng/prng.c:65: warning: possible non-threadsafe use of rand() x917_prng.rand = random_source; third_party/srtp/crypto/rng/prng.c:76: warning: possible non-threadsafe use of rand() status = x917_prng.rand((uint8_t *)&x917_prng.state, 16); third_party/srtp/crypto/rng/prng.c:96: warning: possible non-threadsafe use of rand() status = x917_prng_init(x917_prng.rand); third_party/srtp/crypto/rng/rand_source.c:136: warning: possible non-threadsafe use of rand() int val = rand(); third_party/srtp/crypto/test/cipher_driver.c:419: warning: possible non-threadsafe use of rand() len = rand() & 0x01f; third_party/srtp/crypto/test/cipher_driver.c:500: warning: possible non-threadsafe use of rand() key[j] = (uint8_t) rand(); third_party/srtp/crypto/test/cipher_driver.c:553: warning: possible non-threadsafe use of rand() int cipher_index = rand() % num_cipher; third_party/srtp/crypto/test/stat_driver.c:109: warning: possible non-threadsafe use of rand() buffer[i] = rand(); third_party/srtp/test/rdbx_driver.c:312: warning: possible non-threadsafe use of rand() for (idx=0, ircvd=0; (int ) idx < num_trials; idx++, ircvd += (1 << (rand() % 12))) { third_party/srtp/test/replay_driver.c:193: warning: possible non-threadsafe use of rand() for (idx=0, ircvd=0; idx < num_trials; idx++, ircvd += (1 << (rand() % 10))) { third_party/srtp/test/rtp.c:150: warning: possible non-threadsafe use of rand() sender->message.header.seq = (uint16_t) rand(); -- rand() [ found: 37 ] ----------------------------------- == readdir() ================================================ -- readdir() [ found: 0 ] ----------------------------------- == setenv() ================================================ -- setenv() [ found: 0 ] ----------------------------------- == setgrent() ================================================ -- setgrent() [ found: 0 ] ----------------------------------- == setkey() ================================================ -- setkey() [ found: 0 ] ----------------------------------- == setlocale() ================================================ -- setlocale() [ found: 0 ] ----------------------------------- == setpwent() ================================================ -- setpwent() [ found: 0 ] ----------------------------------- == setutxent() ================================================ -- setutxent() [ found: 0 ] ----------------------------------- == strerror() ================================================ pjlib/src/pj/errno.c:46: warning: possible non-threadsafe use of strerror() pj_str_t (*strerror)(pj_status_t, char *, pj_size_t); pjlib/src/pj/errno.c:142: warning: possible non-threadsafe use of strerror() err_msg_hnd[i].strerror == f) pjlib/src/pj/errno.c:155: warning: possible non-threadsafe use of strerror() err_msg_hnd[err_msg_hnd_cnt].strerror = f; pjlib/src/pj/errno.c:199: warning: possible non-threadsafe use of strerror() return (*err_msg_hnd[i].strerror)(statcode, buf, bufsize); pjlib/src/pj/os_error_unix.c:59: warning: possible non-threadsafe use of strerror() const char *syserr = strerror(os_errcode); pjsip-apps/src/swig/python/cc_mingw.c:150: warning: possible non-threadsafe use of strerror() printf("Error: %s\n", strerror(ret)); -- strerror() [ found: 6 ] ----------------------------------- == strsignal() ================================================ -- strsignal() [ found: 0 ] ----------------------------------- == strtok() ================================================ pjlib/src/pj/os_info.c:110: warning: possible non-threadsafe use of strtok() for (tok = strtok(str, ".-"), i=0; tok && i