/lxc/src/lxc/ |
H A D | parse.c | 42 char *line = NULL; local 51 while (getline(&line, &len, f) != -1) { 52 err = callback(line, data); 57 ERROR("Failed to parse config: %s", line); 62 free(line); 93 int lxc_is_line_empty(const char *line) argument 96 size_t len = strlen(line); 99 if (line[i] != ' ' && line[i] != '\t' && 100 line[ [all...] |
H A D | log.h | 75 int line; member in struct:lxc_log_locinfo 79 { .file = __FILE__, .func = __func__, .line = __LINE__ }
|
H A D | seccomp.c | 40 char line[1024]; local 43 while (fgets(line, 1024, f)) { 45 ret = sscanf(line, "%d", &nr); 72 static uint32_t get_v2_default_action(char *line) argument 76 while (*line == ' ') 77 line++; 79 if (strncmp(line, "kill", 4) == 0) 81 else if (strncmp(line, "errno", 5) == 0) { 83 if (sscanf(line + 5, "%d", &e) != 1) { 84 ERROR("Bad errno value in %s.", line); 95 get_and_clear_v2_action(char *line, uint32_t def_action) argument 245 do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx, uint32_t action) argument 305 parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) argument 624 parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) argument 640 char line[1024]; local 677 char line[1024]; local [all...] |
H A D | attach.c | 185 char *line = NULL; local 207 while (getline(&line, &line_bufsz, proc_file) != -1) { 208 ret = sscanf(line, "CapBnd: %llx", &info->capability_mask); 215 free(line); 486 char *line = NULL; local 494 while (getline(&line, &line_bufsz, pipe_f) != -1) { 508 /* Trim line on the right hand side. */ 509 for (i = strlen(line); i > 0 && (line[i - 1] == '\n' || line[ 615 char *line = NULL; local [all...] |
H A D | lxc_user_nic.c | 278 char *line = NULL; local 287 while ((getline(&line, &len, fin)) != -1) { 288 ret = sscanf(line, "%99[^ \t] %99[^ \t] %99[^ \t] %d", name, type, br, &n); 313 * line until exiting func. 328 free(line);
|
H A D | confile.c | 1204 /* in case several groups are specified in a single line 1679 /* in case several capability keep is specified in a single line 1728 /* in case several capability drop is specified in a single line 1778 static void update_hwaddr(const char *line) argument 1782 line += lxc_char_left_gc(line, strlen(line)); 1783 if (line[0] == '#') 1785 if (strncmp(line, "lxc.network.hwaddr", 18) != 0) 1787 p = strchr(line, ' 1799 append_unexp_config_line(const char *line, struct lxc_conf *conf) argument 1953 char *line, *linep; local [all...] |
H A D | utils.c | 1036 char *line = NULL; local 1043 while (getline(&line, &sz, f) != -1) { 1044 if (sscanf(line, "%u %u %u", &nsid, &hostid, &range) != 3) 1055 free(line); 1170 char *line = NULL; local 1178 while (getline(&line, &len, f) != -1) { 1179 for (p = line, i = 0; p && i < 4; i++) 1191 free(line); 1197 free(line); 1858 char *line local 1907 char *line = NULL; local [all...] |
H A D | conf.c | 3790 char *line = NULL; local 3799 while (getline(&line, &len, f) != -1) { 3801 target = get_field(line, 4); 3817 free(line); 4651 char *line = NULL; local 4670 while (getline(&line, &len, f) != -1) { 4672 char *p = strchr(line, ':'), *p2; 4673 if (*line == '#') 4679 if (strcmp(line, uname)) 4705 while (getline(&line, [all...] |
H A D | lxccontainer.c | 1373 fprintf(f, "\n# Uncomment the following line to support nesting containers:\n"); 4324 char *line = NULL; local 4343 while (getline(&line, &len, f) != -1) { 4345 char *p = strrchr(line, ' '), *p2; 4441 free(line);
|
/lxc/src/lxc/tools/ |
H A D | lxc_snapshot.c | 260 * explicitly via the corresponding command line option is the name to 287 char *line = NULL; local 293 while (getline(&line, &sz, f) != -1) { 294 printf("%s", line); 297 free(line);
|
H A D | lxc_usernsexec.c | 204 char *line = NULL; local 213 while (getline(&line, &sz, fin) != -1) { 215 strncmp(line, username, strlen(username)) != 0 || 216 line[strlen(username)] != ':') 218 p1 = strchr(line, ':'); 227 free(line); 238 free(line); 248 free(line);
|
/lxc/src/lxc/bdev/ |
H A D | bdev.c | 627 char *sp1, *sp2, *sp3, *line = NULL; local 686 while (getline(&line, &linelen, f) != -1) { 687 sp1 = strchr(line, ' '); 691 if (strcmp(line, l))
|
H A D | lxcoverlay.c | 727 char *line = NULL; local 733 while (getline(&line, &len, f) != -1) { 734 if (strcmp(line, "nodev\toverlayfs\n") == 0) { 741 free(line);
|
/lxc/src/lxc/cgroups/ |
H A D | cgfs.c | 270 char *line = NULL; local 280 while (getline(&line, &sz, proc_cgroups) != -1) { 285 if (line[0] == '#') 287 if (!line[0]) 290 tab1 = strchr(line, '\t'); 308 (*kernel_subsystems)[kernel_subsystems_count] = strdup(line); 317 free(line); 330 char *line = NULL; local 344 while (getline(&line, &sz, proc_self_cgroup) != -1) { 354 if (!line[ 437 char *line = NULL; local 1681 char *line = NULL; local 2061 char *line = NULL; local [all...] |
H A D | cgfsng.c | 288 char *line = NULL, *buf = NULL; local 295 while ((linelen = getline(&line, &len, f)) != -1) { 296 append_line(&buf, fulllen, line, linelen); 300 free(line); 754 static bool is_lxcfs(const char *line) argument 756 char *p = strstr(line, " - "); 763 * Get the controllers from a mountinfo line 769 static char **get_controllers(char **klist, char **nlist, char *line) argument 773 char *p = line, *p2, *tok, *saveptr = NULL; 804 static bool is_cgroupfs(char *line) argument 832 get_mountpoint(char *line) argument 952 char *line = NULL; local 1056 char * line = NULL, *basecginfo; local [all...] |
H A D | cgmanager.c | 201 char *line = NULL, *prevpath = NULL; local 217 while (getline(&line, &sz, f) != -1) { 220 if (!line[0]) 223 colon = strchr(line, ':'); 242 free(line); 1325 char *line = NULL; local 1359 while (getline(&line, &sz, f) != -1) { 1364 if (!line[0]) 1367 slist = strchr(line, ':'); 1394 free(line); [all...] |