/bionic/libc/bionic/ |
H A D | fts.c | 84 return (NULL); 88 if ((sp = calloc(1, sizeof(FTS))) == NULL) 89 return (NULL); 105 if ((parent = fts_alloc(sp, "", 0)) == NULL) 110 for (root = NULL, nitems = 0; *argv; ++argv, ++nitems) { 117 if ((p = fts_alloc(sp, *argv, len)) == NULL) 136 p->fts_link = NULL; 137 if (root == NULL) 153 if ((sp->fts_cur = fts_alloc(sp, "", 0)) == NULL) 177 return (NULL); [all...] |
H A D | semaphore.c | 92 if (sem == NULL) { 115 if (sem == NULL) { 138 if (sem == NULL) { 247 if (sem == NULL) { 258 __futex_wait_ex(&sem->count, shared, shared|SEMCOUNT_MINUS_ONE, NULL); 268 if (sem == NULL) { 283 if (abs_timeout == NULL || 337 if (sem == NULL) 359 if (sem == NULL) { 387 if (sem == NULL || sva [all...] |
H A D | posix_timers.cpp | 81 int rc = __rt_sigtimedwait(sigset.get(), &si, NULL, sizeof(sigset)); 92 return NULL; 104 if (timer == NULL) { 108 timer->sigev_notify = (evp == NULL) ? SIGEV_SIGNAL : evp->sigev_notify; 126 if (timer->callback == NULL) { 134 if (evp->sigev_notify_attributes == NULL) { 150 pthread_sigmask(SIG_SETMASK, old_sigset.get(), NULL);
|
H A D | wchar.cpp | 57 return (ps == NULL || (*(reinterpret_cast<const uint32_t*>(ps->__seq)) == 0)); 62 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 70 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 73 if (dst == NULL) { 92 r = mbrtowc(NULL, *src + i, nmc - i, state); 137 *src = NULL; 152 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 160 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 168 if (dst == NULL) { 193 *src = NULL; [all...] |
H A D | if_indextoname.c | 39 * Returns NULL on error. 46 char* ret = NULL;
|
H A D | initgroups.c | 44 if (groups == NULL)
|
H A D | pthread_once.cpp | 86 __futex_wait_ex(once_control_ptr, 0, old_value, NULL);
|
/bionic/tests/ |
H A D | pthread_test.cpp | 35 ASSERT_EQ(0, pthread_key_create(&key, NULL)); 57 ASSERT_EQ(0, pthread_key_create(&key, NULL)) << i << " of " << sysconf_max; 63 ASSERT_EQ(EAGAIN, pthread_key_create(&key, NULL)); 77 ASSERT_EQ(0, pthread_key_create(&key, NULL)); 81 // After deletion, pthread_getspecific returns NULL. 82 ASSERT_EQ(NULL, pthread_getspecific(key)); 90 ASSERT_EQ(0, pthread_key_create(&key, NULL)); 117 ASSERT_EQ(0, pthread_key_create(&key, NULL)); 120 void* stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); 144 return NULL; [all...] |
H A D | fcntl_test.cpp | 166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); 169 ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_MOVE); 192 ASSERT_TRUE(fp != NULL); 193 ASSERT_TRUE(fgets(buf, sizeof(buf), fp) != NULL); 201 ASSERT_TRUE(expected_fp != NULL); 202 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL); 215 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); 227 ASSERT_TRUE(fp1 != NULL); 228 ASSERT_TRUE(fgets(buf1, sizeof(buf1), fp1) != NULL); 233 ASSERT_TRUE(fp2 != NULL); [all...] |
H A D | system_properties_test.cpp | 43 __system_property_area__ = NULL; 75 ASSERT_NE((prop_info *)NULL, pi); 113 return NULL; 155 ASSERT_NE((prop_info *)NULL, pi); 159 ASSERT_NE((prop_info *)NULL, pi); 163 ASSERT_NE((prop_info *)NULL, pi); 250 ASSERT_NE((const prop_info *)NULL, __system_property_find_nth(0)); 251 ASSERT_NE((const prop_info *)NULL, __system_property_find_nth(1)); 252 ASSERT_NE((const prop_info *)NULL, __system_property_find_nth(2)); 254 ASSERT_EQ((const prop_info *)NULL, __system_property_find_nt [all...] |
H A D | stdio_test.cpp | 34 ASSERT_TRUE(fp != NULL); 51 ASSERT_TRUE(s != NULL); 65 ASSERT_TRUE(tfile != NULL); 71 ASSERT_EQ(NULL, fgets(buf, sizeof(buf), tfile)); 77 ASSERT_TRUE(fp != NULL); 85 char* word_read = NULL; 112 ASSERT_TRUE(fp != NULL); 114 char* buffer = NULL; 117 // The first argument can't be NULL. 119 ASSERT_EQ(getdelim(NULL, [all...] |
H A D | sys_mman_test.cpp | 26 void* map = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); 32 void* map = mmap64(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); 40 void* map = mmap(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); 47 void* map = mmap64(NULL, 100, PROT_READ, MAP_SHARED, tf.fd, 1); 61 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); 76 void* map = mmap(NULL, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); 112 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); 120 map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); 148 void* map = mmap(NULL, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); 156 map = mmap(NULL, pagesiz [all...] |
H A D | stack_protector_test.cpp | 68 return NULL; 78 ASSERT_EQ(0, pthread_create(&t, NULL, ThreadGuardHelper, &checker)); 81 ASSERT_EQ(NULL, result);
|
H A D | stubs_test.cpp | 39 ASSERT_TRUE(pwd != NULL); 44 ASSERT_EQ(NULL, pwd->pw_passwd); 46 ASSERT_EQ(NULL, pwd->pw_gecos);
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
H A D | getopt_long.c | 225 if ((has_equal = strchr(current_argv, '=')) != NULL) { 285 if (long_options[match].flag == NULL) 308 && (optarg == NULL)) { 322 if (long_options[match].flag == NULL) 364 if (options == NULL) 371 posixly_correct = (getenv("POSIXLY_CORRECT") != NULL); 393 optarg = NULL; 421 (place[1] == '\0' && strchr(options, '-') == NULL)) { 482 if (long_options != NULL && place != nargv[optind] && 493 } else if (*place != ':' && strchr(options, *place) != NULL) [all...] |
/bionic/libc/stdio/ |
H A D | local.h | 89 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \ 96 #define HASUB(fp) (_UB(fp)._base != NULL) 100 _UB(fp)._base = NULL; \ 106 #define HASLB(fp) ((fp)->_lb._base != NULL) 109 (fp)->_lb._base = NULL; \
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A D | inet_pton.c | 85 if ((pch = strchr(digits, ch)) != NULL) { 135 colonp = NULL; 146 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 148 if (pch != NULL) { 193 if (colonp != NULL) {
|
/bionic/linker/ |
H A D | linker.cpp | 99 NULL 118 __LIBC_HIDDEN__ abort_msg_t* g_abort_message = NULL; // For debuggerd. 191 static r_debug _r_debug = {1, NULL, reinterpret_cast<uintptr_t>(&rtld_db_dlactivity), r_debug::RT_CONSISTENT, 0}; 290 return NULL; 300 if (file_stat != NULL) { 313 if (si == NULL) { 321 soinfo *prev = NULL, *trav; 325 for (trav = solist; trav != NULL; trav = trav->next) { 330 if (trav == NULL) { 339 /* prev will never be NULL, becaus [all...] |
/bionic/libc/dns/net/ |
H A D | getnameinfo.c | 150 if (serv != NULL && servlen > 0) 181 /* host may be NULL */ 182 /* serv may be NULL */ 184 if (sa == NULL) 206 if (serv == NULL || servlen == 0) { 210 * "||" here: rfc2553bis-03 says that serv == NULL OR 215 sp = NULL; 269 if (host == NULL || hostlen == 0) { 273 * "||" here: rfc2553bis-03 says that host == NULL or 297 == NULL) [all...] |
/bionic/libc/dns/nameser/ |
H A D | ns_name.c | 210 return (ns_name_pton2(src, dst, dstsiz, NULL)); 221 * fills in *dstlen (if non-NULL) 240 if ((cp = strchr(src, ']')) == NULL) { 260 else if ((cp = strchr(digits, c)) != NULL) { 263 (cp = strchr(digits, c)) == NULL) { 269 (cp = strchr(digits, c)) == NULL) { 308 if (dstlen != NULL) 347 if (dstlen != NULL) 417 return (ns_name_unpack2(msg, eom, src, dst, dstsiz, NULL)); 426 * fills in *dstlen (if non-NULL) [all...] |
/bionic/libc/tzcode/ |
H A D | localtime.c | 281 if (sp == NULL) { 316 if (strchr(TZ_ABBR_CHAR_SET, sp->chars[i]) == NULL) 629 if (sp == NULL || 694 ** NULL. 704 if (strp == NULL || !is_digit(c = *strp)) 705 return NULL; 710 return NULL; /* illegal value */ 714 return NULL; /* illegal value */ 722 ** If any error occurs, return NULL. 739 if (strp == NULL) [all...] |
/bionic/libc/upstream-netbsd/lib/libc/inet/ |
H A D | nsap_addr.c | 62 _DIAGASSERT(ascii != NULL); 63 _DIAGASSERT(binary != NULL); 103 _DIAGASSERT(binary != NULL);
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | _rand48.c | 43 _DIAGASSERT(xseed != NULL);
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | fgetws.c | 78 return (NULL);
|
H A D | vsscanf.c | 57 f._lb._base = NULL;
|