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

/lxc/src/lxc/
H A Dparse.c38 int lxc_file_for_each_line(const char *file, lxc_file_cb callback, void *data) argument
45 f = fopen(file, "r");
47 SYSERROR("failed to open %s", file);
H A Dlog.h73 const char *file; member in struct:lxc_log_locinfo
79 { .file = __FILE__, .func = __func__, .line = __LINE__ }
316 extern int lxc_log_init(const char *name, const char *file,
H A Dlxcutmp.c101 static int utmpxname(const char *file) { argument
103 result = utmpname(file);
116 /* This file watches the /var/run/utmp file in the container
120 * utmp file looking for runlevel changes. If a runlevel change
H A Dlog.c69 fprintf(stderr, "%s: %s: %d ", event->locinfo->file, event->locinfo->func, event->locinfo->line);
222 event->locinfo->file, event->locinfo->func,
304 ERROR("failed to open log file \"%s\" : %s", name,
321 * Build the path to the log file
390 * 3. When a lxc.logfile entry is found in config file.
413 ERROR("failed to create dir for log file \"%s\" : %s", fname,
446 extern int lxc_log_init(const char *name, const char *file, argument
474 if (file) {
475 if (strcmp(file, "none") == 0)
477 ret = __lxc_log_set_file(file,
[all...]
H A Dconfile.c1771 * If we find a lxc.network.hwaddr in the original config file,
1774 * This is only called when reading the config file, not when executing
2035 int lxc_config_read(const char *file, struct lxc_conf *conf, bool from_include) argument
2042 if( access(file, R_OK) == -1 ) {
2046 /* Catch only the top level config file name in the structure */
2048 conf->rcfile = strdup( file );
2050 return lxc_file_for_each_line(file, parse_line, &c);
2645 SYSERROR("Error writing configuration file");
2901 * We wish to update all hwaddrs in the unexpanded config file. We
2906 * the unexp config file, the
[all...]
H A Dutils.c579 /* free memory (we still need to close file stream) */
1350 int print_to_file(const char *file, const char *content) argument
1355 f = fopen(file, "w");
1569 * Open a file or directory, provided that it contains no symlinks.
1853 * Return the number of lines in file @fn, or -1 on error
1880 * underlying file. The pages handed to us are zero filled. */
1887 * the additional \0-byte with the file. This allows us to use normal
H A Dconf.c257 /* Declare this here, since we don't want to reshuffle the whole file. */
568 * the underlying fs readonly on shutdown. unlink the file immediately so
867 WARN("Warning: Read Only file system while creating %s", path);
1254 * The mountinfo file shows not all mounts, if a few points have been
1374 /* Remove any pre-existing /dev/ptmx file. */
1385 /* Create dummy /dev/ptmx file as bind mountpoint for /dev/pts/ptmx. */
1388 SYSERROR("failed to create dummy \"/dev/ptmx\" file as bind mount target");
1392 DEBUG("created dummy \"/dev/ptmx\" file as bind mount target");
1404 /* Remove the dummy /dev/ptmx file we created above. */
1830 * Remove 'optional', 'create=dir', and 'create=file' fro
2016 mount_file_entries(const struct lxc_rootfs *rootfs, FILE *file, const char *lxc_name, const char *lxc_path) argument
2052 FILE *file; local
2075 FILE *file; local
2114 FILE *file; local
[all...]
/lxc/src/include/
H A Dlxcmntent.c4 This file is part of the GNU C Library.
151 FILE *setmntent (const char *file, const char *mode) argument
159 FILE *result = fopen (file, newmode);
/lxc/src/lxc/tools/
H A Dlxc_info.c97 --rcfile=FILE Load configuration file FILE\n",
243 const char *file; member in struct:__anon20
251 ret = c->get_cgroup_item(c, lxstat[i].file, buf, sizeof(buf));
/lxc/src/lxc/cgroups/
H A Dcgfsng.c284 /* Slurp in a whole file */
447 SYSERROR("Could not read file: %s.\n", fpath);
476 SYSERROR("Could not read file "__ISOL_CPUS);
562 /* Copy contents of parent(@path)/@file to @path/@file */
563 static bool copy_parent_file(char *path, char *file) argument
576 fpath = must_make_path(path, file, NULL);
585 fpath = must_make_path(path, file, NULL);
873 * \n-terminated /proc/self/cgroup file. Check whether * controller c is
H A Dcgmanager.c218 /* file format: hierarchy:subsystems:group */
470 const char *cgroup_path, const char *file, int mode)
473 cgroup_path, file, mode) != 0) {
1360 /* file format: hierarchy:subsystems:group,
469 lxc_cgmanager_chmod(const char *controller, const char *cgroup_path, const char *file, int mode) argument

Completed in 50 milliseconds