/external/strace/tests/ |
recvfrom.c | 40 static int cfd; variable 45 if (send(cfd, "A", 1, 0) != 1) 52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); 54 if (cfd < 0 || lfd < 0) 63 if (bind(cfd, (const void *) &un, sizeof(un))) 76 if (connect(cfd, (const void *) &un, sizeof(un)))
|
getpeername.c | 37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 38 if (lfd < 0 || cfd < 0) 52 if (connect(cfd, (const void *) &un, sizeof(un))) 57 test_sockname_syscall(cfd);
|
accept.c | 67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 68 if (cfd < 0) 77 if (bind(cfd, (const void *) &un, sizeof(un))) 82 if (connect(cfd, (const void *) &un, sizeof(un)))
|
/external/strace/tests-m32/ |
recvfrom.c | 40 static int cfd; variable 45 if (send(cfd, "A", 1, 0) != 1) 52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); 54 if (cfd < 0 || lfd < 0) 63 if (bind(cfd, (const void *) &un, sizeof(un))) 76 if (connect(cfd, (const void *) &un, sizeof(un)))
|
getpeername.c | 37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 38 if (lfd < 0 || cfd < 0) 52 if (connect(cfd, (const void *) &un, sizeof(un))) 57 test_sockname_syscall(cfd);
|
accept.c | 67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 68 if (cfd < 0) 77 if (bind(cfd, (const void *) &un, sizeof(un))) 82 if (connect(cfd, (const void *) &un, sizeof(un)))
|
/external/strace/tests-mx32/ |
recvfrom.c | 40 static int cfd; variable 45 if (send(cfd, "A", 1, 0) != 1) 52 cfd = socket(AF_UNIX, SOCK_STREAM, 0); 54 if (cfd < 0 || lfd < 0) 63 if (bind(cfd, (const void *) &un, sizeof(un))) 76 if (connect(cfd, (const void *) &un, sizeof(un)))
|
getpeername.c | 37 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 38 if (lfd < 0 || cfd < 0) 52 if (connect(cfd, (const void *) &un, sizeof(un))) 57 test_sockname_syscall(cfd);
|
accept.c | 67 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 68 if (cfd < 0) 77 if (bind(cfd, (const void *) &un, sizeof(un))) 82 if (connect(cfd, (const void *) &un, sizeof(un)))
|
/external/ltp/testcases/network/netstress/ |
netstress.c | 249 int cfd = SAFE_SOCKET(family, sock_type, protocol); local 251 init_socket_opts(cfd); 255 SAFE_SENDTO(1, cfd, msg, size, MSG_FASTOPEN | MSG_NOSIGNAL, 259 SAFE_BIND(cfd, local_addrinfo->ai_addr, 262 SAFE_CONNECT(cfd, remote_addrinfo->ai_addr, 264 SAFE_SEND(1, cfd, msg, size, MSG_NOSIGNAL); 267 return cfd; 299 int cfd, i = 0, etime_cnt = 0; local 306 cfd = client_connect_send(client_msg, cln_len); 307 if (cfd == -1) 443 int cfd = client_connect_send(client_msg, msg_len); local [all...] |
/external/toybox/toys/posix/ |
cp.c | 128 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, local 149 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev 160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { 167 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) { 208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) 209 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW))) 217 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; 240 if (!symlinkat(s, cfd, catch)) { 255 !symlinkat(toybuf, cfd, catch)) 256 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev) [all...] |
/external/toybox/toys/other/ |
losetup.c | 61 int i, cfd = open("/dev/loop-control", O_RDWR); local 67 if (cfd != -1) { 68 if (0 <= (i = ioctl(cfd, 0x4C82))) { // LOOP_CTL_GET_FREE 73 close(cfd);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/ |
TftpServer.inf | 19 FILE_GUID = 94621F9E-B5CA-4cfd-82BE-0C542EB0D9BE
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
ioctl02.c | 376 int cfd; local 378 cfd = open(childtty, O_RDWR, 0777); 379 if (cfd < 0) { 388 if (ioctl(cfd, TCFLSH, 2) < 0) { 398 return cfd;
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
getdelays.c | 279 int cfd = 0; local 394 cfd = open(containerpath, O_RDONLY); 395 if (cfd < 0) { 401 CGROUPSTATS_CMD_ATTR_FD, &cfd, sizeof(__u32)); 534 if (cfd) 535 close(cfd);
|
/external/curl/lib/vtls/ |
gskit.c | 530 int cfd; /* Client socket. */ local 557 cfd = socket(AF_INET, SOCK_STREAM, 0); 558 if(cfd < 0) { 564 curlx_nonblock(cfd, TRUE); 565 if(connect(cfd, (struct sockaddr *) &addr1, sizeof addr1) < 0 && 568 close(cfd); 574 if(getsockname(cfd, (struct sockaddr *) &addr2, &len) < 0) { 576 close(cfd); 587 close(cfd); 602 curlx_nonblock(cfd, FALSE) [all...] |
/external/kmod/libkmod/ |
libkmod-module.c | 1800 int dfd, cfd; local [all...] |
/external/iproute2/lib/ |
bpf.c | 1211 int ret, cfd, ofd, ffd; local 1218 cfd = socket(AF_ALG, SOCK_SEQPACKET, 0); 1219 if (cfd < 0) { 1222 return cfd; 1225 ret = bind(cfd, (struct sockaddr *)&alg, sizeof(alg)); 1231 ofd = accept(cfd, NULL, 0); 1275 close(cfd); [all...] |
/frameworks/native/cmds/dumpstate/ |
utils.cpp | 971 int cfd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC)); local 972 len = read(cfd, data, sizeof(data) - 1); 973 close(cfd); [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-linux.c | 7110 struct vki_consolefontdesc *cfd = (struct vki_consolefontdesc *)ARG3; local 7119 struct vki_consolefontdesc *cfd = (struct vki_consolefontdesc *)ARG3; local [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/tic54x/ |
all-opcodes.d | [all...] |