Searched refs:line (Results 1 - 25 of 29) sorted by relevance

12

/lxc/src/lxc/
H A Dparse.c42 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 Dseccomp.c40 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 Dparse.h38 extern int lxc_is_line_empty(const char *line);
H A Dattach.c185 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 Dconfile.h44 extern int append_unexp_config_line(const char *line, struct lxc_conf *conf);
H A Dutils.c1036 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 Dconfile.c1204 /* 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 Dlog.h75 int line; member in struct:lxc_log_locinfo
79 { .file = __FILE__, .func = __func__, .line = __LINE__ }
H A Dlog.c69 fprintf(stderr, "%s: %s: %d ", event->locinfo->file, event->locinfo->func, event->locinfo->line);
223 event->locinfo->line);
516 * happens after processing command line arguments, which override the .conf
544 * happens after processing command line arguments, which override the .conf
H A Dlxc_user_nic.c278 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);
/lxc/src/lxc/tools/
H A Dlxc_usernsexec.c204 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);
H A Dlxc-start-ephemeral.in74 # Begin parsing the command line
185 for line in orig_fd.read().split("\n"):
187 line.replace(orig.get_config_item("lxc.rootfs"),
190 fields = line.split()
198 dest_fd.write("%s\n" % line)
204 dest_fd.write("%s\n" % line)
213 "of the container rootfs.") % line)
231 for line in fd:
232 if line == "nodev\toverlay\n":
345 You can enter it from the command line wit
[all...]
H A Dlxc_snapshot.c260 * 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 Dlxc-top.lua101 for line in f:lines() do
103 _,_,stty_rows = string.find(line, "rows (%d+)")
/lxc/src/tests/
H A Dlxc-test-cloneconfig56 grep ^lxc.network.hwaddr $CONTAINER_PATH/config | while read line; do
57 addr=`echo $line | awk -F= { print $2 }`
69 grep ^lxc.hook $CONTAINER_PATH/config | while read line; do
70 nline=${line/$CONTAINER_PATH/$CONTAINER2_PATH}
/lxc/templates/
H A Dlxc-download.in167 while read line; do
168 fields=$(echo $line | awk '{ print $1 " " $2 " " $3 }')
342 while read line; do
346 set -- $line
435 while read line; do
439 set -- $line
510 while read line; do
511 EXCLUDES="$EXCLUDES --exclude=$line"
570 while read line; do
571 fullpath=${LXC_ROOTFS}/$line
[all...]
H A Dlxc-cirros.in53 line=$(awk '{ print $1 " " $2 " " $3 }' /proc/self/uid_map)
54 [ "$line" = "0 0 4294967295" ] && { echo no; return; }
131 # When using LXC with apparmor, uncomment the next line to run unconfined:
H A Dlxc-alpine.in177 local line keyname
182 echo "$APK_KEYS_SHA256" | while read -r line; do
183 keyname="${line##* }"
187 echo "$line" | sha256sum -c -
327 # read and discard next line and repeat until $end_tag or EOF
H A Dlxc-gentoo.in213 # finally we add a pf line to enable clean shutdown on SIGPWR (issue 60)
515 for line in $( sed -r "s/[ ]*=[ ]*/_real_ugly_sep_42_/" "${file}" ); do
516 key=$(echo "${line}" | sed 's/_real_ugly_sep_42_.*$//')
517 value=$(echo "${line}" | sed 's/^.*_real_ugly_sep_42_//')
/lxc/src/lxc/cgroups/
H A Dcgfsng.c288 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 Dcgfs.c270 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 Dcgmanager.c201 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...]
/lxc/src/lua-lxc/
H A Dlxc.lua267 for line in flines:gmatch("[^\r\n]+") do
268 table.insert(lines, line)
283 local line = self:get_cgroup_item(item)
284 -- if line is nil (on an error like Operation not supported because
286 return tonumber(line) or 0
297 for line in lines:gmatch("[^\r\n]+") do
298 if (string.find(line, match)) then
301 col = line:split(" ", 80)
/lxc/src/lxc/bdev/
H A Dlxcoverlay.c727 char *line = NULL; local
733 while (getline(&line, &len, f) != -1) {
734 if (strcmp(line, "nodev\toverlayfs\n") == 0) {
741 free(line);
H A Dbdev.c627 char *sp1, *sp2, *sp3, *line = NULL; local
686 while (getline(&line, &linelen, f) != -1) {
687 sp1 = strchr(line, ' ');
691 if (strcmp(line, l))

Completed in 612 milliseconds

12