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

1234567891011>>

/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_join.c48 return NULL;
60 return NULL;
67 pthread_create( &t1, NULL, thread1_func, NULL );
68 pthread_create( &t2, NULL, thread2_func, (void*)t1 );
69 pthread_create( &t3, NULL, thread3_func, (void*)t1 );
71 pthread_join(t2, NULL);
72 pthread_join(t3, NULL);
H A Dtest_dlopen_null.c14 void* lib = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
26 if (lib == NULL) {
27 fprintf(stderr, "Could not open self-executable with dlopen(NULL) !!: %s\n", dlerror());
31 if (symbol == NULL) {
H A Dtest_semaphore.c55 return NULL;
64 return NULL;
75 return NULL;
84 return NULL;
96 return NULL;
99 return NULL;
122 if ( pthread_create( &t[nn], NULL, thread_routines[nn], NULL ) < 0 ) {
H A Dtest_pthread_once.c48 nanosleep (&ts, NULL);
60 return NULL;
69 if (pthread_create( &threads[nn], NULL, thread_function, (void*)(long int)nn) < 0) {
76 if (pthread_join(threads[nn], NULL)) {
H A Dtest_clock.c42 pthread_create(&thread, NULL, cpu_hog, NULL);
/system/core/fastboot/
H A Dutil_windows.c48 NULL,
51 NULL );
56 sz = GetFileSize( file, NULL );
66 GetModuleFileName( NULL, exe, PATH_MAX-1 );
83 NULL,
86 NULL );
89 return NULL;
91 sz = GetFileSize( file, NULL );
92 data = NULL;
96 if (data == NULL) {
[all...]
H A Dusb_windows.c94 if (NULL == ret)
95 return NULL;
100 if (NULL == ret->adb_interface) {
103 return NULL;
111 if (NULL != ret->adb_read_pipe) {
117 if (NULL != ret->adb_write_pipe) {
123 NULL,
129 if (NULL != ret->interface_name) {
151 return NULL;
161 if (NULL !
[all...]
/system/vold/tests/
H A DVolumeManager_test.cpp44 EXPECT_TRUE(VolumeManager::asecHash(exp1, (char*)NULL, sizeof(buffer)) == NULL && errno == ESPIPE)
45 << "Should return NULL and set errno to ESPIPE when destination buffer is NULL";
46 EXPECT_TRUE(VolumeManager::asecHash(exp1, dst, 0) == NULL && errno == ESPIPE)
47 << "Should return NULL and set errno to ESPIPE when destination buffer length is 0";
48 EXPECT_TRUE(VolumeManager::asecHash((const char*)NULL, dst, sizeof(buffer)) == NULL && errno == ESPIPE)
49 << "Should return NULL and set errno to ESPIPE when source buffer is NULL";
[all...]
/system/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_cond.c71 pthread_cond_init(&cond1, NULL);
72 pthread_cond_init(&cond2, NULL);
73 pthread_create( &t[0], NULL, thread1_func, (void *)1 );
74 pthread_create( &t[1], NULL, thread2_func, (void *)2 );
75 pthread_create( &t[2], NULL, thread3_func, (void *)3 );
76 pthread_create( &t[3], NULL, thread4_func, (void *)4 );
78 pthread_join(t[0], NULL);
79 pthread_join(t[1], NULL);
80 pthread_join(t[2], NULL);
81 pthread_join(t[3], NULL);
[all...]
H A Dlibdlclosetest1.cpp63 static int *to_y = NULL;
67 if (to_y == NULL) {
69 *(int *)NULL = 0; // crash
H A Dlibdlclosetest2.c56 static int *to_y = NULL;
61 if (to_y == NULL) {
63 *(int *)NULL = 0; // crash
H A Dtest_pthread_create.c24 pthread_create( &t1, NULL, thread1_func, (void *)1 );
26 pthread_join(t1, NULL);
/system/core/toolbox/
H A Dlsmod.c7 char *cat_argv[] = { "cat", "/proc/modules", NULL };
H A Dchown.c25 char *group = NULL;
27 if ((group = strchr(user, ':')) != NULL) {
29 } else if ((group = strchr(user, '.')) != NULL) {
35 struct group *grp = NULL;
40 if (pw != NULL) {
51 if (group != NULL) {
53 if (grp != NULL) {
/system/core/toolbox/grep/
H A 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_OP
[all...]
/system/core/adb/
H A Dget_my_path_windows.c26 if (GetModuleFileName(NULL, exe, maxLen) > 0) {
28 if (r != NULL)
H A Dusb_windows.c119 if (NULL != dev_name) {
123 if((NULL != usb->interface_name) &&
136 if (NULL != dev_name) {
146 if (NULL == handle)
176 return NULL;
182 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
193 if (NULL == ret)
194 return NULL;
203 if (NULL == ret->adb_interface) {
206 return NULL;
[all...]
/system/core/sh/
H A Dshell.h66 #ifndef NULL
67 #define NULL (void *)0 macro
H A Doptions.c97 if (*argptr == NULL && minusc == NULL)
110 if (sflag == 0 && minusc == NULL) {
117 if (minusc != NULL) {
118 if (argptr == NULL || *argptr == NULL)
160 minusc = NULL;
161 while ((p = *argptr) != NULL) {
171 else if (*argptr == NULL)
221 if (name == NULL) {
[all...]
/system/netd/
H A DFirewallController.cpp48 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL);
49 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL);
50 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL);
59 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL);
60 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL);
61 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL);
80 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL);
81 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL);
99 res |= execIptables(target, op, LOCAL_INPUT, "-d", addr, "-j", "RETURN", NULL);
100 res |= execIptables(target, op, LOCAL_OUTPUT, "-s", addr, "-j", "RETURN", NULL);
[all...]
H A DNetlinkManager.cpp38 NetlinkManager *NetlinkManager::sInstance = NULL;
47 mBroadcaster = NULL;
67 return NULL;
73 return NULL;
79 return NULL;
85 return NULL;
92 return NULL;
100 0xffffffff, NetlinkListener::NETLINK_FORMAT_ASCII)) == NULL) {
105 NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) {
110 NFLOG_QUOTA_GROUP, NetlinkListener::NETLINK_FORMAT_BINARY)) == NULL) {
[all...]
/system/security/keystore-engine/
H A Deng_keystore.cpp92 * Makes sure the ex_data for the keyhandle is initially set to NULL.
95 return CRYPTO_set_ex_data(ad, idx, NULL);
103 if (keyhandle != NULL) {
115 if (keyhandle != NULL) {
131 if (padded.get() == NULL) {
158 if (key_id == NULL) {
186 NULL, /* rsa_pub_enc */
187 NULL, /* rsa_pub_dec (verification) */
189 NULL, /* rsa_priv_dec */
190 NULL, /* rsa_mod_ex
[all...]
/system/core/debuggerd/
H A Dutility.h35 #define LOG(fmt...) _LOG(NULL, 0, fmt)
39 #define XLOG(fmt...) _LOG(NULL, 0, fmt)
46 #define XLOG2(fmt...) _LOG(NULL, 0, fmt)
/system/core/libdiskconfig/
H A Ddump_diskconfig.c35 if (!(dinfo = load_diskconfig(argv[1], NULL)))
/system/core/libcorkscrew/
H A Dbacktrace-helper.c29 return NULL;
32 return NULL;

Completed in 2724 milliseconds

1234567891011>>