Searched defs:p2 (Results 1 - 11 of 11) sorted by relevance

/lxc/src/tests/
H A Dlxcpath.c39 const char *p1, *p2; local
48 p2 = c->config_file_name(c);
49 if (!p1 || !p2 || strncmp(p1, p2, strlen(p1))) {
61 p2 = c->config_file_name(c);
62 if (strcmp(p1, CPATH) || strcmp(p2, FPATH)) {
75 p2 = c->config_file_name(c);
76 if (strcmp(p1, CPATH) || strcmp(p2, FPATH)) {
/lxc/src/lxc/
H A Dinitutils.c143 char buf[1024], *p, *p2; local
179 for (p2 = buf; p2 < p; p2++) {
180 if (*p2 != ' ' && *p2 != '\t')
183 if (p2 < p)
191 for (p2 += strlen(option_name); p2 < p; p2
[all...]
H A Dlxc_user_nic.c350 char *p1, *p2, *ret; local
360 p2 = get_eow(p, e);
361 if (!p2 || ((size_t)(p2 - p)) != strlen(u) || strncmp(p, u, strlen(u)))
364 p = p2 + 1;
368 p2 = get_eow(p, e);
369 if (!p2 || ((size_t)(p2 - p)) != strlen(t) || strncmp(p, t, strlen(t)))
372 p = p2 + 1;
376 p2
[all...]
H A Dconfile.c2914 char *lstart = conf->unexpanded_config, *lend, *p, *p2; local
2945 p2 = p;
2946 while (*p2 && !isblank(*p2) && *p2 != '\n')
2947 p2++;
2948 if (p2-p != 17) {
H A Dutils.c1107 char *p2; local
1117 p2 = strchr(p + 1, ' ');
1118 if (!p2)
1120 *p2 = '\0';
1123 p = strchr(p2 + 1, ' ');
1169 char *p, *p2; local
1183 p2 = strchr(p + 1, ' ');
1184 if (!p2)
1186 *p2 = '\0';
1189 p = strchr(p2
[all...]
H A Dconf.c1228 char *p2; local
1274 p2 = strchr(p+1, ' ');
1275 if (!p2)
1278 *p2 = '\0';
1835 char *p, *p2; local
1844 p2 = strchr(p, ',');
1845 if (!p2) {
1850 memmove(p, p2+1, strlen(p2+1)+1);
4672 char *p = strchr(line, ':'), *p2; local
4707 char *p = strchr(line, ':'), *p2; local
[all...]
H A Dlxccontainer.c4345 char *p = strrchr(line, ' '), *p2; local
4367 p2 = strchr(p, '/');
4368 if (!p2 || strncmp(p2, "/command", 8) != 0)
4370 *p2 = '\0';
/lxc/src/lxc/tools/
H A Dlxc_autostart.c126 int lists_contain_common_entry(struct lxc_list *p1, struct lxc_list *p2) { argument
130 if (!p1 && !p2)
136 if (!p2)
140 lxc_list_for_each(it2, p2) {
319 static int cmporder(const void *p1, const void *p2) { argument
321 struct lxc_container *c2 = *(struct lxc_container **)p2;
H A Dlxc_usernsexec.c208 char *p1, *p2; local
221 p2 = strchr(p1+1, ':');
222 if (!p2)
231 newmap->range = atol(p2+1);
/lxc/src/lxc/bdev/
H A Dbdev.c217 char *ret, *p, *p2; local
245 while ((p2 = strstr(src, oldname)) != NULL) {
246 strncpy(p, src, p2 - src); // copy text up to oldname
247 p += p2 - src; // move target pointer (p)
249 src = p2 + l2; // move src to end of oldname
/lxc/src/lxc/cgroups/
H A Dcgfsng.c773 char *p = line, *p2, *tok, *saveptr = NULL; local
789 p2 = strchr(p, ' ');
790 if (!p2) {
794 *p2 = '\0';
858 char *p2 = strchr(p, '\n'), *sret; local
861 if (!p2)
864 len = p2 - p;
958 char *p, *p2, *tok, *saveptr = NULL; local
963 p2 = strchr(p, ':');
964 if (!p2)
[all...]

Completed in 1771 milliseconds