Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/system/core/toolbox/grep/
Dgrep.c173 {"binary-files", required_argument, NULL, BIN_OPT},
174 {"decompress", no_argument, NULL, DECOMPRESS_OPT},
175 {"help", no_argument, NULL, HELP_OPT},
176 {"mmap", no_argument, NULL, MMAP_OPT},
177 {"line-buffered", no_argument, NULL, LINEBUF_OPT},
178 {"label", required_argument, NULL, LABEL_OPT},
179 {"color", optional_argument, NULL, COLOR_OPT},
180 {"colour", optional_argument, NULL, COLOR_OPT},
181 {"exclude", required_argument, NULL, R_EXCLUDE_OPT},
182 {"include", required_argument, NULL, R_INCLUDE_OPT},
[all …]
Dfile.c89 else if (filebehave == FILE_BZIP && bzbufdesc != NULL) { in grep_refill()
106 bzbufdesc = NULL; in grep_refill()
158 if ((p = memchr(bufpos, line_sep, bufrem)) != NULL) { in grep_fgetln()
180 if ((p = memchr(bufpos, line_sep, bufrem)) == NULL) in grep_fgetln()
198 return (NULL); in grep_fgetln()
207 (gzbufdesc = gzdopen(f->fd, "r")) == NULL) in grep_file_init()
211 (bzbufdesc = BZ2_bzdopen(f->fd, "r")) == NULL) in grep_file_init()
221 memchr(bufpos, '\0', bufrem) != NULL) in grep_file_init()
228 return (NULL); in grep_file_init()
241 if (path == NULL) { in grep_open()
[all …]
/system/core/fastboot/
Dutil_windows.c48 NULL, in file_size()
51 NULL ); in file_size()
56 sz = GetFileSize( file, NULL ); in file_size()
66 GetModuleFileName( NULL, exe, PATH_MAX-1 ); in get_my_path()
83 NULL, in load_file()
86 NULL ); in load_file()
89 return NULL; in load_file()
91 sz = GetFileSize( file, NULL ); in load_file()
92 data = NULL; in load_file()
96 if (data == NULL) { in load_file()
[all …]
Dusb_windows.c94 if (NULL == ret) in do_usb_open()
95 return NULL; in do_usb_open()
100 if (NULL == ret->adb_interface) { in do_usb_open()
103 return NULL; in do_usb_open()
111 if (NULL != ret->adb_read_pipe) { in do_usb_open()
117 if (NULL != ret->adb_write_pipe) { in do_usb_open()
123 NULL, in do_usb_open()
129 if (NULL != ret->interface_name) { in do_usb_open()
151 return NULL; in do_usb_open()
161 if (NULL != handle) { in usb_write()
[all …]
/system/security/softkeymaster/
Dkeymaster_openssl.cpp97 int publicLen = i2d_PublicKey(pkey, NULL); in wrap_key()
98 int privateLen = i2d_PrivateKey(pkey, NULL); in wrap_key()
110 if (derData.get() == NULL) { in wrap_key()
153 if (keyBlob == NULL) { in unwrap_key()
155 return NULL; in unwrap_key()
163 return NULL; in unwrap_key()
168 return NULL; in unwrap_key()
178 if (pkey.get() == NULL) { in unwrap_key()
180 return NULL; in unwrap_key()
188 return NULL; in unwrap_key()
[all …]
/system/security/keystore-engine/
Deng_keystore.cpp96 return CRYPTO_set_ex_data(ad, idx, NULL); in keyhandle_new()
104 if (keyhandle != NULL) { in keyhandle_free()
116 if (keyhandle != NULL) { in keyhandle_dup()
132 if (padded.get() == NULL) { in keystore_rsa_priv_enc()
159 if (key_id == NULL) { in keystore_rsa_priv_enc()
168 if (service == NULL) { in keystore_rsa_priv_enc()
173 uint8_t* reply = NULL; in keystore_rsa_priv_enc()
203 if (key_id == NULL) { in keystore_rsa_priv_dec()
212 if (service == NULL) { in keystore_rsa_priv_dec()
219 uint8_t* reply = NULL; in keystore_rsa_priv_dec()
[all …]
/system/core/adb/
Dusb_windows.c119 if (NULL != dev_name) { in known_device_locked()
123 if((NULL != usb->interface_name) && in known_device_locked()
136 if (NULL != dev_name) { in known_device()
146 if (NULL == handle) in register_new_device()
176 return NULL; in device_poll_thread()
182 if(adb_thread_create(&tid, device_poll_thread, NULL)) { in usb_init()
193 if (NULL == ret) in do_usb_open()
194 return NULL; in do_usb_open()
203 if (NULL == ret->adb_interface) { in do_usb_open()
206 return NULL; in do_usb_open()
[all …]
/system/core/sh/
Doptions.c97 if (*argptr == NULL && minusc == NULL) in procargs()
110 if (sflag == 0 && minusc == NULL) { in procargs()
117 if (minusc != NULL) { in procargs()
118 if (argptr == NULL || *argptr == NULL) in procargs()
160 minusc = NULL; in options()
161 while ((p = *argptr) != NULL) { in options()
171 else if (*argptr == NULL) in options()
221 if (name == NULL) { in minus_o()
283 *ap = NULL; in setparam()
288 shellparam.optnext = NULL; in setparam()
[all …]
Dhistedit.c99 if (hist != NULL) in histedit()
111 if (el_in == NULL) in histedit()
113 if (el_out == NULL) in histedit()
115 if (el_in == NULL || el_out == NULL) in histedit()
131 if (el != NULL) { in histedit()
144 el = NULL; in histedit()
152 el_source(el, NULL); in histedit()
158 el = NULL; in histedit()
162 hist = NULL; in histedit()
175 if (hist != NULL) { in sethistsize()
[all …]
Dvar.c104 NULL },
111 NULL },
113 NULL },
120 NULL },
122 NULL },
129 { NULL, 0, NULL,
130 NULL }
170 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar()
171 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar()
182 if (find_var("PS1", &vpp, &vps1.name_len) == NULL) { in initvar()
[all …]
Dcd.c74 char *curdir = NULL; /* current working directory */
95 if (dest == NULL) { in cdcmd()
97 if (dest == NULL) in cdcmd()
122 if (*dest == '/' || (path = bltinlookup("CDPATH", 1)) == NULL) in cdcmd()
124 while ((p = padvance(&path, dest)) != NULL) { in cdcmd()
175 while ((q = getcomponent()) != NULL) { in docd()
200 updatepwd(badstat ? NULL : dest); in docd()
219 if ((p = cdcomppath) == NULL) in getcomponent()
220 return NULL; in getcomponent()
225 cdcomppath = NULL; in getcomponent()
[all …]
/system/extras/tests/bionic/libc/common/
Dtest_pthread_join.c48 return NULL; in thread2_func()
60 return NULL; in thread3_func()
67 pthread_create( &t1, NULL, thread1_func, NULL ); in main()
68 pthread_create( &t2, NULL, thread2_func, (void*)t1 ); in main()
69 pthread_create( &t3, NULL, thread3_func, (void*)t1 ); in main()
71 pthread_join(t2, NULL); in main()
72 pthread_join(t3, NULL); in main()
Dtest_semaphore.c55 return NULL; in _thread1()
64 return NULL; in _thread1()
75 return NULL; in _thread2()
84 return NULL; in _thread2()
96 return NULL; in _thread3()
99 return NULL; in _thread3()
122 if ( pthread_create( &t[nn], NULL, thread_routines[nn], NULL ) < 0 ) { in main()
/system/netd/
DFirewallController.cpp48 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); in enableFirewall()
49 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); in enableFirewall()
50 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); in enableFirewall()
59 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL); in disableFirewall()
60 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL); in disableFirewall()
61 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL); in disableFirewall()
80 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule()
81 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); in setInterfaceRule()
99 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
100 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL); in setEgressSourceRule()
[all …]
DNetlinkManager.cpp38 NetlinkManager *NetlinkManager::sInstance = NULL;
47 mBroadcaster = NULL; in NetlinkManager()
67 return NULL; in setupSocket()
73 return NULL; in setupSocket()
79 return NULL; in setupSocket()
85 return NULL; in setupSocket()
92 return NULL; in setupSocket()
100 0xffffffff, NetlinkListener::NETLINK_FORMAT_ASCII)) == NULL) { in start()
105 NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) { in start()
110 NFLOG_QUOTA_GROUP, NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) { in start()
[all …]
DDnsProxyListener.cpp71 pthread_create(&thread, NULL, in start()
80 pthread_exit(NULL); in threadStart()
81 return NULL; in threadStart()
96 if (hp->h_name != NULL) { in sendhostent()
102 for (i=0; hp->h_aliases[i] != NULL; i++) { in sendhostent()
113 for (i=0; hp->h_addr_list[i] != NULL; i++) { in sendhostent()
126 if (mIface == NULL) { in run()
130 struct addrinfo* result = NULL; in run()
170 char* msg = NULL; in runCommand()
180 name = NULL; in runCommand()
[all …]
/system/bluetooth/tools/
Dpipetest.c158 pthread_create(&t1, NULL, (void *)thread_poll, NULL); in do_poll_poll_close()
159 pthread_create(&t2, NULL, (void *)thread_poll, NULL); in do_poll_poll_close()
165 pthread_join(t1, NULL); in do_poll_poll_close()
166 pthread_join(t2, NULL); in do_poll_poll_close()
177 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[1]); in do_socketpair_poll1_shutdown2()
187 pthread_join(t, NULL); in do_socketpair_poll1_shutdown2()
198 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[0]); in do_socketpair_poll1_shutdown1()
208 pthread_join(t, NULL); in do_socketpair_poll1_shutdown1()
219 pthread_create(&t, NULL, (void *)thread_poll, (void *)fd[0]); in do_socketpair_poll1_close1()
225 pthread_join(t, NULL); in do_socketpair_poll1_close1()
[all …]
/system/extras/tests/bionic/libc/bionic/
Dtest_pthread_cond.c71 pthread_cond_init(&cond1, NULL); in main()
72 pthread_cond_init(&cond2, NULL); in main()
73 pthread_create( &t[0], NULL, thread1_func, (void *)1 ); in main()
74 pthread_create( &t[1], NULL, thread2_func, (void *)2 ); in main()
75 pthread_create( &t[2], NULL, thread3_func, (void *)3 ); in main()
76 pthread_create( &t[3], NULL, thread4_func, (void *)4 ); in main()
78 pthread_join(t[0], NULL); in main()
79 pthread_join(t[1], NULL); in main()
80 pthread_join(t[2], NULL); in main()
81 pthread_join(t[3], NULL); in main()
/system/core/libcutils/
Ddir_hash.c73 if (f == NULL) { in get_file_hash()
131 struct list *list = NULL; in recurse()
137 if (d == NULL) { in recurse()
141 while ((de = readdir(d)) != NULL) { in recurse()
152 if (name == NULL || node == NULL) { in recurse()
154 for (f = list; f != NULL; f = next) { in recurse()
174 for (f = list; f != NULL; f = f->next) { in recurse()
182 if (name == NULL) { in recurse()
184 for (f = list; f != NULL; f = f->next) { in recurse()
189 for (f = *out; f != NULL; f = f->next) { in recurse()
[all …]
Dhashmap.c45 assert(hash != NULL); in hashmapCreate()
46 assert(equals != NULL); in hashmapCreate()
49 if (map == NULL) { in hashmapCreate()
50 return NULL; in hashmapCreate()
62 if (map->buckets == NULL) { in hashmapCreate()
64 return NULL; in hashmapCreate()
107 if (newBuckets == NULL) { in expandIfNecessary()
116 while (entry != NULL) { in expandIfNecessary()
144 while (entry != NULL) { in hashmapFree()
168 if (entry == NULL) { in createEntry()
[all …]
Dmq.c289 newPacket->nextPacket = NULL; // Just in case. in peerProxyEnqueueOutgoingPacket()
290 if (peerProxy->currentPacket == NULL) { in peerProxyEnqueueOutgoingPacket()
320 if (current == NULL) { in peerProxyNextPacket()
328 current->nextPacket = NULL; in peerProxyNextPacket()
330 if (next == NULL) { in peerProxyNextPacket()
332 peerProxy->lastPacket = NULL; in peerProxyNextPacket()
409 if (peerProxy->fd != NULL) { in peerProxyKill()
419 if (peerProxy->connections != NULL) { in peerProxyKill()
494 msg.msg_name = NULL; in peerProxyWriteConnection()
521 if (current == NULL) { in peerProxyWrite()
[all …]
/system/vold/tests/
DVolumeManager_test.cpp44 … EXPECT_TRUE(VolumeManager::asecHash(exp1, (char*)NULL, sizeof(buffer)) == NULL && errno == ESPIPE) in TEST_F()
46 EXPECT_TRUE(VolumeManager::asecHash(exp1, dst, 0) == NULL && errno == ESPIPE) in TEST_F()
48 …EXPECT_TRUE(VolumeManager::asecHash((const char*)NULL, dst, sizeof(buffer)) == NULL && errno == ES… in TEST_F()
51 EXPECT_FALSE(VolumeManager::asecHash(src1, dst, sizeof(buffer)) == NULL) in TEST_F()
58 EXPECT_FALSE(VolumeManager::asecHash(src2, dst, sizeof(buffer)) == NULL) in TEST_F()
/system/media/audio_utils/
Dresampler.c56 if (rsmp != NULL && rsmp->speex_resampler != NULL) { in resampler_reset()
79 if (rsmp == NULL || out == NULL || outFrameCount == NULL) { in resampler_resample_from_provider()
82 if (rsmp->provider == NULL) { in resampler_resample_from_provider()
110 if (buf.raw == NULL) { in resampler_resample_from_provider()
160 if (rsmp == NULL || in == NULL || inFrameCount == NULL || in resampler_resample_from_input()
161 out == NULL || outFrameCount == NULL) { in resampler_resample_from_input()
164 if (rsmp->provider != NULL) { in resampler_resample_from_input()
202 if (resampler == NULL) { in create_resampler()
206 *resampler = NULL; in create_resampler()
219 if (rsmp->speex_resampler == NULL) { in create_resampler()
[all …]
/system/core/toolbox/
Dchown.c25 char *group = NULL; in chown_main()
27 if ((group = strchr(user, ':')) != NULL) { in chown_main()
29 } else if ((group = strchr(user, '.')) != NULL) { in chown_main()
35 struct group *grp = NULL; in chown_main()
40 if (pw != NULL) { in chown_main()
51 if (group != NULL) { in chown_main()
53 if (grp != NULL) { in chown_main()
/system/extras/ext4_utils/
Dallocate.c72 alloc->list.first = NULL; in create_allocation()
73 alloc->list.last = NULL; in create_allocation()
74 alloc->oob_list.first = NULL; in create_allocation()
75 alloc->oob_list.last = NULL; in create_allocation()
76 alloc->list.iter = NULL; in create_allocation()
78 alloc->oob_list.iter = NULL; in create_allocation()
86 for (element = aux_info.xattrs; element != NULL; element = element->next) { in xattr_list_find()
90 return NULL; in xattr_list_find()
116 reg->next = NULL; in region_list_remove()
117 reg->prev = NULL; in region_list_remove()
[all …]

12345678910>>...14