| /system/utest/core/handle-info/ |
| A D | handle-info.c | 40 ASSERT_EQ(zx_object_get_info(event, ZX_INFO_HANDLE_VALID, NULL, 0u, NULL, NULL), ZX_OK, in handle_info_test() 43 …ASSERT_EQ(zx_object_get_info(event, ZX_INFO_HANDLE_VALID, NULL, 0u, NULL, NULL), ZX_ERR_BAD_HANDLE, in handle_info_test() 47 ASSERT_EQ(zx_object_get_info(duped, ZX_INFO_HANDLE_BASIC, &info, 4u, NULL, NULL), in handle_info_test() 50 status = zx_object_get_info(duped, ZX_INFO_HANDLE_BASIC, &info, sizeof(info), NULL, NULL); in handle_info_test() 74 zx_job_default(), ZX_INFO_HANDLE_BASIC, &info0, sizeof(info0), NULL, NULL); in handle_related_koid_test() 78 zx_process_self(), ZX_INFO_HANDLE_BASIC, &info1, sizeof(info1), NULL, NULL); in handle_related_koid_test() 91 thread, ZX_INFO_HANDLE_BASIC, &info2, sizeof(info2), NULL, NULL); in handle_related_koid_test() 109 sock0, ZX_INFO_HANDLE_BASIC, &info0, sizeof(info0), NULL, NULL); in handle_related_koid_test() 113 sock1, ZX_INFO_HANDLE_BASIC, &info1, sizeof(info1), NULL, NULL); in handle_related_koid_test() 138 …tus_t status = zx_object_get_info(duped_ro, ZX_INFO_HANDLE_BASIC, &info, sizeof(info), NULL, NULL); in handle_rights_test()
|
| /system/utest/core/pthread/ |
| A D | pthread.cpp | 42 return NULL; in mutex_thread_1() 60 return NULL; in mutex_thread_2() 78 return NULL; in mutex_thread_3() 90 return NULL; in cond_thread1() 102 return NULL; in cond_thread2() 128 pthread_create(&thread1, NULL, cond_thread1, NULL); in pthread_test() 129 pthread_create(&thread2, NULL, cond_thread2, NULL); in pthread_test() 130 pthread_create(&thread3, NULL, cond_thread3, NULL); in pthread_test() 174 pthread_create(&thread1, NULL, mutex_thread_1, NULL); in pthread_test() 175 pthread_create(&thread2, NULL, mutex_thread_2, NULL); in pthread_test() [all …]
|
| /system/ulib/fdio/ |
| A D | bsdsocket.c | 77 fdio_t* io = NULL; in socket() 99 if (io == NULL) { in socket() 124 if (io == NULL) { in connect() 144 if (io == NULL) { in bind() 157 if (io == NULL) { in listen() 181 if (io == NULL) { in accept4() 260 if ((node == NULL && service == NULL) || res == NULL) { in getaddrinfo() 287 ht = NULL; in getaddrinfo() 388 if (len == NULL || addr == NULL) { in getsockname() 409 if (len == NULL || addr == NULL) { in getpeername() [all …]
|
| A D | debug.c | 22 }* logbuf = NULL; in fdio_lldebug_log_write() 24 if (logbuf == NULL) { in fdio_lldebug_log_write() 25 if ((logbuf = calloc(1, sizeof(*logbuf))) == NULL) { in fdio_lldebug_log_write() 30 logbuf = NULL; in fdio_lldebug_log_write() 87 return NULL; in fdio_alloc() 89 void* ptr = NULL; in fdio_alloc() 106 io->ops = NULL; in fdio_free()
|
| A D | unistd.c | 69 .ops = NULL, 229 return NULL; in fdio_unsafe_fd_to_io() 231 fdio_t* io = NULL; in fdio_unsafe_fd_to_io() 236 io = NULL; in fdio_unsafe_fd_to_io() 891 if (io == NULL) in fdio_wait_fd() 1648 return NULL; in realpath() 1830 return NULL; in getcwd() 1903 return NULL; in opendir() 1905 if (dir == NULL) in opendir() 1979 de = NULL; in readdir() [all …]
|
| /system/utest/core/sync-mutex/ |
| A D | mutex.c | 123 thrd_create_with_name(&thread1, mutex_thread_1, NULL, "thread 1"); in test_mutexes() 124 thrd_create_with_name(&thread2, mutex_thread_2, NULL, "thread 2"); in test_mutexes() 125 thrd_create_with_name(&thread3, mutex_thread_3, NULL, "thread 3"); in test_mutexes() 127 thrd_join(thread1, NULL); in test_mutexes() 128 thrd_join(thread2, NULL); in test_mutexes() 129 thrd_join(thread3, NULL); in test_mutexes() 138 thrd_create_with_name(&thread1, mutex_try_thread_1, NULL, "thread 1"); in test_try_mutexes() 142 thrd_join(thread1, NULL); in test_try_mutexes() 143 thrd_join(thread2, NULL); in test_try_mutexes() 144 thrd_join(thread3, NULL); in test_try_mutexes() [all …]
|
| /system/uapp/fs-mount/ |
| A D | main.c | 36 {"readonly", no_argument, NULL, 'r'}, in parse_args() 37 {"metrics", no_argument, NULL, 'm'}, in parse_args() 38 {"journal", no_argument, NULL, 'j'}, in parse_args() 39 {"verbose", no_argument, NULL, 'v'}, in parse_args() 40 {"help", no_argument, NULL, 'h'}, in parse_args() 41 {NULL, 0, NULL, 0}, in parse_args()
|
| /system/utest/core/channel/ |
| A D | channel.c | 174 status = zx_channel_read(channel[0], 0u, NULL, NULL, 0, 0, NULL, NULL); in channel_read_error_test() 193 status = zx_channel_read(channel[0], 0u, NULL, NULL, 0, 0, NULL, NULL); in channel_read_error_test() 269 sizeof(event_handle_info), NULL, NULL); in channel_non_transferable() 433 … EXPECT_EQ(zx_channel_read(channel[1], ZX_CHANNEL_READ_MAY_DISCARD, NULL, NULL, 0, 0, NULL, NULL), in channel_may_discard() 744 .rd_handles = NULL, in channel_call_consumes_handles() 799 .wr_handles = NULL, in channel_call2() 802 .rd_bytes = NULL, in channel_call2() 803 .rd_handles = NULL, in channel_call2() 854 .wr_handles = NULL, in bad_channel_call_finish() 857 .rd_bytes = NULL, in bad_channel_call_finish() [all …]
|
| /system/utest/core/resource/ |
| A D | resource.cpp | 77 ASSERT_EQ(new_root.get_info(ZX_INFO_RESOURCE, &info, sizeof(info), NULL, NULL), ZX_OK); in TestBasicActions() 93 ASSERT_EQ(mmio.get_info(ZX_INFO_RESOURCE, &info, sizeof(info), NULL, NULL), ZX_OK); in TestBasicActions() 110 mmio_test_size, NULL, 0, &temp), in TestInvalidArgs() 120 mmio_test_size, NULL, 0, &temp), in TestInvalidArgs() 128 NULL, 0, &temp), in TestInvalidArgs() 132 NULL, 0, &temp), in TestInvalidArgs() 136 mmio_test_size, NULL, 0, &temp), in TestInvalidArgs() 151 mmio_test_size, NULL, 0, &mmio_2), in TestExclusiveShared() 162 mmio_test_size, NULL, 0, &mmio_1), in TestSharedExclusive() 176 mmio_test_size, NULL, 0, &mmio), in TestVmoCreation() [all …]
|
| /system/utest/spawn/ |
| A D | launcher.c | 10 launchpad_t* lp = NULL; in main() 17 zx_status_t status = launchpad_go(lp, &process, NULL); in main() 21 status = zx_object_wait_one(process, ZX_TASK_TERMINATED, ZX_TIME_INFINITE, NULL); in main() 27 … status = zx_object_get_info(process, ZX_INFO_PROCESS, &proc_info, sizeof(proc_info), NULL, NULL); in main()
|
| A D | child.c | 61 fdio_ns_t* ns = NULL; in check_flags() 72 bool has_environ = environ[0] != NULL; in check_flags() 116 return environ[0] == NULL ? 61 : -1; in main() 118 bool pass = environ[0] != NULL && !strcmp(environ[0], "SPAWN_TEST_CHILD=1") && in main() 119 environ[1] == NULL; in main() 123 bool pass = environ[0] != NULL && !strcmp(environ[0], "SPAWN_TEST_CHILD=1") && in main() 124 environ[1] != NULL && !strcmp(environ[1], "SPAWN_TEST_CHILD2=1") && in main() 125 environ[2] == NULL; in main()
|
| /system/host/netprotocol/ |
| A D | netaddr.c | 31 if (hostname != NULL && strcmp(hostname, device->nodename)) { in on_device() 56 {"fuchsia", no_argument, NULL, 'f'}, 57 {"local", no_argument, NULL, 'l'}, 58 {NULL, 0, NULL, 0}, 93 hostname = NULL; in main() 96 if (netboot_discover(NB_SERVER_PORT, NULL, on_device, NULL) || !found) { in main()
|
| /system/utest/core/handle-transfer/ |
| A D | handle-transfer.c | 33 status = zx_channel_write(A[0], 0u, "1", 1u, NULL, 0u); in handle_transfer_test() 37 status = zx_channel_write(B[0], 0u, NULL, 0u, &A[1], 1u); in handle_transfer_test() 42 status = zx_channel_write(A[0], 0u, "2", 1u, NULL, 0u); in handle_transfer_test() 49 status = zx_channel_read(B[1], 0u, NULL, &H, 0, num_handles, &num_bytes, &num_handles); in handle_transfer_test() 56 status = zx_channel_write(A[0], 0u, "3", 1u, NULL, 0u); in handle_transfer_test() 64 status = zx_channel_read(H, 0u, buf, NULL, num_bytes, 0, &num_bytes, &num_handles); in handle_transfer_test() 86 nanosleep(&t, NULL); in thread() 91 zx_status_t status = zx_channel_write(B[1], 0, NULL, 0u, &A[0], 1); in thread() 100 status = zx_channel_read(B[0], 0, NULL, &H, 0, num_handles, NULL, &num_handles); in thread() 132 status = zx_object_wait_one(A[0], signals, zx_deadline_after(ZX_SEC(1)), NULL); in handle_transfer_cancel_wait_test() [all …]
|
| /system/utest/core/c11-mutex/ |
| A D | mutex.c | 131 thrd_create_with_name(&thread1, mutex_thread_1, NULL, "thread 1"); in test_mutexes() 132 thrd_create_with_name(&thread2, mutex_thread_2, NULL, "thread 2"); in test_mutexes() 133 thrd_create_with_name(&thread3, mutex_thread_3, NULL, "thread 3"); in test_mutexes() 135 thrd_join(thread1, NULL); in test_mutexes() 136 thrd_join(thread2, NULL); in test_mutexes() 137 thrd_join(thread3, NULL); in test_mutexes() 146 thrd_create_with_name(&thread1, mutex_try_thread_1, NULL, "thread 1"); in test_try_mutexes() 150 thrd_join(thread1, NULL); in test_try_mutexes() 151 thrd_join(thread2, NULL); in test_try_mutexes() 152 thrd_join(thread3, NULL); in test_try_mutexes() [all …]
|
| /system/utest/errno/ |
| A D | errno.c | 19 return NULL; in do_test() 29 pthread_create(&thread2, NULL, do_test, &thread_1); in errno_test() 32 pthread_create(&thread3, NULL, do_test, &thread_2); in errno_test() 37 pthread_join(thread2, NULL); in errno_test() 40 pthread_join(thread3, NULL); in errno_test()
|
| /system/host/bootserver/ |
| A D | bootserver.c | 67 time_t t = time(NULL); in date_string() 165 gettimeofday(&start_time, NULL); in xfer() 182 gettimeofday(&end_time, NULL); in xfer() 297 char* nodename = NULL; in main() 301 const char* efi_image = NULL; in main() 302 const char* kernc_image = NULL; in main() 309 const char* fvm_images[MAX_FVM_IMAGES] = {NULL, NULL, NULL, NULL}; in main() 310 const char* kernel_fn = NULL; in main() 311 const char* ramdisk_fn = NULL; in main() 594 char* save = NULL; in main() [all …]
|
| /system/dev/bus/acpi/ |
| A D | init.c | 28 return AcpiEvaluateObject(NULL, (char*)"\\_PIC", ¶ms, NULL); in set_apic_irq_mode() 32 ACPI_DEVICE_INFO* info = NULL; in is_gpe_device() 56 .Pointer = NULL, in acpi_prw_walk() 58 ACPI_STATUS status = AcpiEvaluateObject(obj, (char*) "_PRW", NULL, &buffer); in acpi_prw_walk() 78 gpe_block = NULL; in acpi_prw_walk() 117 status = AcpiInitializeTables(NULL, ACPI_MAX_INIT_TABLES, FALSE); in init() 161 acpi_prw_walk, NULL, NULL, NULL); in init()
|
| /system/uapp/clock/ |
| A D | clock.c | 35 return NULL; in guess_dev() 39 while ((de = readdir(d)) != NULL) { in guess_dev() 54 return NULL; in guess_dev() 122 char *path = NULL; in main() 123 char *set = NULL; in main() 125 {"set", required_argument, NULL, 's'}, in main() 126 {"dev", required_argument, NULL, 'd'}, in main() 127 {"help", no_argument, NULL, 'h'}, in main() 130 for (int opt; (opt = getopt_long(argc, argv, "", opts, NULL)) != -1;) { in main()
|
| /system/utest/syslog/ |
| A D | syslog_tests.c | 63 EXPECT_EQ(ZX_OK, init_helper(pipefd[0], NULL, 0), ""); in test_log_simple_write() 64 FX_LOG(INFO, NULL, "test message"); in test_log_simple_write() 80 EXPECT_EQ(ZX_OK, init_helper(pipefd[0], NULL, 0), ""); in test_log_write() 81 FX_LOGF(INFO, NULL, "%d, %s", 10, "just some number"); in test_log_write() 97 EXPECT_EQ(ZX_OK, init_helper(pipefd[0], NULL, 0), ""); in test_log_preprocessed_message() 98 FX_LOG(INFO, NULL, "%d, %s"); in test_log_preprocessed_message() 115 EXPECT_EQ(ZX_OK, init_helper(pipefd[0], NULL, 0), ""); in test_log_severity() 196 FX_LOGF(INFO, NULL, "%s", msg); in test_msg_length_limit() 204 FX_LOG(INFO, NULL, msg); in test_msg_length_limit() 221 FX_VLOG(1, NULL, "test message"); in test_vlog_simple_write() [all …]
|
| /system/utest/core/memory-mapping/ |
| A D | memory-mapping.cpp | 50 NULL, NULL); in address_space_limits_test() 94 char* addr = (char *)mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_zerofilled_test() 107 uint32_t* addr = (uint32_t*)mmap(NULL, 0, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_len_test() 112 addr = (uint32_t*)mmap(NULL, PTRDIFF_MAX, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_len_test() 123 … uint32_t* addr = (uint32_t*)mmap(NULL, sizeof(uint32_t), PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 4); in mmap_offset_test() 155 void* addr = mmap(NULL, page_size, PROT_READ|PROT_WRITE, in mmap_PROT_EXEC_test() 189 addr = (uint32_t*)mmap(NULL, sizeof(uint32_t), PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_prot_test() 196 … addr = (uint32_t*)mmap(NULL, sizeof(uint32_t), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_prot_test() 210 uint32_t* addr = (uint32_t*)mmap(NULL, sizeof(uint32_t), PROT_READ, MAP_ANON, -1, 0); in mmap_flags_test() 220 addr = (uint32_t*)mmap(NULL, sizeof(uint32_t), PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in mmap_flags_test() [all …]
|
| /system/utest/core/pthread-tls/ |
| A D | tls-test.c | 39 return NULL; in do_work() 44 ASSERT_EQ(pthread_key_create(&tsd_key, NULL), 0, "Error during key creation"); in tls_test() 56 pthread_create(&thread2, NULL, do_work, &thread_1); in tls_test() 59 pthread_create(&thread3, NULL, do_work, &thread_2); in tls_test() 64 pthread_join(thread2, NULL); in tls_test() 67 pthread_join(thread3, NULL); in tls_test()
|
| /system/ulib/chromeos-disk-setup/ |
| A D | chromeos-disk-setup.cpp | 36 if (part == NULL) { in part_name_eql() 47 if (part == NULL) { in part_name_guid_eql() 59 if (part == NULL) { in part_size_gte() 70 if (p == NULL) { in find_by_type() 77 return NULL; in find_by_type() 84 if (p == NULL) { in find_by_type_and_name() 91 return NULL; in find_by_type_and_name() 114 if (parts[i] == NULL) { in find_space() 172 if (p == NULL) { in is_cros() 204 if (part == NULL) { in is_ready_to_pave() [all …]
|
| /system/ulib/ftl/utils/ |
| A D | ftl_mc.c | 109 if (cache == NULL) in ftlmcNew() 110 return NULL; in ftlmcNew() 125 return NULL; in ftlmcNew() 131 return NULL; in ftlmcNew() 136 if (data_space == NULL) { in ftlmcNew() 140 return NULL; in ftlmcNew() 195 *cache_ptr = NULL; in ftlmcDelete() 297 return NULL; in ftlmcGetPage() 306 entry->prev_hash = NULL; in ftlmcGetPage() 316 if (new_ptr == NULL) { in ftlmcGetPage() [all …]
|
| /system/utest/usb/ |
| A D | usb-test.c | 26 while ((de = readdir(d)) != NULL) { in check_xhci_root_hubs() 44 if (d == NULL) { in usb_root_hubs_test() 64 if (d == NULL) { in open_test_device() 68 while ((de = readdir(d)) != NULL) { in open_test_device() 99 ASSERT_EQ(fuchsia_hardware_usb_tester_DeviceBulkLoopback(dev_svc, ¶ms, NULL, NULL, &status), in usb_bulk_loopback_test() 104 ASSERT_EQ(fuchsia_hardware_usb_tester_DeviceBulkLoopback(dev_svc, ¶ms, NULL, NULL, &status), in usb_bulk_loopback_test() 137 fuchsia_hardware_usb_tester_DeviceBulkLoopback(dev_svc, ¶ms, &sg_list, NULL, &status), in usb_bulk_scatter_gather_test() 143 fuchsia_hardware_usb_tester_DeviceBulkLoopback(dev_svc, ¶ms, NULL, &sg_list, &status), in usb_bulk_scatter_gather_test()
|
| /system/uapp/crasher/ |
| A D | crasher.c | 165 int ret = thrd_join(threads[i], NULL); in blind_write_multithreaded() 186 {NULL, NULL, NULL}, 194 blind_write(NULL); in main() 197 for (command_t* cmd = commands; cmd->name != NULL; ++cmd) { in main() 200 cmd->func(NULL); in main() 207 for (command_t* cmd = commands; cmd->name != NULL; ++cmd) { in main()
|