Lines Matching refs:len
198 size_t len = sizeof (priv_set_t) + sizeof (klpd_head_t);
208 khp = kmem_zalloc(len, KM_SLEEP);
212 len += offsetof(klpd_arg_t, kla_str);
224 len += ROUNDUP(MAXPATHLEN, sizeof (uint_t));
225 khp = kmem_zalloc(len, KM_SLEEP);
232 kmem_free(khp, len);
238 kmem_free(khp, len);
266 len += sizeof (*kap);
267 khp = kmem_zalloc(len, KM_SLEEP);
276 khp->klh_len = len;
281 kap->kla_dlen = len - khp->klh_argoff;
791 get_path(char *buf, const char *path, int len)
796 if (len < 0)
797 len = strlen(path);
799 if (*path == '/' && len < MAXPATHLEN) {
816 while (len > 3 && strncmp("../", path, 3) == 0) {
817 len -= 3;
828 if (lc < 2 || lc + len + 2 >= MAXPATHLEN)