/lxc/src/tests/ |
H A D | lxcpath.c | 39 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 D | initutils.c | 143 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 D | lxc_user_nic.c | 350 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 D | confile.c | 2914 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 D | utils.c | 1107 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 D | conf.c | 1228 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 D | lxccontainer.c | 4345 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 D | lxc_autostart.c | 126 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 D | lxc_usernsexec.c | 208 char *p1, *p2; local 221 p2 = strchr(p1+1, ':'); 222 if (!p2) 231 newmap->range = atol(p2+1);
|
/lxc/src/lxc/bdev/ |
H A D | bdev.c | 217 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 D | cgfsng.c | 773 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...] |