Lines Matching defs:len
38 int security_get_boolean_names(char ***names, int *len)
45 if (!len || names == NULL) {
55 *len = scandir(path, &namelist, &filename_select, alphasort);
56 if (*len <= 0) {
61 n = (char **)malloc(sizeof(char *) * *len);
67 for (i = 0; i < *len; i++) {
77 for (i = 0; i < *len; i++) {
150 size_t len;
161 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
162 fname = malloc(sizeof(char) * len);
166 ret = snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, name);
167 if (ret < 0 || (size_t)ret >= len)
179 len = strlen(alt_name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
180 ptr = realloc(fname, len);
185 ret = snprintf(fname, len, "%s%s%s", selinux_mnt, SELINUX_BOOL_DIR, alt_name);
186 if (ret < 0 || (size_t)ret >= len)
200 int fd, len;
218 len = read(fd, *buf, STRBUF_SIZE);
222 if (len != STRBUF_SIZE)
383 int *len __attribute__((unused)))