Home
last modified time | relevance | path

Searched refs:target_fd (Results 1 – 25 of 31) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/proc/
Dfd-001-lookup.c102 unsigned int fd, target_fd; in main() local
156 target_fd = 1023; in main()
157 while (target_fd > 0) { in main()
158 if (dup2(fd, target_fd) == target_fd) in main()
160 target_fd /= 2; in main()
162 assert(target_fd > 0); in main()
164 test_lookup(target_fd); in main()
165 close(target_fd); in main()
/external/bcc/src/cc/
Dns_guard.cc33 ebpf::FileDesc target_fd(open(target_path.c_str(), O_RDONLY)); in ProcMountNS() local
36 if (self_fd < 0 || target_fd < 0) in ProcMountNS()
42 if (fstat(target_fd, &target_stat) != 0) in ProcMountNS()
51 target_fd_ = std::move(target_fd); in ProcMountNS()
Dlibbpf.c908 int self_fd = -1, target_fd = -1; in enter_mount_ns() local
923 target_fd = open(buf, O_RDONLY | O_CLOEXEC); in enter_mount_ns()
924 if (target_fd < 0) { in enter_mount_ns()
934 if (fstat(target_fd, &target_stat)) { in enter_mount_ns()
943 if (setns(target_fd, CLONE_NEWNS)) { in enter_mount_ns()
948 close(target_fd); in enter_mount_ns()
954 if (target_fd >= 0) in enter_mount_ns()
955 close(target_fd); in enter_mount_ns()
/external/llvm-project/lldb/source/Host/posix/
DProcessLauncherPosixFork.cpp75 int target_fd = llvm::sys::RetryAfterSignal(-1, ::open, in DupDescriptor() local
78 if (target_fd == -1) in DupDescriptor()
81 if (target_fd == fd) in DupDescriptor()
84 if (::dup2(target_fd, fd) == -1) in DupDescriptor()
87 ::close(target_fd); in DupDescriptor()
/external/libchrome/mojo/public/cpp/platform/
Dplatform_channel.cc106 int target_fd) {
108 if (mapping[i].second == target_fd)
193 int target_fd = base::GlobalDescriptors::kBaseDescriptor; in PrepareToPassRemoteEndpoint() local
194 while (IsTargetDescriptorUsed(*info, target_fd)) in PrepareToPassRemoteEndpoint()
195 ++target_fd; in PrepareToPassRemoteEndpoint()
197 target_fd); in PrepareToPassRemoteEndpoint()
198 *value = base::NumberToString(target_fd); in PrepareToPassRemoteEndpoint()
/external/strace/tests-m32/
Dbpf.c713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } },
714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd),
720 .target_fd = -1,
735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } },
736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd),
741 .target_fd = -1,
958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } },
959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd),
966 .target_fd = 3141592653U,
980 .target_fd = 3141592653U,
[all …]
/external/strace/tests/
Dbpf.c713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } },
714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd),
720 .target_fd = -1,
735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } },
736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd),
741 .target_fd = -1,
958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } },
959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd),
966 .target_fd = 3141592653U,
980 .target_fd = 3141592653U,
[all …]
/external/strace/tests-mx32/
Dbpf.c713 .data = { .BPF_PROG_ATTACH_data = { .target_fd = -1 } },
714 .size = offsetofend(struct BPF_PROG_ATTACH_struct, target_fd),
720 .target_fd = -1,
735 .data = { .BPF_PROG_DETACH_data = { .target_fd = -1 } },
736 .size = offsetofend(struct BPF_PROG_DETACH_struct, target_fd),
741 .target_fd = -1,
958 .data = { .BPF_PROG_QUERY_data = { .target_fd = -1 } },
959 .size = offsetofend(struct BPF_PROG_QUERY_struct, target_fd),
966 .target_fd = 3141592653U,
980 .target_fd = 3141592653U,
[all …]
/external/strace/
Dbpf_attr_check.c284 static_assert(SoM(struct BPF_PROG_ATTACH_struct, target_fd) == SoM(union bpf_attr, target_fd),
286 …atic_assert(offsetof(struct BPF_PROG_ATTACH_struct, target_fd) == offsetof(union bpf_attr, target_…
315 static_assert(SoM(struct BPF_PROG_DETACH_struct, target_fd) == SoM(union bpf_attr, target_fd),
317 …atic_assert(offsetof(struct BPF_PROG_DETACH_struct, target_fd) == offsetof(union bpf_attr, target_…
494 static_assert(SoM(struct BPF_PROG_QUERY_struct, target_fd) == SoM(union bpf_attr, query.target_fd),
496 …ic_assert(offsetof(struct BPF_PROG_QUERY_struct, target_fd) == offsetof(union bpf_attr, query.targ…
Dbpf_attr.h147 uint32_t target_fd; member
158 uint32_t target_fd; member
226 uint32_t target_fd; member
Dbpf.c353 PRINT_FIELD_FD("{", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER()
364 PRINT_FIELD_FD("{", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER()
667 PRINT_FIELD_FD("{query={", attr, target_fd, tcp); in BEGIN_BPF_CMD_DECODER()
/external/tensorflow/tensorflow/core/platform/default/
Dposix_file_system.cc406 int target_fd = in CopyFile() local
408 if (target_fd < 0) { in CopyFile()
422 rc = sendfile(target_fd, src_fd, &offset, static_cast<size_t>(chunk)); in CopyFile()
431 rc = write(target_fd, buffer.get(), static_cast<size_t>(chunk)); in CopyFile()
445 rc = close(target_fd); in CopyFile()
/external/strace/m4/
Dbpf_attr.m468 union bpf_attr.query.target_fd,
72 union bpf_attr.target_fd,
/external/iproute2/include/
Dbpf_util.h261 int bpf_prog_attach_fd(int prog_fd, int target_fd, enum bpf_attach_type type);
262 int bpf_prog_detach_fd(int target_fd, enum bpf_attach_type type);
/external/ltp/include/lapi/
Dbpf.h235 uint32_t target_fd; /* container object to attach to */ member
280 uint32_t target_fd; /* container object to query */ member
/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/
DProcessMonitor.cpp1368 int target_fd = llvm::sys::RetryAfterSignal(-1, open, in DupDescriptor() local
1371 if (target_fd == -1) in DupDescriptor()
1374 if (dup2(target_fd, fd) == -1) in DupDescriptor()
1377 return (close(target_fd) == -1) ? false : true; in DupDescriptor()
/external/kernel-headers/original/uapi/linux/
Dbpf.h581 __u32 target_fd; /* container object to attach to */ member
633 __u32 target_fd; /* container object to query */ member
673 __u32 target_fd; /* object to attach to */ member
/external/bcc/src/cc/compat/linux/
Dbpf.h379 __u32 target_fd; /* container object to attach to */ member
417 __u32 target_fd; /* container object to query */ member
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h379 __u32 target_fd; /* container object to attach to */ member
417 __u32 target_fd; /* container object to query */ member
/external/iproute2/lib/
Dbpf.c1029 int bpf_prog_attach_fd(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_attach_fd() argument
1033 attr.target_fd = target_fd; in bpf_prog_attach_fd()
1040 int bpf_prog_detach_fd(int target_fd, enum bpf_attach_type type) in bpf_prog_detach_fd() argument
1044 attr.target_fd = target_fd; in bpf_prog_detach_fd()
/external/iproute2/include/uapi/linux/
Dbpf.h222 __u32 target_fd; /* container object to attach to */ member
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerUtilFuchsia.cpp420 .target_fd = targetFd, in clone_fd_action()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerUtilFuchsia.cpp420 .target_fd = targetFd, in clone_fd_action()
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc1034 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()
/external/googletest/googletest/src/
Dgtest-death-test.cc1033 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()

12