Home
last modified time | relevance | path

Searched refs:cfd (Results 1 – 25 of 39) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c30 int fd, cfd; in FIXTURE() local
61 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP()
62 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP()
74 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in FIXTURE_SETUP()
81 close(self->cfd); in FIXTURE_TEARDOWN()
94 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
100 int fd, cfd; in FIXTURE() local
148 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP()
149 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP()
152 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", in FIXTURE_SETUP()
[all …]
/external/strace/tests-m32/
Drecvfrom.c40 static int cfd; variable
45 if (send(cfd, "A", 1, 0) != 1) in send_un()
52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main()
54 if (cfd < 0 || lfd < 0) in main()
63 if (bind(cfd, (const void *) &un, sizeof(un))) in main()
76 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
Dgetpeername.c37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local
38 if (lfd < 0 || cfd < 0) in main()
52 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
57 test_sockname_syscall(cfd); in main()
Daccept.c67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in connect_un() local
68 if (cfd < 0) in connect_un()
77 if (bind(cfd, (const void *) &un, sizeof(un))) in connect_un()
82 if (connect(cfd, (const void *) &un, sizeof(un))) in connect_un()
/external/strace/tests/
Drecvfrom.c40 static int cfd; variable
45 if (send(cfd, "A", 1, 0) != 1) in send_un()
52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main()
54 if (cfd < 0 || lfd < 0) in main()
63 if (bind(cfd, (const void *) &un, sizeof(un))) in main()
76 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
Dgetpeername.c37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local
38 if (lfd < 0 || cfd < 0) in main()
52 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
57 test_sockname_syscall(cfd); in main()
Daccept.c67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in connect_un() local
68 if (cfd < 0) in connect_un()
77 if (bind(cfd, (const void *) &un, sizeof(un))) in connect_un()
82 if (connect(cfd, (const void *) &un, sizeof(un))) in connect_un()
/external/strace/tests-mx32/
Drecvfrom.c40 static int cfd; variable
45 if (send(cfd, "A", 1, 0) != 1) in send_un()
52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main()
54 if (cfd < 0 || lfd < 0) in main()
63 if (bind(cfd, (const void *) &un, sizeof(un))) in main()
76 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
Dgetpeername.c37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in main() local
38 if (lfd < 0 || cfd < 0) in main()
52 if (connect(cfd, (const void *) &un, sizeof(un))) in main()
57 test_sockname_syscall(cfd); in main()
Daccept.c67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); in connect_un() local
68 if (cfd < 0) in connect_un()
77 if (bind(cfd, (const void *) &un, sizeof(un))) in connect_un()
82 if (connect(cfd, (const void *) &un, sizeof(un))) in connect_un()
/external/toybox/toys/posix/
Dcp.c126 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() local
147 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev in cp_node()
158 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node()
165 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) { in cp_node()
208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) in cp_node()
209 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW))) in cp_node()
216 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
239 if (!symlinkat(s, cfd, catch)) { in cp_node()
254 ((!unlinkat(cfd, catch, 0) || ENOENT == errno) && in cp_node()
255 !symlinkat(toybuf, cfd, catch))) in cp_node()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dcgroup_helpers.c49 int fd, cfd; in enable_all_controllers() local
73 cfd = open(path, O_RDWR); in enable_all_controllers()
74 if (cfd < 0) { in enable_all_controllers()
80 if (dprintf(cfd, "+%s\n", c) <= 0) { in enable_all_controllers()
82 close(cfd); in enable_all_controllers()
86 close(cfd); in enable_all_controllers()
/external/ltp/testcases/network/netstress/
Dnetstress.c323 int cfd = SAFE_SOCKET(family, sock_type, protocol); in client_connect_send() local
325 init_socket_opts(cfd); in client_connect_send()
329 SAFE_SENDTO(1, cfd, msg, size, send_flags | MSG_FASTOPEN, in client_connect_send()
332 bind_before_connect(cfd); in client_connect_send()
334 SAFE_CONNECT(cfd, remote_addrinfo->ai_addr, in client_connect_send()
336 SAFE_SEND(1, cfd, msg, size, send_flags); in client_connect_send()
338 return cfd; in client_connect_send()
514 int cfd = client_connect_send(client_msg, msg_len); in client_run() local
515 if (cfd != -1) { in client_run()
516 shutdown(cfd, SHUT_WR); in client_run()
[all …]
/external/toybox/toys/other/
Dlosetup.c62 int i, cfd = open("/dev/loop-control", O_RDWR); local
68 if (cfd != -1) {
69 if (0 <= (i = ioctl(cfd, LOOP_CTL_GET_FREE))) {
72 close(cfd);
/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl02.c376 int cfd; in do_child_setup() local
378 cfd = open(childtty, O_RDWR, 0777); in do_child_setup()
379 if (cfd < 0) { in do_child_setup()
388 if (ioctl(cfd, TCFLSH, 2) < 0) { in do_child_setup()
398 return cfd; in do_child_setup()
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c276 int cfd = 0; in main() local
391 cfd = open(containerpath, O_RDONLY); in main()
392 if (cfd < 0) { in main()
398 CGROUPSTATS_CMD_ATTR_FD, &cfd, sizeof(__u32)); in main()
528 if (cfd) in main()
529 close(cfd); in main()
/external/ltp/testcases/network/sctp/
Dsctp_big_chunk.c27 static int sfd, cfd; variable
132 cfd = SAFE_SOCKET(AF_INET6, SOCK_RAW, IPPROTO_RAW); in setup_client()
166 SAFE_SENDTO(1, cfd, packet, pkt_len, 0, (struct sockaddr *)&rmt, in run()
/external/llvm/include/llvm/Target/
DTargetItinerary.td149 class ComboFuncUnits<list<ComboFuncData> cfd> {
150 list<ComboFuncData> CFD = cfd;
/external/llvm-project/llvm/include/llvm/Target/
DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Target/
DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/external/iproute2/lib/
Dbpf.c1211 int ret, cfd, ofd, ffd; in bpf_obj_hash() local
1218 cfd = socket(AF_ALG, SOCK_SEQPACKET, 0); in bpf_obj_hash()
1219 if (cfd < 0) { in bpf_obj_hash()
1222 return cfd; in bpf_obj_hash()
1225 ret = bind(cfd, (struct sockaddr *)&alg, sizeof(alg)); in bpf_obj_hash()
1231 ofd = accept(cfd, NULL, 0); in bpf_obj_hash()
1275 close(cfd); in bpf_obj_hash()
/external/kmod/libkmod/
Dlibkmod-module.c1811 int dfd, cfd; in kmod_module_get_size() local
1826 cfd = openat(dfd, "coresize", O_RDONLY|O_CLOEXEC); in kmod_module_get_size()
1827 if (cfd >= 0) { in kmod_module_get_size()
1828 if (read_str_long(cfd, &size, 10) < 0) in kmod_module_get_size()
1830 close(cfd); in kmod_module_get_size()
/external/llvm-project/llvm/docs/Proposals/
DTestSuite.rst134 * cfd
/external/elfutils/tests/
Dtestfile44.expect.bz21testfile44.o: elf32-elf_i386 2 3Disassembly of section .text: 4 5 0 ...
/external/google-breakpad/src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/
Dnull_read_av.sym1176 4cfd f 311 23

12