Lines Matching defs:len
36 int security_get_boolean_names(char ***names, int *len)
43 assert(len);
50 *len = scandir(path, &namelist, &filename_select, alphasort);
51 if (*len <= 0) {
55 n = (char **)malloc(sizeof(char *) * *len);
61 for (i = 0; i < *len; i++) {
71 for (i = 0; i < *len; i++) {
88 int fd, len;
101 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
102 fname = (char *)malloc(sizeof(char) * len);
105 snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name);
111 len = read(fd, *buf, STRBUF_SIZE);
113 if (len != STRBUF_SIZE)
163 int fd, ret, len;
175 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
176 fname = (char *)malloc(sizeof(char) * len);
179 snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name);