/fuchsia/zircon/third_party/ulib/jemalloc/msvc/projects/vc2015/test_threads/ |
H A D | test_threads_main.cpp | 10 int rc = test_threads(); local 11 return rc;
|
/fuchsia/zircon/system/utest/digest/ |
H A D | digest.cpp | 34 zx_status_t rc = actual.Parse(kZeroDigest, strlen(kZeroDigest)); local 36 rc = actual.ToString(buf, sizeof(buf)); 37 ASSERT_EQ(rc, ZX_OK, zx_status_get_string(rc)); 45 zx_status_t rc = expected.Parse(kZeroDigest, strlen(kZeroDigest)); local 46 ASSERT_EQ(rc, ZX_OK, zx_status_get_string(rc)); 55 zx_status_t rc = local 57 ASSERT_EQ(rc, ZX_OK, zx_status_get_string(rc)); 87 zx_status_t rc = digest_hash(nullptr, 0, buf, sizeof(buf) - 1); local 109 zx_status_t rc = expected.Parse(kZeroDigest, strlen(kZeroDigest)); local [all...] |
/fuchsia/zircon/system/uapp/audio-codec/ |
H A D | audio-codec.c | 18 ssize_t rc = ioctl_audio_codec_enable(fd, &enable); local 19 if (rc < 0) { 20 printf("Error enabling for %s (rc %zd)\n", dev, rc); 27 return rc; 31 int rc = 0; local 38 rc = cmd_enable(argv[2], true); 41 rc = cmd_enable(argv[2], false); 49 return rc;
|
/fuchsia/zircon/system/utest/crypto/ |
H A D | utils.cpp | 50 zx_status_t rc; local 53 if ((rc = out->Resize(len)) != ZX_OK || 54 (rc = HexToBuf(hex, out->get(), len)) != ZX_OK) { 55 return rc; 64 zx_status_t rc; local 68 if ((rc = out->Allocate(len, &buf)) != ZX_OK || 69 (rc = HexToBuf(hex, buf, len)) != ZX_OK) { 70 return rc; 77 zx_status_t rc; local 81 if ((rc 97 zx_status_t rc; local [all...] |
/fuchsia/zircon/system/ulib/crypto/ |
H A D | hkdf.cpp | 35 zx_status_t rc; local 43 if ((rc = digest::GetDigest(digest, &ptr)) != ZX_OK) { 44 return rc; 52 if ((rc = prk_.Allocate(prk_len, &prk)) != ZX_OK) { 53 return rc; 64 xprintf_crypto_errors(&rc); 65 return rc; 73 zx_status_t rc; local 75 if ((rc = out->Resize(len)) != ZX_OK || 76 (rc 84 zx_status_t rc; local 96 zx_status_t rc; local [all...] |
H A D | hmac.cpp | 41 zx_status_t rc; local 44 if ((rc = hmac.Init(digest, key, flags)) != ZX_OK || (rc = hmac.Update(in, in_len)) != ZX_OK || 45 (rc = hmac.Final(out)) != ZX_OK) { 46 return rc; 54 zx_status_t rc; local 57 if ((rc = HMAC::Create(digest, key, in, in_len, &tmp, flags)) != ZX_OK) { 58 return rc; 70 if ((rc = tmp.Resize(hmac.len())) != ZX_OK) { 71 return rc; 84 zx_status_t rc; local 122 zx_status_t rc; local 146 zx_status_t rc; local [all...] |
H A D | aead.cpp | 62 zx_status_t rc; local 69 if ((rc = GetAEAD(algo, &aead)) != ZX_OK) { 70 return rc; 78 zx_status_t rc; local 85 if ((rc = GetAEAD(algo, &aead)) != ZX_OK) { 86 return rc; 94 zx_status_t rc; local 101 if ((rc = GetAEAD(algo, &aead)) != ZX_OK) { 102 return rc; 117 zx_status_t rc; local 161 zx_status_t rc; local 207 zx_status_t rc; local [all...] |
H A D | cipher.cpp | 65 zx_status_t rc; local 72 if ((rc = GetCipher(algo, &cipher)) != ZX_OK) { 73 return rc; 81 zx_status_t rc; local 88 if ((rc = GetCipher(algo, &cipher)) != ZX_OK) { 89 return rc; 97 zx_status_t rc; local 104 if ((rc = GetCipher(algo, &cipher)) != ZX_OK) { 105 return rc; 118 zx_status_t rc; local 191 zx_status_t rc; local [all...] |
H A D | digest.cpp | 42 zx_status_t rc; local 46 if ((rc = GetDigest(digest, &ptr)) != ZX_OK) { 47 return rc;
|
/fuchsia/zircon/system/ulib/zxcrypt/ |
H A D | volume.cpp | 88 zx_status_t rc; local 96 if ((rc = device_get_protocol(dev, ZX_PROTOCOL_BLOCK, &proto)) != ZX_OK) { 102 if ((rc = zx::vmo::create(len, 0, &vmo)) != ZX_OK) { 103 xprintf("zx::vmo::create failed: %s\n", zx_status_get_string(rc)); 104 return rc; 130 if (cmd == BLOCK_OP_WRITE && (rc = vmo.write(buf, 0, len)) != ZX_OK) { 131 xprintf("zx::vmo::write failed: %s\n", zx_status_get_string(rc)); 132 return rc; 138 rc = block->command; 139 if (rc ! 160 zx_status_t rc; local 187 zx_status_t rc; local 209 zx_status_t rc; local 251 zx_status_t rc; local 270 zx_status_t rc; local 292 zx_status_t rc; local 316 zx_status_t rc; local 337 zx_status_t rc; local 368 zx_status_t rc; local 440 zx_status_t rc; local 474 zx_status_t rc; local 524 zx_status_t rc; local 568 zx_status_t rc; local 589 zx_status_t rc; local 621 zx_status_t rc; local 637 zx_status_t rc; local 702 zx_status_t rc; local 721 zx_status_t rc; local 749 zx_status_t rc; local [all...] |
/fuchsia/zircon/system/utest/posixio/ |
H A D | main.cpp | 15 int rc = stat("", &s); local 17 ASSERT_EQ(rc, -1); 27 int rc = lstat("", &s); local 29 ASSERT_EQ(rc, -1); 74 int rc = open("", flags); local 76 ASSERT_EQ(rc, -1); 80 int rc = openat(fd, "", flags); local 82 ASSERT_EQ(rc, -1); 87 rc = open("", flags | O_CREAT, mode); 89 ASSERT_EQ(rc, 93 int rc = openat(fd, "", flags | O_CREAT, mode); local [all...] |
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | ref_counted_internal.h | 39 const int32_t rc = ref_count_.fetch_add(1, memory_order_relaxed); local 58 ZX_ASSERT_MSG(rc >= 1, "count %d(0x%08x) < 1\n", rc, static_cast<uint32_t>(rc)); 90 const int32_t rc = ref_count_.fetch_sub(1, memory_order_release); variable 102 ZX_ASSERT_MSG(rc >= 1, "count %d(0x%08x) < 1\n", rc, static_cast<uint32_t>(rc)); 105 if (rc == 1) {
|
/fuchsia/zircon/system/dev/block/zxcrypt/ |
H A D | worker.cpp | 47 zx_status_t rc; local 55 if ((rc = volume.Bind(crypto::Cipher::kEncrypt, &encrypt_)) != ZX_OK || 56 (rc = volume.Bind(crypto::Cipher::kDecrypt, &decrypt_)) != ZX_OK) { 57 zxlogf(ERROR, "failed to bind ciphers: %s\n", zx_status_get_string(rc)); 58 return rc; 74 zx_status_t rc; local 79 if ((rc = port_.wait(zx::time::infinite(), &packet)) != ZX_OK) { 80 zxlogf(ERROR, "failed to read request: %s\n", zx_status_get_string(rc)); 81 return rc; 118 zx_status_t rc; local 148 zx_status_t rc; local 185 zx_status_t rc; local [all...] |
H A D | device.cpp | 65 zx_status_t rc; local 68 if ((rc = DdkAdd("zxcrypt", DEVICE_ADD_INVISIBLE)) != ZX_OK) { 70 zx_status_get_string(rc)); 71 return rc; 88 zx_status_t rc; local 111 if ((rc = root_key.Allocate(kZx1130KeyLen, &buf)) != ZX_OK) { 112 zxlogf(ERROR, "failed to key of %zu bytes: %s\n", kZx1130KeyLen, zx_status_get_string(rc)); 113 return rc; 117 if ((rc = Volume::Unlock(parent(), root_key, 0, &volume)) != ZX_OK) { 118 zxlogf(ERROR, "failed to unlock volume: %s\n", zx_status_get_string(rc)); 196 zx_status_t rc; local 283 zx_status_t rc; local 363 zx_status_t rc = extra->Init(block, info_->reserved_blocks); local 411 zx_status_t rc; local 447 zx_status_t rc = ZX_OK; local 507 zx_status_t rc; local 551 zx_status_t rc; local [all...] |
/fuchsia/zircon/third_party/ulib/ngunwind/src/ |
H A D | os-linux.c | 38 int found = 0, rc; local 60 rc = elf_map_image (ei, mi.path); 62 return rc;
|
/fuchsia/zircon/system/uapp/clock/ |
H A D | clkctl.c | 82 ssize_t rc = ioctl_clk_measure(fd, &idx, &info); local 83 if (rc < 0) { 84 fprintf(stderr, "ERROR: Failed to measure clock: %zd\n", rc); 85 return rc; 99 ssize_t rc = ioctl_clk_get_count(fd, &num_clocks); local 100 if (rc < 0) { 101 fprintf(stderr, "ERROR: Failed to get num_clocks: %zd\n", rc); 102 return rc; 113 rc = measure_clk_util(fd, i); 114 if (rc < [all...] |
/fuchsia/zircon/system/utest/driver-tests/ |
H A D | main.c | 24 ssize_t rc = ioctl_test_create_device(tfd, drv_libname, strlen(drv_libname) + 1, devpath, sizeof(devpath)); local 25 if (rc < 0) { 26 printf("driver-tests: error %zd creating device for %s\n", rc, drv_libname); 54 rc = ioctl_device_bind(fd, libpath, n); 55 if (rc < 0) { 56 printf("driver-tests: error %zd binding to %s\n", rc, libpath); 73 rc = ioctl_test_run_tests(fd, NULL, 0, report); 74 if (rc < 0) { 75 printf("driver-tests: error %zd running tests\n", rc); 101 ssize_t rc local 126 int rc = thrd_create_with_name(&t, output_thread, socket, "driver-test-output"); local [all...] |
/fuchsia/zircon/system/ulib/digest/ |
H A D | merkle-tree.cpp | 42 zx_status_t rc; local 45 if ((rc = digest->Init()) != ZX_OK) { 46 return rc; 109 zx_status_t rc; local 111 if ((rc = mt.CreateInit(data_len, tree_len)) != ZX_OK || 112 (rc = mt.CreateUpdate(data, data_len, tree)) != ZX_OK || 113 (rc = mt.CreateFinal(tree, digest)) != ZX_OK) { 114 return rc; 171 zx_status_t rc = ZX_OK; local 172 while (length > 0 && rc 210 zx_status_t rc; local 252 zx_status_t rc; local 275 zx_status_t rc; local 293 zx_status_t rc; local 346 zx_status_t rc; local 374 zx_status_t rc; local 390 zx_status_t rc; local 400 zx_status_t rc; local [all...] |
/fuchsia/zircon/system/ulib/fuzz-utils/ |
H A D | fuzzer.cpp | 111 zx_status_t rc; local 113 if ((rc = SetCommand(args->first())) != ZX_OK || (rc = SetFuzzer(args->next())) != ZX_OK || 114 (rc = LoadOptions()) != ZX_OK) { 115 return rc; 121 } else if ((rc = SetOption(arg + 1)) != ZX_OK) { 122 return rc; 195 zx_status_t rc; local 198 if (!root_.empty() && (rc = out->Push(root_.c_str())) != ZX_OK) { 199 fprintf(err_, "failed to move to '%s': %s\n", root_.c_str(), zx_status_get_string(rc)); 210 zx_status_t rc; local 350 zx_status_t rc; local 487 zx_status_t rc; local 560 zx_status_t rc; local 664 zx_status_t rc; local 679 zx_status_t rc; local 735 zx_status_t rc; local 769 zx_status_t rc; local [all...] |
/fuchsia/zircon/system/uapp/hid/ |
H A D | main.cpp | 133 ssize_t rc = ioctl_input_get_protocol(fd, &proto); local 134 if (rc < 0) { 135 lprintf("hid: could not get protocol from %s (status=%zd)\n", name, rc); 139 return rc; 143 ssize_t rc = ioctl_input_get_report_desc_size(fd, report_desc_len); local 144 if (rc < 0) { 145 lprintf("hid: could not get report descriptor length from %s (status=%zd)\n", name, rc); 149 return rc; 155 ssize_t rc = ioctl_input_get_report_desc(fd, buf.get(), report_desc_len); local 156 if (rc < 171 ssize_t rc = ioctl_input_get_num_reports(fd, num_reports); local 184 ssize_t rc = ioctl_input_get_report_ids(fd, ids.get(), out_len); local 231 ssize_t rc = ioctl_input_get_max_reportsize(fd, max_report_len); local 271 ssize_t rc = hid_status(args->fd, args->name, &max_report_len); local 417 ssize_t rc = ioctl_input_get_report_size(fd, &size_arg, &size); local 492 ssize_t rc = ioctl_input_get_report_size(fd, &size_arg, &size); local 543 ssize_t rc = parse_rpt_descriptor(fd, argv[0]); local [all...] |
/fuchsia/zircon/system/uapp/lspwr/ |
H A D | lspwr.c | 23 ssize_t rc = ioctl_power_get_battery_info(fd, &binfo); local 24 if (rc != sizeof(binfo)) { 25 printf("ioctl() returned %zd\n", rc); 69 ssize_t rc = ioctl_power_get_info(fd, &info); local 70 if (rc != sizeof(info)) { 71 printf("ioctl() returned %zd\n", rc); 85 rc = ioctl_power_get_state_change_event(fd, &h); 86 if (rc != sizeof(zx_handle_t)) { 87 printf("ioctl() returned %zd\n", rc); 118 ssize_t rc local [all...] |
/fuchsia/zircon/system/uapp/lsdev/ |
H A D | lsdev.c | 28 ssize_t rc = ioctl_device_get_topo_path(fd, path, 1024); local 29 if (rc < 0) { 31 argv[1], zx_status_get_string((zx_status_t)rc));
|
/fuchsia/zircon/third_party/ulib/uboringssl/crypto/ |
H A D | cpu-aarch64-fuchsia.c | 32 zx_status_t rc = zx_system_get_features(ZX_FEATURE_KIND_CPU, &hwcap); local 33 if (rc != ZX_OK || (hwcap & ZX_ARM64_FEATURE_ISA_ASIMD) == 0) {
|
/fuchsia/zircon/system/uapp/lsblk/ |
H A D | main.c | 208 ssize_t rc = ioctl_skip_block_get_partition_info(fd, &info); local 209 if (rc < (ssize_t)sizeof(info)) { 210 return rc; 232 rc = -1; 251 rc = s; 261 return rc; 274 ssize_t rc = ioctl_block_get_info(fd, &info); local 275 if (rc < 0) { 284 rc = -1; 289 rc 326 ssize_t rc = ioctl_block_get_stats(fd, &clear, &stats); local 343 int rc = 0; local [all...] |
/fuchsia/zircon/system/utest/fs/ |
H A D | test-random-op.c | 232 int rc = rename("::/a", "::/b"); local 233 if (rc < 0) { 246 int rc = rename("::/b", "::/a"); local 247 if (rc < 0) { 262 int rc = mkdir(fname, 0755); local 263 if (rc < 0) { 278 int rc = rmdir(fname); local 279 if (rc < 0) { 292 int rc = unlink("::/a"); local 293 if (rc < 306 int rc = unlink("::/b"); local 322 int rc = mkdir(fname, 0755); local 338 int rc = rmdir(fname); local 354 int rc = rename("::/a", fname); local 397 int rc = rename(fname, "::/a"); local 413 int rc = rename(fname, "::/b"); local 455 int rc = close(w->fd); local 518 int rc = ftruncate(w->fd, 0); local 536 int rc = futimens(w->fd, ts); local 548 int rc = lseek(w->fd, 0, SEEK_END); local 562 int rc = lseek(w->fd, 0, SEEK_SET); local 574 int rc = truncate("::/a", 0); local 685 int rc; local 704 int rc; local [all...] |