6 char *kvatoname(func
, iocfunc
)
10 static char funcname
[40];
15 res
.ipfu_name
[0] = '\0';
18 if ((opts
& OPT_DONOTHING
) == 0) {
19 fd
= open(IPL_NAME
, O_RDONLY
);
23 (void) (*iocfunc
)(fd
, SIOCFUNCL
, &res
);
26 strncpy(funcname
, res
.ipfu_name
, sizeof(funcname
));
27 funcname
[sizeof(funcname
) - 1] = '\0';