Searched refs:mode (Results 1 - 20 of 20) sorted by relevance

/lxc/src/include/
H A Dlxcmntent.h40 FILE *setmntent (const char *file, const char *mode);
H A Dlxcmntent.c151 FILE *setmntent (const char *file, const char *mode) argument
153 /* Extend the mode parameter with "c" to disable cancellation in the
155 size_t modelen = strlen (mode);
157 memcpy (newmode, mode, modelen);
/lxc/src/lxc/
H A Dinitutils.h52 FILE *fopen_cloexec(const char *path, const char *mode);
H A Dinitutils.c256 FILE *fopen_cloexec(const char *path, const char *mode) argument
264 if (!strncmp(mode, "r+", 2)) {
267 } else if (!strncmp(mode, "r", 1)) {
270 } else if (!strncmp(mode, "w+", 2)) {
273 } else if (!strncmp(mode, "w", 1)) {
276 } else if (!strncmp(mode, "a+", 2)) {
279 } else if (!strncmp(mode, "a", 1)) {
283 for (; mode[step]; step++)
284 if (mode[step] == 'x')
292 ret = fdopen(fd, mode);
[all...]
H A Dnetwork.h68 extern int lxc_macvlan_create(const char *master, const char *name, int mode);
H A Dconfile.c153 { "lxc.network.macvlan.mode", config_network_macvlan_mode },
443 macvlan_mode(&netdev->priv.macvlan_attr.mode, "private");
543 strprint(retv, inlen, "macvlan.mode\n");
604 int mode; member in struct:mc_mode
618 *valuep = m[i].mode;
720 ERROR("Invalid macvlan.mode for a non-macvlan netdev");
723 return macvlan_mode(&netdev->priv.macvlan_attr.mode, value);
2393 * macvlan.mode, veth.pair, vlan, ipv4, ipv6, script.up, hwaddr, mtu,
2441 } else if (strcmp(p1, "macvlan.mode") == 0) {
2443 const char *mode; local
[all...]
H A Dconf.h103 int mode; /* private, vepa, bridge, passthru */ member in struct:ifla_macvlan
H A Dutils.h51 extern int mkdir_p(const char *dir, mode_t mode);
H A Dnetwork.c834 int lxc_macvlan_create(const char *master, const char *name, int mode) argument
887 if (mode) {
892 if (nla_put_u32(nlmsg, IFLA_MACVLAN_MODE, mode))
H A Dcriu.c1061 static bool do_dump(struct lxc_container *c, char *mode, struct migrate_opts *opts) argument
1097 os.action = mode;
H A Dconf.c166 #define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask))
1070 ret = safe_mount("none", path, "tmpfs", 0, "size=500000,mode=755",
1101 mode_t mode; member in struct:lxc_devs
1141 ret = mknod(path, d->mode, makedev(d->maj, d->min));
1341 const char *devpts_mntopts = "newinstance,ptmxmode=0666,mode=0620,gid=5";
1484 SYSERROR("failed to set mode '0%o' to '%s'", S_IXUSR | S_IXGRP | S_IXOTH, console->name);
2800 netdev->priv.macvlan_attr.mode);
2820 DEBUG("instantiated macvlan '%s', index is '%d' and mode '%d'",
2821 peer, netdev->ifindex, netdev->priv.macvlan_attr.mode);
[all...]
H A Dutils.c241 extern int mkdir_p(const char *dir, mode_t mode) argument
252 if (mkdir(makeme, mode) && errno != EEXIST) {
/lxc/src/tests/
H A Dconcurrent.c57 " -m, --modes=<mode,mode,...> Modes to run (create, start, stop, destroy)\n"
69 const char *mode; member in struct:thread_args
92 if (strcmp(args->mode, "create") == 0) {
99 } else if(strcmp(args->mode, "start") == 0) {
112 } else if(strcmp(args->mode, "stop") == 0) {
123 } else if(strcmp(args->mode, "destroy") == 0) {
224 args[j].mode = modes[i];
/lxc/templates/
H A Dlxc-sshd.in144 lxc.mount.entry = tmpfs run/sshd tmpfs mode=0644 0 0
H A Dlxc-alpine.in77 -d, --debug Run this script in a debug mode (set -x and wget w/o -q).
H A Dlxc-plamo.in158 none /dev/pts devpts gid=5,mode=620 0 0
H A Dlxc-slackware.in131 none /run tmpfs defaults,mode=0755 0 0
/lxc/src/lxc/bdev/
H A Dlxcbtrfs.h230 __le32 mode; member in struct:btrfs_inode_item
/lxc/src/lxc/cgroups/
H A Dcgmanager.c470 const char *cgroup_path, const char *file, int mode)
473 cgroup_path, file, mode) != 0) {
1616 if (safe_mount("cgroup", cgpath, "tmpfs", 0, "size=10000,mode=755", root)) {
469 lxc_cgmanager_chmod(const char *controller, const char *cgroup_path, const char *file, int mode) argument
/lxc/src/lua-lxc/
H A Dlxc.lua362 if (cfgattr and cfgattr.mode == "file") then

Completed in 5131 milliseconds