/freebsd-current/contrib/netbsd-tests/dev/cgd/ |
H A D | t_cgd.sh | 46 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock 48 export RUMP_SERVER=unix://csock 61 env RUMP_SERVER=unix://csock rump.halt || true 78 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock 80 export RUMP_SERVER=unix://csock 99 env RUMP_SERVER=unix://csock rump.halt || true 115 ${cgdserver} -d key=/dev/dk,hostpath=dk.img,size=1m unix://csock 117 export RUMP_SERVER=unix://csock 150 env RUMP_SERVER=unix://csock rump.halt || true
|
/freebsd-current/usr.sbin/ngctl/ |
H A D | shutdown.c | 69 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | msg.c | 90 if (NgSendAsciiMsg(csock, path, "%s%s", cmdstr, buf) < 0) { 103 FD_SET(csock, &rfds); 105 switch (select(csock + 1, &rfds, NULL, NULL, &tv)) { 131 if (NgAllocRecvMsg(csock, &m, path) < 0) { 137 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 139 || NgAllocRecvMsg(csock, &m2, NULL) < 0) {
|
H A D | types.c | 73 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, 78 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | status.c | 76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 87 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
|
H A D | rmhook.c | 77 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | config.c | 82 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 85 i = NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 97 if (NgRecvMsg(csock, resp, sizeof(sbuf), NULL) < 0
|
H A D | connect.c | 81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | ngctl.h | 75 extern int csock, dsock;
|
H A D | mkpeer.c | 81 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | name.c | 72 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
|
H A D | list.c | 100 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, 105 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | dot.c | 106 if (NgSendMsg(csock, ".", NGM_GENERIC_COOKIE, NGM_LISTNODES, NULL, 111 if (NgAllocRecvMsg(csock, &nlresp, NULL) < 0) { 153 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS, 159 if (NgAllocRecvMsg(csock, &hlresp, NULL) < 0) {
|
H A D | show.c | 95 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 100 if (NgAllocRecvMsg(csock, &resp, NULL) < 0) {
|
H A D | main.c | 132 int csock, dsock; variable 173 if (NgMkSockNode(name, &csock, &dsock) < 0) 234 * Thread that monitors csock and dsock while main thread 241 const int maxfd = MAX(csock, dsock) + 1; 254 FD_SET(csock, &rfds); 347 const int maxfd = MAX(csock, dsock) + 1; 356 FD_SET(csock, &rfds); 366 FD_SET(csock, &rfds); 401 if (FD_ISSET(csock, rfds))
|
/freebsd-current/tests/sys/netinet/ |
H A D | tcp_md5_getsockopt.c | 55 int csock, ssock, opt; local 92 if ((csock = socket(pf, SOCK_STREAM, 0)) == -1) 95 if (connect(csock, (struct sockaddr *)s, len) == -1) 98 if (getsockopt(csock, IPPROTO_TCP, TCP_MD5SIG, &opt, &len) == -1) 101 close(csock);
|
H A D | tcp_connect_port_test.c | 168 int asock, csock, error, i, lsock; local 206 csock = socket(domain, SOCK_STREAM, 0); 207 ATF_REQUIRE_MSG(csock >= 0, 211 error = connect(csock, &su_srvr.saddr, su_srvr.saddr.sa_len); 216 error = setsockopt(csock, SOL_SOCKET, SO_LINGER, &lopt, 224 error = getsockname(csock, &su_clnt.saddr, &salen); 259 error = close(csock);
|
H A D | ip6_v4mapped_test.c | 222 int csock, error, i, lsock, off = 0; local 270 csock = socket(PF_INET6, SOCK_STREAM, 0); 271 ATF_REQUIRE_MSG(csock >= 0, 274 error = setsockopt(csock, IPPROTO_IPV6, IPV6_V6ONLY, &off, 283 error = bind(csock, &su_clnt.saddr, sizeof(su_clnt.saddr6)); 293 error = connect(csock, &su_mapped.saddr, su_mapped.saddr.sa_len);
|
/freebsd-current/usr.bin/netstat/ |
H A D | netgraph.c | 61 static int csock = -1; variable 83 if (csock == -1) 84 NgMkSockNode(NULL, &csock, NULL); 125 if (ngpcb.node_id == 0 || csock == -1) 128 if (NgSendMsg(csock, path, 131 if (NgRecvMsg(csock, resp, sizeof(rbuf), NULL) < 0)
|
/freebsd-current/contrib/netbsd-tests/lib/librumphijack/ |
H A D | t_config.sh | 29 export RUMP_SERVER=unix://csock
|
H A D | t_cwd.sh | 29 export RUMP_SERVER=unix://csock
|
H A D | t_asyncio.sh | 29 export RUMP_SERVER=unix://csock
|
H A D | t_sh.sh | 36 export RUMP_SERVER=unix://csock
|
/freebsd-current/usr.sbin/nghook/ |
H A D | main.c | 79 int csock, dsock; local 151 if (NgMkSockNode(NULL, &csock, &dsock) < 0) 159 if (NgSendMsg(csock, ".", 171 send_msgs(csock, path); 178 send_msgs(csock, path);
|
/freebsd-current/lib/libnetgraph/ |
H A D | debug.c | 231 int arglen, csock = -1; local 252 if (NgMkSockNode(NULL, &csock, NULL) < 0) 266 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 271 if (NgRecvMsg(csock, req, sizeof(buf), NULL) < 0) { 293 if (csock != -1) 294 (void)close(csock);
|