8 char *kvatoname(func, iocfunc)
12 static char funcname[40];
17 res.ipfu_name[0] = '\0';
20 if ((opts & OPT_DONOTHING) == 0) {
21 fd = open(IPL_NAME, O_RDONLY);
25 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
28 strncpy(funcname, res.ipfu_name, sizeof(funcname));
29 funcname[sizeof(funcname) - 1] = '\0';