/external/strace/tests/ |
H A D | 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);
|
H A D | accept.c | 41 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 42 if (cfd < 0) 51 if (bind(cfd, (const void *) &un, sizeof(un))) 56 if (connect(cfd, (const void *) &un, sizeof(un)))
|
H A D | 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)))
|
/external/strace/tests-m32/ |
H A D | 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);
|
H A D | accept.c | 41 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 42 if (cfd < 0) 51 if (bind(cfd, (const void *) &un, sizeof(un))) 56 if (connect(cfd, (const void *) &un, sizeof(un)))
|
H A D | 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)))
|
/external/strace/tests-mx32/ |
H A D | 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);
|
H A D | accept.c | 41 int cfd = socket(AF_UNIX, SOCK_STREAM, 0); local 42 if (cfd < 0) 51 if (bind(cfd, (const void *) &un, sizeof(un))) 56 if (connect(cfd, (const void *) &un, sizeof(un)))
|
H A D | 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)))
|
/external/toybox/toys/other/ |
H A D | losetup.c | 71 int i, cfd = open("/dev/loop-control", O_RDWR); local 77 if (cfd != -1) { 78 if (0 <= (i = ioctl(cfd, 0x4C82))) // LOOP_CTL_GET_FREE 80 close(cfd);
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
H A D | ioctl02.c | 381 int cfd; local 383 cfd = open(childtty, O_RDWR, 0777); 384 if (cfd < 0) { 393 if (ioctl(cfd, TCFLSH, 2) < 0) { 403 return cfd;
|
/external/toybox/toys/posix/ |
H A D | 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, catc [all...] |
/external/ltp/testcases/kernel/controllers/cgroup/ |
H A D | 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/ |
H A D | gskit.c | 524 int cfd; /* Client socket. */ local 551 cfd = socket(AF_INET, SOCK_STREAM, 0); 552 if(cfd < 0) { 558 curlx_nonblock(cfd, TRUE); 559 if(connect(cfd, (struct sockaddr *) &addr1, sizeof addr1) < 0 && 562 close(cfd); 568 if(getsockname(cfd, (struct sockaddr *) &addr2, &len) < 0) { 570 close(cfd); 581 close(cfd); 596 curlx_nonblock(cfd, FALS [all...] |
/external/ltp/testcases/network/netstress/ |
H A D | netstress.c | 229 int cfd = SAFE_SOCKET(remote_addrinfo->ai_family, local 232 init_socket_opts(cfd); 236 SAFE_SENDTO(1, cfd, msg, size, MSG_FASTOPEN | MSG_NOSIGNAL, 240 SAFE_CONNECT(cfd, remote_addrinfo->ai_addr, 242 SAFE_SEND(1, cfd, msg, size, MSG_NOSIGNAL); 245 return cfd; 251 int cfd, i = 0; local 255 cfd = client_connect_send(client_msg, client_msg_size); 256 if (cfd == -1) { 261 if (client_recv(&cfd, bu 398 int cfd = client_connect_send(client_msg, client_msg_size); local 424 server_fn(void *cfd) argument [all...] |
/external/iproute2/tc/ |
H A D | tc_bpf.c | 797 int ret, cfd, ofd, ffd; local 804 cfd = socket(AF_ALG, SOCK_SEQPACKET, 0); 805 if (cfd < 0) { 808 return cfd; 811 ret = bind(cfd, (struct sockaddr *)&alg, sizeof(alg)); 817 ofd = accept(cfd, NULL, 0); 861 close(cfd);
|
/external/kmod/libkmod/ |
H A D | libkmod-module.c | 1800 int dfd, cfd; local 1815 cfd = openat(dfd, "coresize", O_RDONLY|O_CLOEXEC); 1816 if (cfd >= 0) { 1817 if (read_str_long(cfd, &size, 10) < 0) 1819 close(cfd);
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-linux.c | 7110 struct vki_consolefontdesc *cfd = (struct vki_consolefontdesc *)ARG3; local 7111 PRE_MEM_WRITE( "ioctl(GIO_FONTX).chardata", (Addr)cfd->chardata, 7112 32 * cfd->charcount ); 7119 struct vki_consolefontdesc *cfd = (struct vki_consolefontdesc *)ARG3; local 7120 PRE_MEM_READ( "ioctl(PIO_FONTX).chardata", (Addr)cfd->chardata, 7121 32 * cfd->charcount );
|