Searched refs:tmp_fd (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 22 int err, duration = 0, i, data_map_fd, data_map_id, tmp_fd, rdmap_fd; in test_mmap() local 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { in test_mmap() 277 close(tmp_fd); in test_mmap() 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", in test_mmap() 293 "unexpectedly succeeded %d\n", tmp_fd)) { in test_mmap() 294 close(tmp_fd); in test_mmap()
|
/openbmc/qemu/monitor/ |
H A D | fds.c | 77 int tmp_fd; in monitor_add_fd() local 83 tmp_fd = monfd->fd; in monitor_add_fd() 87 close(tmp_fd); in monitor_add_fd() 120 int tmp_fd; in qmp_closefd() local 129 tmp_fd = monfd->fd; in qmp_closefd() 134 close(tmp_fd); in qmp_closefd()
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | scp.py | 18 cls.tmp_fd, cls.tmp_path = mkstemp() 19 with os.fdopen(cls.tmp_fd, 'w') as f:
|
/openbmc/openbmc/meta-security/lib/oeqa/runtime/cases/ |
H A D | clamav.py | 16 cls.tmp_fd, cls.tmp_path = mkstemp() 17 with os.fdopen(cls.tmp_fd, 'w') as f:
|
H A D | suricata.py | 15 cls.tmp_fd, cls.tmp_path = mkstemp() 16 with os.fdopen(cls.tmp_fd, 'w') as f:
|
/openbmc/openbmc/meta-security/meta-parsec/lib/oeqa/runtime/cases/ |
H A D | parsec.py | 34 tmp_fd, tmp_path = mkstemp() 35 with os.fdopen(tmp_fd, 'w') as f:
|
/openbmc/qemu/hw/core/ |
H A D | eif.c | 158 int tmp_fd; in get_tmp_file() local 161 tmp_fd = g_file_open_tmp(template, tmp_path, NULL); in get_tmp_file() 162 if (tmp_fd < 0 || *tmp_path == NULL) { in get_tmp_file() 168 close(tmp_fd); in get_tmp_file()
|
/openbmc/u-boot/tools/ |
H A D | imx8image.c | 279 int tmp_fd = open(filename, O_RDONLY | O_BINARY); in check_file() local 281 if (tmp_fd < 0) { in check_file() 287 if (fstat(tmp_fd, sbuf) < 0) { in check_file() 293 close(tmp_fd); in check_file()
|
/openbmc/qemu/tests/qtest/ |
H A D | vhost-user-blk-test.c | 840 int tmp_fd; in create_listen_socket() local 846 tmp_fd = mkstemp(path); in create_listen_socket() 847 g_assert_cmpint(tmp_fd, >=, 0); in create_listen_socket() 848 close(tmp_fd); in create_listen_socket()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-inject.c | 85 int tmp_fd; member 865 ssize_t ret = writen(gs->tmp_fd, buf, sz); in guest_session__output_bytes() 1277 gs->tmp_fd = mkstemp(gs->tmp_file_name); in guest_session__start() 1278 if (gs->tmp_fd < 0) in guest_session__start() 1292 if (lseek(gs->tmp_fd, 0, SEEK_SET)) in guest_session__start() 1320 if (gs->tmp_fd >= 0) in guest_session__exit() 1321 close(gs->tmp_fd); in guest_session__exit() 1390 ret = readn(gs->tmp_fd, buf, hdr_sz); in guest_session__fetch() 1402 ret = readn(gs->tmp_fd, buf, hdr->size - hdr_sz); in guest_session__fetch()
|