Searched defs:fbuf (Results 1 - 2 of 2) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_destroy.c199 struct stat fbuf; local
217 ret = fstat(fd, &fbuf);
224 buf = calloc(fbuf.st_size + 1, sizeof(char));
231 ret = read(fd, buf, fbuf.st_size);
/lxc/src/lxc/
H A Dlxccontainer.c2097 struct stat fbuf; local
2167 if (fstat(fd, &fbuf) < 0) {
2172 if (fbuf.st_size != 0) {
2174 buf = lxc_strmmap(NULL, fbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
2187 lxc_strmunmap(buf, fbuf.st_size);
2188 if (ftruncate(fd, fbuf.st_size - bytes) < 0) {
2198 if (stat(path, &fbuf) < 0)
2200 if (!fbuf.st_size) {
2266 struct stat fbuf; local
2274 if (stat(path, &fbuf) <
[all...]

Completed in 26 milliseconds