Searched refs:buffer (Results 1 - 11 of 11) sorted by relevance

/lxc/src/lxc/
H A Dparse.h29 typedef int (*lxc_file_cb)(char *buffer, void *data);
34 extern int lxc_char_left_gc(const char *buffer, size_t len);
36 extern int lxc_char_right_gc(const char *buffer, size_t len);
H A Dparse.c67 int lxc_char_left_gc(const char *buffer, size_t len) argument
71 if (buffer[i] == ' ' ||
72 buffer[i] == '\t')
79 int lxc_char_right_gc(const char *buffer, size_t len) argument
83 if (buffer[i] == ' ' ||
84 buffer[i] == '\t' ||
85 buffer[i] == '\n' ||
86 buffer[i] == '\0')
H A Dlog.c197 char buffer[LXC_LOG_BUFFER_SIZE]; local
216 n = snprintf(buffer, sizeof(buffer),
228 if ((size_t)n < (sizeof(buffer) - 1))
229 n += vsnprintf(buffer + n, sizeof(buffer) - n, event->fmt, *event->vap);
231 n = sizeof(buffer) - 1;
233 buffer[n] = '\n';
235 return write(fd_to_use, buffer, n + 1);
H A Dlxcutmp.c163 char buffer[MAXPATHLEN]; local
170 if (read(fd, buffer, size) < size) {
175 ie = (struct inotify_event *)buffer;
H A Dconf.c379 static int run_buffer(char *buffer) argument
385 f = lxc_popen(buffer);
387 SYSERROR("Failed to popen() %s.", buffer);
393 ERROR("Failed to allocate memory for %s.", buffer);
399 DEBUG("Script %s with output: %s.", buffer, output);
423 char *buffer; local
442 buffer = alloca(size);
443 if (!buffer) {
449 snprintf(buffer, size, "%s %s %s %s", script, name, section, hook);
458 rc = snprintf(buffer
473 char *buffer, *p; local
3117 char buffer[MAX_BUFFER_SIZE]; local
[all...]
H A Dconfile.c1950 static int parse_line(char *buffer, void *data) argument
1960 if (lxc_is_line_empty(buffer))
1963 /* we have to dup the buffer otherwise, at the re-exec for
1967 linep = line = strdup(buffer);
1969 SYSERROR("failed to allocate memory for '%s'", buffer);
2025 static int lxc_config_readline(char *buffer, struct lxc_conf *conf) argument
2032 return parse_line(buffer, &c);
H A Dlxccontainer.c3421 char buffer[25]; local
3428 strftime(buffer, 25, "%Y:%m:%d %H:%M:%S", tm_info);
3437 if (fprintf(f, "%s", buffer) < 0) {
/lxc/src/include/
H A Dlxcmntent.h36 extern struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz);
H A Dlxcmntent.c76 struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz) argument
85 if (fgets (buffer, bufsiz, stream) == NULL)
90 end_ptr = strchr (buffer, '\n');
102 head = buffer + strspn (buffer, " \t");
/lxc/src/lxc/tools/
H A Dlxc_cgroup.c124 char buffer[MAXPATHLEN]; local
125 int ret = c->get_cgroup_item(c, state_object, buffer, MAXPATHLEN);
132 printf("%*s", ret, buffer);
/lxc/src/lxc/bdev/
H A Dbdev.c208 static int find_fstype_cb(char *buffer, void *data);
881 static int find_fstype_cb(char* buffer, void *data) argument
894 if (strstr(buffer, "nodev"))
897 fstype = buffer;

Completed in 47 milliseconds