/bionic/tests/ |
D | dlfcn_test.cpp | 37 void* self = dlopen(NULL, RTLD_NOW); in TEST() 38 ASSERT_TRUE(self != NULL); in TEST() 39 ASSERT_TRUE(dlerror() == NULL); in TEST() 42 ASSERT_TRUE(sym != NULL); in TEST() 55 ASSERT_TRUE(self == NULL); in TEST() 74 ASSERT_EQ(0, pthread_create(&t, NULL, ConcurrentDlErrorFn, NULL)); in TEST() 86 void* self = dlopen(NULL, RTLD_NOW); in TEST() 87 ASSERT_TRUE(self != NULL); in TEST() 88 ASSERT_TRUE(dlerror() == NULL); in TEST() 93 sym = dlsym(NULL, "test"); in TEST() [all …]
|
D | getcwd_test.cpp | 26 char* cwd = getcwd(NULL, 0); in TEST() 27 ASSERT_TRUE(cwd != NULL); in TEST() 36 char* cwd = getcwd(NULL, PATH_MAX); in TEST() 37 ASSERT_TRUE(cwd != NULL); in TEST() 46 char* cwd = getcwd(NULL, 1); in TEST() 47 ASSERT_TRUE(cwd == NULL); in TEST() 54 char* cwd = getcwd(NULL, static_cast<size_t>(-1)); in TEST() 55 ASSERT_TRUE(cwd == NULL); in TEST() 64 ASSERT_TRUE(cwd == NULL); in TEST() 73 ASSERT_TRUE(cwd == NULL); in TEST()
|
D | malloc_test.cpp | 25 ASSERT_TRUE(ptr != NULL); in TEST() 35 ASSERT_TRUE(ptr != NULL); in TEST() 49 ASSERT_TRUE(ptr != NULL); in TEST() 62 ASSERT_TRUE(ptr != NULL); in TEST() 68 ASSERT_TRUE(ptr != NULL); in TEST() 70 ASSERT_TRUE(ptr != NULL); in TEST() 77 ASSERT_TRUE(ptr != NULL); in TEST() 85 ASSERT_TRUE(ptr != NULL); in TEST() 98 ASSERT_TRUE(ptr != NULL); in TEST() 103 ASSERT_TRUE(ptr != NULL); in TEST() [all …]
|
/bionic/libc/netbsd/net/ |
D | getservbyname.c | 39 if (rs == NULL || proto == NULL || name == NULL) { in getservbyname() 41 return NULL; in getservbyname() 44 rs->servent_ptr = NULL; in getservbyname() 47 if (s == NULL) in getservbyname() 53 return NULL; in getservbyname()
|
D | nsdispatch.c | 96 if (disp_tab != NULL) { in _nsmethod() 97 for (curdisp = 0; disp_tab[curdisp].src != NULL; curdisp++) { in _nsmethod() 105 *cb_data = NULL; in _nsmethod() 106 return (NULL); in _nsmethod() 123 assert(database != NULL); in nsdispatch() 124 assert(method != NULL); in nsdispatch() 125 assert(defaults != NULL); in nsdispatch() 126 if (database == NULL || method == NULL || defaults == NULL) in nsdispatch() 131 while (srclist[srclistsize].name != NULL) in nsdispatch() 140 if (cb != NULL) { in nsdispatch()
|
D | getservbyport.c | 38 if (rs == NULL || proto == NULL) { in getservbyport() 40 return NULL; in getservbyport() 43 rs->servent_ptr = NULL; in getservbyport() 46 if (s == NULL) in getservbyport() 52 return NULL; in getservbyport()
|
/bionic/libc/upstream-netbsd/libc/stdlib/ |
D | tdelete.c | 34 _DIAGASSERT(vkey != NULL); in tdelete() 35 _DIAGASSERT(compar != NULL); in tdelete() 37 if (rootp == NULL || (p = *rootp) == NULL) in tdelete() 38 return NULL; in tdelete() 45 if (*rootp == NULL) in tdelete() 46 return NULL; /* key not found */ in tdelete() 49 if ((q = (*rootp)->llink) == NULL) /* Left NULL? */ in tdelete() 51 else if (r != NULL) { /* Right link is NULL? */ in tdelete() 52 if (r->llink == NULL) { /* D2: Find successor */ in tdelete() 56 for (q = r->llink; q->llink != NULL; q = r->llink) in tdelete()
|
D | tfind.c | 31 _DIAGASSERT(vkey != NULL); in tfind() 32 _DIAGASSERT(compar != NULL); in tfind() 34 if (rootp == NULL) in tfind() 35 return NULL; in tfind() 37 while (*rootp != NULL) { /* T1: */ in tfind() 46 return NULL; in tfind()
|
D | tsearch.c | 32 _DIAGASSERT(vkey != NULL); in tsearch() 33 _DIAGASSERT(compar != NULL); in tsearch() 35 if (rootp == NULL) in tsearch() 36 return NULL; in tsearch() 38 while (*rootp != NULL) { /* Knuth's T1: */ in tsearch() 53 q->llink = q->rlink = NULL; in tsearch()
|
/bionic/libc/bionic/ |
D | getcwd.cpp | 36 if (buf != NULL && size == 0) { in getcwd() 38 return NULL; in getcwd() 42 char* allocated_buf = NULL; in getcwd() 44 if (buf == NULL) { in getcwd() 51 if (buf == NULL) { in getcwd() 54 return NULL; in getcwd() 63 return NULL; in getcwd() 67 if (allocated_buf != NULL) { in getcwd()
|
D | utmp.c | 52 if (ut == NULL) in setutent() 60 if (ut == NULL) { in getutent() 61 if ((ut = fopen(utfile, "r")) == NULL) in getutent() 62 return NULL; in getutent() 66 return NULL; in getutent() 72 if (ut != NULL) { in endutent() 74 ut = NULL; in endutent()
|
D | debug_stacktrace.cpp | 46 static mapinfo_t* gMapInfo = NULL; 49 static DemanglerFn gDemanglerFn = NULL; 54 if (gDemangler != NULL) { in backtrace_startup() 66 if (gDemanglerFn == NULL) { in demangle() 67 return NULL; in demangle() 69 return (*gDemanglerFn)(symbol, NULL, NULL, NULL); in demangle() 124 if (frames == NULL) { in log_backtrace() 134 const char* symbol = NULL; in log_backtrace() 143 const mapinfo_t* mi = (gMapInfo != NULL) ? mapinfo_find(gMapInfo, frames[i], &rel_pc) : NULL; in log_backtrace() 144 const char* soname = (mi != NULL) ? mi->name : info.dli_fname; in log_backtrace() [all …]
|
D | tmpfile.cpp | 52 sigprocmask(SIG_SETMASK, &old_set_, NULL); in ~ScopedSignalBlocker() 63 return NULL; in __tmpfile_dir() 71 return NULL; in __tmpfile_dir() 84 return NULL; in __tmpfile_dir() 90 if (fp != NULL) { in __tmpfile_dir() 97 return NULL; in __tmpfile_dir() 107 if (fp == NULL) { in tmpfile()
|
/bionic/linker/ |
D | linker_environ.cpp | 73 return NULL; in env_match() 81 if (name == NULL) { in __is_valid_environment_variable() 139 NULL in __is_unsafe_environment_variable() 141 for (size_t i = 0; UNSAFE_VARIABLE_NAMES[i] != NULL; ++i) { in __is_unsafe_environment_variable() 142 if (env_match(name, UNSAFE_VARIABLE_NAMES[i]) != NULL) { in __is_unsafe_environment_variable() 152 for (; src[0] != NULL; ++src) { in __sanitize_environment_variables() 163 dst[0] = NULL; in __sanitize_environment_variables() 175 if (name == NULL || name[0] == '\0') { in linker_env_get() 176 return NULL; in linker_env_get() 179 for (char** p = _envp; p[0] != NULL; ++p) { in linker_env_get() [all …]
|
D | dlfcn.cpp | 45 if (detail != NULL) { in __bionic_format_dlerror() 54 const char* old_value = __bionic_set_dlerror(NULL); in dlerror() 66 if (result == NULL) { in dlopen() 68 return NULL; in dlopen() 76 if (handle == NULL) { in dlsym() 77 __bionic_format_dlerror("dlsym library handle is null", NULL); in dlsym() 78 return NULL; in dlsym() 80 if (symbol == NULL) { in dlsym() 81 __bionic_format_dlerror("dlsym symbol name is null", NULL); in dlsym() 82 return NULL; in dlsym() [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | realpath.c | 60 if (path == NULL) { in realpath() 62 return (NULL); in realpath() 66 return (NULL); in realpath() 68 if (resolved == NULL) { in realpath() 70 if (resolved == NULL) in realpath() 71 return (NULL); in realpath() 84 if (getcwd(resolved, PATH_MAX) == NULL) { in realpath() 91 return (NULL); in realpath() 100 return (NULL); in realpath() 117 return (NULL); in realpath() [all …]
|
/bionic/libc/tzcode/ |
D | strptime.c | 140 return (NULL); in _strptime() 164 return (NULL); in _strptime() 170 return (NULL); in _strptime() 176 return (NULL); in _strptime() 182 return (NULL); in _strptime() 188 return (NULL); in _strptime() 194 return (NULL); in _strptime() 200 return (NULL); in _strptime() 223 return (NULL); in _strptime() 247 return (NULL); in _strptime() [all …]
|
/bionic/libc/netbsd/ |
D | gethnamaddr.c | 142 assert(msg != NULL); in dprintf() 164 return NULL; \ 172 return NULL; \ 193 assert(answer != NULL); in getanswer() 194 assert(qname != NULL); in getanswer() 197 rs->host.h_name = NULL; in getanswer() 208 return NULL; /* XXX should be abort(); */ in getanswer() 222 return NULL; in getanswer() 227 return NULL; in getanswer() 238 return NULL; in getanswer() [all …]
|
/bionic/libc/string/ |
D | strtok.c | 48 if (s == NULL && (s = *last) == NULL) in strtok_r() 49 return (NULL); in strtok_r() 62 *last = NULL; in strtok_r() 63 return (NULL); in strtok_r() 77 s = NULL; in strtok_r()
|
/bionic/libc/upstream-freebsd/lib/libc/stdio/ |
D | funopen.c | 54 if (readfn == NULL) { in funopen() 55 if (writefn == NULL) { /* illegal */ in funopen() 57 return (NULL); in funopen() 61 if (writefn == NULL) in funopen() 66 if ((fp = __sfp()) == NULL) in funopen() 67 return (NULL); in funopen()
|
D | fdopen.c | 64 return (NULL); in fdopen() 68 return (NULL); in fdopen() 72 return (NULL); in fdopen() 76 return (NULL); in fdopen() 79 if ((fp = __sfp()) == NULL) in fdopen() 80 return (NULL); in fdopen() 84 return (NULL); in fdopen()
|
/bionic/libc/stdlib/ |
D | atexit.c | 73 if (p != NULL) { in __cxa_atexit() 75 p = NULL; in __cxa_atexit() 79 if (p == NULL) { in __cxa_atexit() 80 p = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in __cxa_atexit() 84 if (__atexit == NULL) { in __cxa_atexit() 127 for (p = __atexit; p != NULL; p = p->next) { in __cxa_finalize() 129 if (p->fns[n].fn_ptr.cxa_func == NULL) in __cxa_finalize() 131 if (dso != NULL && dso != p->fns[n].fn_dso) in __cxa_finalize() 140 p->fns[n].fn_ptr.cxa_func = NULL; in __cxa_finalize() 152 if (dso != NULL) in __cxa_finalize() [all …]
|
/bionic/libc/upstream-netbsd/libc/regex/ |
D | regfree.c | 108 _DIAGASSERT(preg != NULL); in __weak_alias() 115 if (g == NULL || g->magic != MAGIC2) /* oops again */ in __weak_alias() 120 if (g->strip != NULL) in __weak_alias() 122 if (g->sets != NULL) in __weak_alias() 124 if (g->setbits != NULL) in __weak_alias() 126 if (g->must != NULL) in __weak_alias()
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcstok.c | 48 if (s == NULL && (s = *last) == NULL) in wcstok() 49 return (NULL); in wcstok() 62 *last = NULL; in wcstok() 63 return (NULL); in wcstok() 77 s = NULL; in wcstok()
|
/bionic/libc/kernel/common/linux/ |
D | stddef.h | 22 #undef NULL 25 #define NULL 0 macro 27 #define NULL ((void *)0) macro
|