Searched defs:val (Results 1 - 9 of 9) sorted by relevance
/lxc/src/lxc/ |
H A D | af_unix.c | 143 int *val; local 152 val = (int *)(CMSG_DATA(cmsg)); 153 *val = sendfd; 171 int ret, *val; local 198 val = (int *) CMSG_DATA(cmsg); 199 *recvfd = *val;
|
H A D | arguments.c | 50 if (!isascii(opt->val)) 54 a_shortopts[i++] = opt->val; 109 if (isprint(opt->val)) 110 fprintf(stderr, "-%c|", opt->val); 256 long val; local 260 val = strtol(str, &endptr, 10); 271 return (int)val;
|
H A D | criu.c | 337 char *fmt, *key, *val, *mntdata; local 353 val = mntent.mnt_dir; 357 val = mntent.mnt_fsname; 360 ret = snprintf(arg, sizeof(arg), fmt, key, val);
|
H A D | network.c | 987 unsigned val; local 993 val = 0; 996 val = c - '0'; 998 val = c - 'a' + 10; 1000 val = c - 'A' + 10; 1004 val <<= 4; 1007 val |= c - '0'; 1009 val |= c - 'a' + 10; 1011 val |= c - 'A' + 10; 1013 val >> [all...] |
H A D | utils.c | 223 extern int get_u16(unsigned short *val, const char *arg, int base) argument 236 *val = res;
|
H A D | conf.c | 3436 * *val. 3440 unsigned long *val) 3451 *val = map->hostid; 3614 unsigned long val; local 3617 if (!get_mapped_rootid(conf, ID_TYPE_UID, &val)) { 3621 rootuid = (uid_t) val; 3622 if (!get_mapped_rootid(conf, ID_TYPE_GID, &val)) { 3626 rootgid = (gid_t) val; 3439 get_mapped_rootid(struct lxc_conf *conf, enum idtype idtype, unsigned long *val) argument
|
/lxc/src/lxc/tools/ |
H A D | lxc_info.c | 115 static void size_humanize(unsigned long long val, char *buf, size_t bufsz) argument 117 if (val > 1 << 30) { 119 (int)(val >> 30), 120 (int)(val & ((1 << 30) - 1)) / 10737419); 121 } else if (val > 1 << 20) { 122 int x = val + 5243; /* for rounding */ 125 } else if (val > 1 << 10) { 126 int x = val + 5; /* for rounding */ 130 snprintf(buf, bufsz, "%u bytes", (int)val); 136 unsigned long long val; local 368 char *val = (char*) malloc(sizeof(char)*len + 1); local [all...] |
H A D | lxc_top.c | 189 static void size_humanize(unsigned long long val, char *buf, size_t bufsz) argument 191 if (val > 1 << 30) { 193 (int)(val >> 30), 194 (int)(val & ((1 << 30) - 1)) / 10737419); 195 } else if (val > 1 << 20) { 196 int x = val + 5243; /* for rounding */ 199 } else if (val > 1 << 10) { 200 int x = val + 5; /* for rounding */ 204 snprintf(buf, bufsz, "%3u.00 ", (int)val); 212 uint64_t val; local 229 uint64_t val = 0; local [all...] |
H A D | lxc_ls.c | 305 char *val = malloc((len + 1) * sizeof(*val)); local 306 if (!val) 309 if ((size_t)c->get_config_item(c, item, val, len + 1) != len) { 310 free(val); 311 val = NULL; 314 return val; 587 char *val = malloc((len + 1) * sizeof(*val)); local 588 if (!val) 602 char *val = NULL; local [all...] |
Completed in 47 milliseconds