/system/extras/tests/bionic/libc/common/ |
H A D | test_pthread_join.c | 48 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 D | test_dlopen_null.c | 14 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 D | test_semaphore.c | 55 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 D | test_pthread_once.c | 48 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 D | test_clock.c | 42 pthread_create(&thread, NULL, cpu_hog, NULL);
|
/system/core/fastboot/ |
H A D | util_windows.c | 48 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 D | usb_windows.c | 94 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 D | VolumeManager_test.cpp | 44 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 D | test_pthread_cond.c | 71 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 D | libdlclosetest1.cpp | 63 static int *to_y = NULL; 67 if (to_y == NULL) { 69 *(int *)NULL = 0; // crash
|
H A D | libdlclosetest2.c | 56 static int *to_y = NULL; 61 if (to_y == NULL) { 63 *(int *)NULL = 0; // crash
|
H A D | test_pthread_create.c | 24 pthread_create( &t1, NULL, thread1_func, (void *)1 ); 26 pthread_join(t1, NULL);
|
/system/core/toolbox/ |
H A D | lsmod.c | 7 char *cat_argv[] = { "cat", "/proc/modules", NULL };
|
H A D | chown.c | 25 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 D | grep.c | 173 {"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 D | get_my_path_windows.c | 26 if (GetModuleFileName(NULL, exe, maxLen) > 0) { 28 if (r != NULL)
|
H A D | usb_windows.c | 119 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 D | shell.h | 66 #ifndef NULL 67 #define NULL (void *)0 macro
|
H A D | options.c | 97 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 D | FirewallController.cpp | 48 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 D | NetlinkManager.cpp | 38 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 D | eng_keystore.cpp | 92 * 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 D | utility.h | 35 #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 D | dump_diskconfig.c | 35 if (!(dinfo = load_diskconfig(argv[1], NULL)))
|
/system/core/libcorkscrew/ |
H A D | backtrace-helper.c | 29 return NULL; 32 return NULL;
|