Searched refs:buffer (Results 1 - 11 of 11) sorted by relevance
/lxc/src/lxc/ |
H A D | parse.h | 29 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 D | parse.c | 67 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 D | log.c | 197 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 D | lxcutmp.c | 163 char buffer[MAXPATHLEN]; local 170 if (read(fd, buffer, size) < size) { 175 ie = (struct inotify_event *)buffer;
|
H A D | conf.c | 379 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 D | confile.c | 1950 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 D | lxccontainer.c | 3421 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 D | lxcmntent.h | 36 extern struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz);
|
H A D | lxcmntent.c | 76 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 D | lxc_cgroup.c | 124 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 D | bdev.c | 208 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 68 milliseconds