Home | History | Annotate | Download | only in src

Lines Matching defs:cs

99   int cs;			/* A netgraph control socket (maybe) */
243 if (NgSendMsg(dev->cs, asyncpath, NGM_ASYNC_COOKIE,
262 int ldisc, cs, ds, hot;
303 if (ID0NgMkSockNode(NULL, &cs, &ds) == -1) {
313 if (NgSendMsg(cs, ttypath, NGM_TTY_COOKIE,
325 if (NgSendMsg(cs, ttypath, NGM_GENERIC_COOKIE,
338 if (NgSendMsg(cs, ".:", NGM_GENERIC_COOKIE, NGM_CONNECT,
347 if (NgSendMsg(cs, ngc.path, NGM_GENERIC_COOKIE, NGM_NODEINFO, NULL, 0) < 0) {
352 if (NgRecvMsg(cs, reply, sizeof rbuf, NULL) < 0) {
360 dev->cs = cs;
376 close(cs);
393 close(dev->cs);
394 dev->cs = -1;
598 if (dev->cs >= 0) {
599 *auxfd = dev->cs;
653 dev->cs = *auxfd;
656 dev->cs = -1;