Lines Matching refs:len
79 size_t len;
87 len = max_len;
88 if (sysctlbyname(&path[1], str, &len, NULL, 0) == -1)
91 str[(len < max_len) ? len : max_len - 1] = 0;
188 size_t len, oidlen, namlen;
202 len = sizeof(oid) / sizeof(int);
204 if (sysctlnametomib(name, oid, &len) != 0)
208 memcpy(lsname+2, oid, len * sizeof(int));
209 n1 = 2 + len;
210 oidlen = len;
249 len = sizeof(name);
250 if (sysctl(chname, n2 + 2, name, &len, 0, 0) < 0)
252 if (len <= 0 || len < namlen)
258 len = strlen(s) + 1;
259 dp = malloc(DIRECTSIZ(len));
260 dp->d_reclen = DIRECTSIZ(len);
261 dp->d_namlen = len;
262 memcpy(&dp->d_name, s, len);