strcmd
strcmd_t strcmd;
strcmd.sc_cmd = TI_GETMYNAME;
strcmd.sc_timeout = 1;
strcmd.sc_len = STRCMDBUFSIZE;
if (VOP_IOCTL(vp, _I_CMD, (intptr_t)&strcmd, FKIOCTL, cred,
&rval, NULL) == 0 && strcmd.sc_len > 0) {
sz += prfdinfomisc(data, PR_SOCKETNAME, strcmd.sc_buf,
strcmd.sc_len);
strcmd.sc_cmd = TI_GETPEERNAME;
strcmd.sc_timeout = 1;
strcmd.sc_len = STRCMDBUFSIZE;
if (VOP_IOCTL(vp, _I_CMD, (intptr_t)&strcmd, FKIOCTL, cred,
&rval, NULL) == 0 && strcmd.sc_len > 0) {
sz += prfdinfomisc(data, PR_PEERSOCKNAME, strcmd.sc_buf,
strcmd.sc_len);
static int strdocmd(struct stdata *, struct strcmd *, cred_t *);
struct strcmd *scp;
strdocmd(struct stdata *stp, struct strcmd *scp, cred_t *crp)