/bionic/tests/ |
H A D | sys_select_test.cpp | 71 ASSERT_EQ(pid, waitpid(pid, NULL, 0)); 89 ASSERT_EQ(-1, select(-1, &r, &w, &e, NULL)); 92 ASSERT_EQ(2, select(max, &r, &w, &e, NULL)); 108 ASSERT_EQ(1, select(fd+1, &r, NULL, NULL, &tv)); 135 ASSERT_EQ(-1, pselect(-1, &r, &w, &e, NULL, &ss)); 138 ASSERT_EQ(2, pselect(max, &r, &w, &e, NULL, &ss)); 154 ASSERT_EQ(1, pselect(fd+1, &r, NULL, NULL, &tv, NULL)); [all...] |
H A D | sys_socket_test.cpp | 47 void* return_value = NULL; 65 else if (callback_fn != NULL && !callback_fn(fd)) { 90 ASSERT_EQ(0, pthread_create(&thread, NULL, ConnectFn, reinterpret_cast<void*>(callback_fn))); 98 ASSERT_LT(0, select(fd+1, &read_set, NULL, NULL, &tv)); 104 ASSERT_EQ(NULL, ret_val); 112 ASSERT_EQ(-1, accept4(-1, NULL, NULL, 0)); 134 RunTest(TestAccept4, NULL); 203 ASSERT_EQ(-1, recvmmsg(-1, NULL, [all...] |
H A D | stdlib_test.cpp | 83 char* p = realpath(NULL, NULL); 84 ASSERT_TRUE(p == NULL); 90 char* p = realpath("", NULL); 91 ASSERT_TRUE(p == NULL); 97 char* p = realpath("/this/directory/path/almost/certainly/does/not/exist", NULL); 98 ASSERT_TRUE(p == NULL); 113 p = realpath("/proc/self/exe", NULL); 143 pthread_join(main_thread, NULL); 145 if (value == NULL) { [all...] |
H A D | sys_resource_test.cpp | 24 if (new_limit != NULL) { 48 ASSERT_EQ(0, prlimit64(0, RLIMIT_CORE, NULL, &pr_l64)); 63 ASSERT_EQ(0, prlimit64(0, RLIMIT_CORE, NULL, &pr_l64)); 73 ASSERT_EQ(0, prlimit64(0, RLIMIT_CORE, NULL, &pr_l64)); 80 ASSERT_EQ(0, prlimit64(0, RLIMIT_CORE, &l64, NULL)); 83 ASSERT_EQ(0, prlimit64(0, RLIMIT_CORE, NULL, &pr_l64));
|
H A D | signal_test.cpp | 48 // NULL sigset_t*. 49 sigset_t* set_ptr = NULL; 54 // Non-NULL. 63 // NULL sigset_t*. 64 sigset_t* set_ptr = NULL; 194 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, &original_set, NULL)); 204 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &original_sa)); 205 ASSERT_TRUE(original_sa.sa_handler == NULL); 206 ASSERT_TRUE(original_sa.sa_sigaction == NULL); 215 ASSERT_EQ(0, sigaction(SIGALRM, &sa, NULL)); [all...] |
H A D | inttypes_test.cpp | 43 ASSERT_EQ(123, wcstoimax(L"123", NULL, 10)); 47 ASSERT_EQ(123U, wcstoumax(L"123", NULL, 10));
|
/bionic/libc/bionic/ |
H A D | mbrtoc32.cpp | 38 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 47 if (s == NULL) { 50 pc32 = NULL; 60 if (pc32 != NULL) { 134 if (pc32 != NULL) {
|
H A D | pthread_key.cpp | 94 SetInUse(key, NULL); 120 s_tls_map_.key_destructors[key] = NULL; 134 // that have a non-NULL data value and a non-NULL destructor. 147 if (data != NULL && key_destructor != NULL) { 152 // we do not do this if 'key_destructor == NULL' just in case another 155 tls[key] = NULL; 202 // not call the destructors for non-NULL key values. Instead, it is the 214 for (pthread_internal_t* t = g_thread_list; t != NULL; [all...] |
H A D | pthread_create.cpp | 69 ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); 73 sigaltstack(&ss, NULL); 95 thread->cleanup_stack = NULL; 108 void* stack = mmap(NULL, thread->attr.stack_size, prot, flags, -1, 0); 114 return NULL; 123 return NULL; 151 return NULL; 162 if (thread == NULL) { 167 if (attr == NULL) { 171 attr = NULL; // Preven [all...] |
H A D | NetdClient.cpp | 31 if (initFunction != NULL) { 38 if (netdClientHandle == NULL) {
|
H A D | c32rtomb.cpp | 37 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 39 if (s == NULL) {
|
H A D | libc_init_dynamic.cpp | 75 *args_slot = NULL; 110 __cxa_atexit(__libc_fini,structors->fini_array,NULL);
|
H A D | new.cpp | 27 if (p == NULL) { 35 if (p == NULL) {
|
H A D | pthread_rwlock.cpp | 73 if (abs_timeout != NULL) { 108 if (attr != NULL) { 140 timespec* rel_timeout = (abs_timeout == NULL) ? NULL : &ts; 176 timespec* rel_timeout = (abs_timeout == NULL) ? NULL : &ts; 204 return __pthread_rwlock_timedrdlock(rwlock, NULL); 221 return __pthread_rwlock_timedwrlock(rwlock, NULL);
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
H A D | engine.c | 194 _DIAGASSERT(g != NULL); 195 _DIAGASSERT(string != NULL); 202 _DIAGASSERT(pmatch != NULL); 213 if (g->must != NULL) { 225 m->pmatch = NULL; 226 m->lastpos = NULL; 240 if (endp == NULL) { /* a miss */ 248 assert(m->coldp != NULL); 252 if (endp != NULL) 261 if (m->pmatch == NULL) [all...] |
H A D | regcomp.c | 250 _DIAGASSERT(preg != NULL); 251 _DIAGASSERT(pattern != NULL); 267 if (g == NULL) 272 if (p->strip == NULL) { 288 g->sets = NULL; 289 g->setbits = NULL; 295 g->must = NULL; 352 _DIAGASSERT(p != NULL); 406 _DIAGASSERT(p != NULL); 551 _DIAGASSERT(p != NULL); [all...] |
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A D | inet_ntop.c | 41 * pointer to presentation format address (`dst'), or NULL (see errno). 55 return (NULL); 81 return (NULL); 153 return (NULL); 163 return (NULL); 171 return (NULL); 178 return (NULL); 186 return (NULL); 192 return (NULL); 201 return (NULL); [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | freopen.c | 57 return (NULL); 81 /* if close is NULL, closing is a no-op, hence pointless */ 82 isopen = fp->_close != NULL; 112 fp->_p = NULL; 113 fp->_bf._base = NULL; 128 return (NULL); 148 return (NULL);
|
H A D | ftell.c | 47 if (fp->_seek == NULL) { 75 } else if (fp->_flags & __SWR && fp->_p != NULL) {
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | setenv.c | 59 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 71 for (P = environ; *P != NULL; P++) 81 environ[cnt + 1] = NULL; 109 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { 129 for (P = environ; *P != NULL; P++) 139 environ[cnt + 1] = NULL;
|
/bionic/benchmarks/ |
H A D | benchmark.h | 26 Register(name, fn, NULL); 30 Register(name, NULL, fn_range);
|
/bionic/libc/include/sys/ |
H A D | queue.h | 90 { NULL } 102 (head)->lh_first = NULL; \ 106 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \ 121 if (((elm)->field.le_next = (head)->lh_first) != NULL) \ 128 if ((elm)->field.le_next != NULL) \ 142 #define LIST_EMPTY(head) ((head)->lh_first == NULL) 156 { NULL } 167 (head)->slh_first = NULL; \ 203 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) 218 { NULL, [all...] |
/bionic/libc/private/ |
H A D | thread_private.h | 51 #define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f))
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
H A D | smisc.c | 50 if (b == NULL) 51 return (NULL); 56 if (b == NULL) 57 return (NULL); 67 if (b == NULL) 68 return (NULL); 76 if (b == NULL) 77 return (NULL);
|
/bionic/libc/arch-arm64/bionic/ |
H A D | crtbegin.c | 48 __libc_init(raw_args, NULL, &main, &array);
|