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

1234567891011>>

/bionic/libc/dns/net/
H A Dgetservbyport.c37 if (rs == NULL || proto == NULL) {
39 return NULL;
42 rs->servent_ptr = NULL;
45 if (s == NULL)
51 return NULL;
H A Dgetservbyname.c38 if (rs == NULL || proto == NULL || name == NULL) {
40 return NULL;
43 rs->servent_ptr = NULL;
46 if (s == NULL)
52 return NULL;
H A Dnsdispatch.c84 if (disp_tab != NULL) {
85 for (curdisp = 0; disp_tab[curdisp].src != NULL; curdisp++) {
93 *cb_data = NULL;
94 return (NULL);
109 /* retval may be NULL */
110 /* disp_tab may be NULL */
111 assert(database != NULL);
112 assert(method != NULL);
113 assert(defaults != NULL);
114 if (database == NULL || metho
[all...]
/bionic/libc/bionic/
H A Dclearenv.cpp34 if (e != NULL) {
36 *e = 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.cpp36 int rc = __getcpu(&cpu, NULL, NULL);
H A Datof.cpp34 return strtod(s, NULL);
H A Dfork.cpp45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL);
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid));
H A Dflockfile.cpp39 if (fp != NULL) {
47 if (fp == NULL) {
55 if (fp != NULL) {
H A Dmntent.cpp32 return NULL;
36 return NULL;
44 if (fp != NULL) {
H A Dpthread_atfork.cpp47 static atfork_list_t g_atfork_list = { NULL, NULL };
61 for (atfork_t* it = g_atfork_list.last; it != NULL; it = it->prev) {
62 if (it->prepare != NULL) {
69 for (atfork_t* it = g_atfork_list.first; it != NULL; it = it->next) {
70 if (it->child != NULL) {
79 for (atfork_t* it = g_atfork_list.first; it != NULL; it = it->next) {
80 if (it->parent != NULL) {
90 if (entry == NULL) {
101 entry->next = NULL;
[all...]
/bionic/libc/upstream-netbsd/lib/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/upstream-openbsd/lib/libc/include/
H A Dlanginfo.h3 #define nl_langinfo(i) ((i == RADIXCHAR) ? (char*) "." : NULL)
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Datoi.c36 return((int)strtol(str, (char **)NULL, 10));
H A Datol.c36 return(strtol(str, (char **)NULL, 10));
H A Datoll.c37 return(strtoll(str, (char **)NULL, 10));
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfunopen.c46 if (readfn == NULL) {
47 if (writefn == NULL) { /* illegal */
49 return (NULL);
53 if (writefn == NULL)
58 if ((fp = __sfp()) == NULL)
59 return (NULL);
/bionic/libc/upstream-openbsd/lib/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.c41 * be further tokens), or is NULL (if there are definitely no more tokens).
43 * If *stringp is NULL, strsep returns NULL.
53 if ((s = *stringp) == NULL)
54 return (NULL);
61 s = NULL;
/bionic/tests/
H A Dmntent_test.cpp23 ASSERT_TRUE(fp == NULL);
25 #if __BIONIC__ // glibc doesn't let you call getmntent/getmntent_r with a NULL FILE*.
26 ASSERT_TRUE(getmntent(fp) == NULL);
30 ASSERT_TRUE(getmntent_r(fp, &mbuf, cbuf, sizeof(cbuf)) == NULL);
H A Ddlfcn_test.cpp49 void* self = dlopen(NULL, RTLD_NOW);
50 ASSERT_TRUE(self != NULL);
51 ASSERT_TRUE(dlerror() == NULL);
54 ASSERT_TRUE(sym != NULL);
67 ASSERT_TRUE(handle != NULL);
71 ASSERT_TRUE(sym != NULL);
80 ASSERT_TRUE(handle == NULL);
83 ASSERT_TRUE(handle != NULL);
84 ASSERT_TRUE(handle2 != NULL);
92 ASSERT_TRUE(self == NULL);
[all...]
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/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 2206 milliseconds

1234567891011>>