Searched defs:rundir (Results 1 - 4 of 4) sorted by relevance

/lxc/src/lxc/
H A Dmonitor.c59 char *rundir; local
61 rundir = get_rundir();
62 if (!rundir)
66 ret = snprintf(fifo_path, fifo_path_sz, "%s/lxc/%s", rundir, lxcpath);
68 ERROR("rundir/lxcpath (%s/%s) too long for monitor fifo.", rundir, lxcpath);
69 free(rundir);
75 free(rundir);
79 ret = snprintf(fifo_path, fifo_path_sz, "%s/lxc/%s/monitor-fifo", rundir, lxcpath);
81 ERROR("rundir/lxcpat
[all...]
H A Dlxclock.c103 char *rundir; local
113 rundir = get_rundir();
114 if (!rundir)
116 len += strlen(rundir);
119 free(rundir);
123 ret = snprintf(dest, len, "%s/lxc/lock/%s", rundir, p);
126 free(rundir);
132 free(rundir);
136 ret = snprintf(dest, len, "%s/lxc/lock/%s/.%s", rundir, p, n);
137 free(rundir);
[all...]
H A Dutils.c266 char *rundir; local
270 rundir = strdup(RUNTIME_PATH);
271 return rundir;
274 rundir = getenv("XDG_RUNTIME_DIR");
275 if (rundir) {
276 rundir = strdup(rundir);
277 return rundir;
287 rundir = malloc(sizeof(char) * (17 + strlen(homedir)));
288 sprintf(rundir, "
[all...]
/lxc/src/lxc/tools/
H A Dlxc_ls.c1001 char *rundir; local
1008 rundir = get_rundir();
1009 if (!rundir)
1014 size_t newlen = strlen(path) + strlen(name) + strlen(rundir) + /* / + lxc + / + lock + / + / = */ 11 + 1;
1024 int check = snprintf(*lockpath, *len_lockpath, "%s/lxc/lock/%s/%s", rundir, path, name);
1032 free(rundir);

Completed in 16 milliseconds