Home
last modified time | relevance | path

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

12345678910>>...15

/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/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/fastboot/
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/keystore-engine/
Ddsa_meth.cpp54 if (key_id == NULL) { in keystore_dsa_do_sign()
63 if (service == NULL) { in keystore_dsa_do_sign()
70 uint8_t* reply = NULL; in keystore_dsa_do_sign()
88 Unique_DSA_SIG dsa_sig(d2i_DSA_SIG(NULL, in keystore_dsa_do_sign()
91 if (dsa_sig.get() == NULL) { in keystore_dsa_do_sign()
104 NULL, /* dsa_sign_setup */
105 NULL, /* dsa_do_verify */
106 NULL, /* dsa_mod_exp */
107 NULL, /* bn_mod_exp */
108 NULL, /* init */
[all …]
Deng_keystore.cpp97 rsa_key_handle = RSA_get_ex_new_index(0, NULL, keyhandle_new, keyhandle_dup, keyhandle_free); in init_key_handle()
98 dsa_key_handle = DSA_get_ex_new_index(0, NULL, keyhandle_new, keyhandle_dup, keyhandle_free); in init_key_handle()
114 if (service == NULL) { in keystore_loadkey()
119 uint8_t *pubkey = NULL; in keystore_loadkey()
125 return NULL; in keystore_loadkey()
129 return NULL; in keystore_loadkey()
133 Unique_EVP_PKEY pkey(d2i_PUBKEY(NULL, &tmp, pubkeyLen)); in keystore_loadkey()
135 if (pkey.get() == NULL) { in keystore_loadkey()
137 return NULL; in keystore_loadkey()
155 return NULL; in keystore_loadkey()
[all …]
Drsa_meth.cpp50 if (padded.get() == NULL) { in keystore_rsa_priv_enc()
77 if (key_id == NULL) { in keystore_rsa_priv_enc()
86 if (service == NULL) { in keystore_rsa_priv_enc()
91 uint8_t* reply = NULL; in keystore_rsa_priv_enc()
121 if (key_id == NULL) { in keystore_rsa_priv_dec()
130 if (service == NULL) { in keystore_rsa_priv_dec()
137 uint8_t* reply = NULL; in keystore_rsa_priv_dec()
186 NULL, /* rsa_pub_enc (wrap) */
187 NULL, /* rsa_pub_dec (verification) */
190 NULL, /* rsa_mod_exp */
[all …]
Decdsa_meth.cpp60 if (key_id == NULL) { in keystore_ecdsa_do_sign()
69 if (service == NULL) { in keystore_ecdsa_do_sign()
76 uint8_t* reply = NULL; in keystore_ecdsa_do_sign()
94 Unique_ECDSA_SIG ecdsa_sig(d2i_ECDSA_SIG(NULL, in keystore_ecdsa_do_sign()
97 if (ecdsa_sig.get() == NULL) { in keystore_ecdsa_do_sign()
110 NULL, /* ecdsa_sign_setup */
111 NULL, /* ecdsa_do_verify */
113 NULL, /* app_data */
129 if (oldData != NULL) { in ecdsa_pkey_setup()
/system/security/softkeymaster/
Dkeymaster_openssl.cpp115 int privateLen = i2d_PrivateKey(pkey, NULL); in wrap_key()
127 if (derData.get() == NULL) { in wrap_key()
166 if (keyBlob == NULL) { in unwrap_key()
168 return NULL; in unwrap_key()
176 return NULL; in unwrap_key()
181 return NULL; in unwrap_key()
195 return NULL; in unwrap_key()
201 return NULL; in unwrap_key()
208 return NULL; in unwrap_key()
212 if (pkey.get() == NULL) { in unwrap_key()
[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 …]
/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()
108 NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) { in start()
113 NFLOG_QUOTA_GROUP, NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) { in start()
[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 …]
/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/core/libutils/
DFileMap.cpp47 : mRefCount(1), mFileName(NULL), mBasePtr(NULL), mBaseLength(0), in FileMap()
48 mDataPtr(NULL), mDataLength(0) in FileMap()
62 if (mFileName != NULL) { in ~FileMap()
109 mFileMapping = CreateFileMapping( mFileHandle, NULL, protect, 0, 0, NULL); in create()
110 if (mFileMapping == NULL) { in create()
125 if (mBasePtr == NULL) { in create()
169 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset); in create()
185 mFileName = origFileName != NULL ? strdup(origFileName) : NULL; in create()
191 assert(mBasePtr != NULL); in create()
/system/core/libcorkscrew/
Dmap_info.c45 return NULL; in parse_vmmap_line()
52 if (mi != NULL) { in parse_vmmap_line()
58 mi->data = NULL; in parse_vmmap_line()
73 if (fp == NULL) { in load_map_info_list()
74 return NULL; in load_map_info_list()
78 map_info_t* milist = NULL; in load_map_info_list()
79 while (fgets(line, sizeof(line), fp) != NULL) { in load_map_info_list()
81 if (mi != NULL) { in load_map_info_list()
104 return NULL; in parse_maps_line()
123 mi->data = NULL; in parse_maps_line()
[all …]
/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>>...15