Searched refs:NULL (Results 1 - 25 of 267) sorted by relevance

1234567891011

/bionic/libc/kernel/common/linux/
H A Dstddef.h22 #undef NULL macro
25 #define NULL 0 macro
27 #define NULL ((void *)0) macro
/bionic/libc/netbsd/net/
H A Dgetservbyport.c38 if (rs == NULL || proto == NULL) {
40 return NULL;
43 rs->servent_ptr = NULL;
46 if (s == NULL)
52 return NULL;
H A Dgetservbyname.c39 if (rs == NULL || proto == NULL || name == NULL) {
41 return NULL;
44 rs->servent_ptr = NULL;
47 if (s == NULL)
53 return NULL;
H A Dnsdispatch.c96 if (disp_tab != NULL) {
97 for (curdisp = 0; disp_tab[curdisp].src != NULL; curdisp++) {
105 *cb_data = NULL;
106 return (NULL);
121 /* retval may be NULL */
122 /* disp_tab may be NULL */
123 assert(database != NULL);
124 assert(method != NULL);
125 assert(defaults != NULL);
126 if (database == NULL || metho
[all...]
/bionic/libc/bionic/
H A Dclearenv.c37 if (P != NULL) {
39 *P = NULL;
H A Dgetcwd.cpp36 if (buf != NULL && size == 0) {
38 return NULL;
42 char* allocated_buf = NULL;
44 if (buf == NULL) {
51 if (buf == NULL) {
54 return NULL;
63 return NULL;
67 if (allocated_buf != NULL) {
H A Dsched_getcpu.c36 if (__getcpu(&cpu, NULL, NULL) < 0)
H A Datoi.c32 return (int)strtoimax(s, NULL, 10);
H A Datol.c32 return (long)strtoimax(s, NULL, 10);
H A Datoll.c32 return (long long)strtoimax(s, NULL, 10);
H A Dsetlocale.cpp34 return NULL;
H A Dflockfile.c49 if (fp != NULL) {
63 if (fp != NULL) {
72 if (fp != NULL) {
H A Dutmp.c52 if (ut == NULL)
60 if (ut == NULL) {
61 if ((ut = fopen(utfile, "r")) == NULL)
62 return NULL;
66 return NULL;
72 if (ut != NULL) {
74 ut = NULL;
H A Ddebug_stacktrace.cpp46 static mapinfo_t* gMapInfo = NULL;
49 static DemanglerFn gDemanglerFn = NULL;
54 if (gDemangler != NULL) {
66 if (gDemanglerFn == NULL) {
67 return NULL;
69 return (*gDemanglerFn)(symbol, NULL, NULL, NULL);
124 if (frames == NULL) {
134 const char* symbol = NULL;
[all...]
/bionic/libc/upstream-netbsd/libc/regex/
H A Dcclass.h103 { NULL, 0, "" }
H A Dregfree.c108 _DIAGASSERT(preg != NULL);
115 if (g == NULL || g->magic != MAGIC2) /* oops again */
120 if (g->strip != NULL)
122 if (g->sets != NULL)
124 if (g->setbits != NULL)
126 if (g->must != NULL)
/bionic/libc/string/
H A Dstrtok.c48 if (s == NULL && (s = *last) == NULL)
49 return (NULL);
62 *last = NULL;
63 return (NULL);
77 s = NULL;
H A Dstrsep.c42 * be further tokens), or is NULL (if there are definitely no more tokens).
44 * If *stringp is NULL, strsep returns NULL.
54 if ((s = *stringp) == NULL)
55 return (NULL);
62 s = NULL;
/bionic/libc/upstream-netbsd/libc/stdlib/
H A Dtfind.c31 _DIAGASSERT(vkey != NULL);
32 _DIAGASSERT(compar != NULL);
34 if (rootp == NULL)
35 return NULL;
37 while (*rootp != NULL) { /* T1: */
46 return NULL;
H A Dtdelete.c34 _DIAGASSERT(vkey != NULL);
35 _DIAGASSERT(compar != NULL);
37 if (rootp == NULL || (p = *rootp) == NULL)
38 return NULL;
45 if (*rootp == NULL)
46 return NULL; /* key not found */
49 if ((q = (*rootp)->llink) == NULL) /* Left NULL? */
51 else if (r != NULL) { /* Righ
[all...]
H A Dtsearch.c32 _DIAGASSERT(vkey != NULL);
33 _DIAGASSERT(compar != NULL);
35 if (rootp == NULL)
36 return NULL;
38 while (*rootp != NULL) { /* Knuth's T1: */
53 q->llink = q->rlink = NULL;
/bionic/tests/
H A Dgetcwd_test.cpp26 char* cwd = getcwd(NULL, 0);
27 ASSERT_TRUE(cwd != NULL);
36 char* cwd = getcwd(NULL, PATH_MAX);
37 ASSERT_TRUE(cwd != NULL);
46 char* cwd = getcwd(NULL, 1);
47 ASSERT_TRUE(cwd == NULL);
54 char* cwd = getcwd(NULL, static_cast<size_t>(-1));
55 ASSERT_TRUE(cwd == NULL);
64 ASSERT_TRUE(cwd == NULL);
73 ASSERT_TRUE(cwd == NULL);
[all...]
/bionic/linker/
H A Dlinker_environ.cpp61 // first character after the equal sign. Otherwise return NULL.
73 return NULL;
81 if (name == NULL) {
139 NULL
141 for (size_t i = 0; UNSAFE_VARIABLE_NAMES[i] != NULL; ++i) {
142 if (env_match(name, UNSAFE_VARIABLE_NAMES[i]) != NULL) {
152 for (; src[0] != NULL; ++src) {
163 dst[0] = NULL;
167 // Store environment pointer - can't be NULL.
175 if (name == NULL || nam
[all...]
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dfunopen.c54 if (readfn == NULL) {
55 if (writefn == NULL) { /* illegal */
57 return (NULL);
61 if (writefn == NULL)
66 if ((fp = __sfp()) == NULL)
67 return (NULL);
/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcstok.c48 if (s == NULL && (s = *last) == NULL)
49 return (NULL);
62 *last = NULL;
63 return (NULL);
77 s = NULL;

Completed in 1470 milliseconds

1234567891011