/lxc/src/include/ |
H A D | getsubopt.c | 30 char *result; local 32 result = strchr( s, c ); 34 if( !result ) 36 result = (char *)s + strlen( s ); 39 return( result );
|
H A D | lxcmntent.c | 159 FILE *result = fopen (file, newmode); local 161 return result;
|
/lxc/src/lxc/ |
H A D | caps.c | 172 int result = -1; local 185 result = strtol(buf, &ptr, 10); 187 result = -1; 195 if (result < 0) { 198 result = cap - 1; 201 return result;
|
H A D | lxcutmp.c | 102 int result; local 103 result = utmpname(file); 107 result = result - 1; 110 return result; 433 int fd, result; local 452 result = timerfd_settime(fd, 0, &timeout, NULL); 454 if (result < 0) { 473 int result; local 477 result [all...] |
H A D | attach.c | 468 char *result = NULL; local 536 free(result); 537 result = strdup(token); 557 * we can't be sure we have a valid result, so we assume we 570 return result; 1312 * the result.
|
H A D | utils.c | 428 char **result; local 442 result = calloc(count, sizeof(char*)); 443 if (!result) 453 result[count++] = arg; 457 return result; 460 free(result); 604 char *result = NULL; local 609 while (len == -1 || result == NULL) { 615 result = calloc(1, len + 1); 616 if (!result) 666 char *result; local 772 char *result = NULL; local 809 char **tmp = NULL, **result = NULL; local 849 char **result = NULL; local 926 size_t result = 0; local [all...] |
H A D | conf.c | 4625 struct passwd *result; local 4627 result = getpwuid(geteuid()); 4628 if (!result) 4631 return strdup(result->pw_name); 4637 struct group *result; local 4639 result = getgrgid(getegid()); 4640 if (!result) 4643 return strdup(result->gr_name); 4752 static void free_cgroup_settings(struct lxc_list *result) argument 4756 lxc_list_for_each_safe(iterator, result, nex 4769 struct lxc_list *result; local [all...] |
H A D | lxccontainer.c | 1770 char **result = get_from_array(names, cname, size); local 1771 if (result != NULL) { 1772 free(result); 2022 * This is an intelligent result to show which keys are valid given
|
/lxc/src/tests/ |
H A D | aa.c | 69 char result[1024]; local 86 ret = read(pipefd[0], result, sizeof(result)-1); 93 if (strncmp(result, "no", 2) == 0)
|
H A D | attach.c | 90 char result[1024]; local 109 ret = read(pipefd[0], result, sizeof(result)-1); 115 result[ret] = '\0'; 116 if (strcmp(lsm_label, result)) { 117 TSTERR("LSM label mismatch expected:%s got:%s", lsm_label, result); 136 char result[1024]; local 157 ret = read(pipefd[0], result, sizeof(result)-1); 162 result[re 201 char result[1024]; local [all...] |
/lxc/src/lxc/cgroups/ |
H A D | cgfs.c | 718 char *result; local 733 result = cgroup_to_absolute_path(mp, group, suffix); 734 if (!result) 738 return result; 877 /* we will modify the result of this operation directly, 1103 * to store them in our result... 1158 struct cgroup_process_info *result = NULL; local 1161 struct cgroup_process_info **cptr = &result; 1195 return result; 1199 lxc_cgroup_process_info_free(result); 1326 char *result = NULL; local 1679 struct cgroup_process_info *result = NULL; local 1785 char **result = NULL; local [all...] |
H A D | cgmanager.c | 618 char result[MAXPATHLEN], *tmp, *cgroup_path; local 626 memset(result, 0, MAXPATHLEN); 634 strcpy(result, tmp); 635 baselen = strlen(result); 637 tmp = result; 646 ret = snprintf(result+baselen, MAXPATHLEN-baselen, "-%d", index); 657 ERROR("Error creating cgroup %s:%s", slist[i], result); 861 nih_local char *result = NULL; local 908 if (cgmanager_get_value_sync(NULL, cgroup_manager, controller, cglast+1, filename, &result) != 0) { 921 len = strlen(result); [all...] |
/lxc/src/python-lxc/ |
H A D | lxc.c | 40 char **result; local 50 result = (char**) calloc(argc + 1, sizeof(char*)); 52 if (result == NULL) { 87 result[i] = strdup(str); 93 if (result[i] == NULL) { 99 result[argc] = NULL; 100 return result; 105 * after the last strdup'd entry in result. 108 free(result[j]); 109 free(result); 128 PyObject *result = PyObject_CallFunctionObjArgs(payload->fn, local [all...] |