Lines Matching refs:statBuffer
38 static struct stat statBuffer;
123 ret = lstat (nameBuffer, &statBuffer);
131 if(S_ISDIR(statBuffer.st_mode)) {
307 int ret = lstat(fullPath, &statBuffer);
316 if(S_ISDIR(statBuffer.st_mode)) {
319 if (write_header(fh, TYPE_DIR, fullPath, &statBuffer) == 0) {
327 } else if (S_ISREG(statBuffer.st_mode)) {
335 if (write_header(fh, TYPE_FILE, fullPath, &statBuffer) == 0) {
340 off_t size = statBuffer.st_size;
539 if (read_header(fh, &type, &path, &statBuffer) == 0) {
553 if (mkdir(path, statBuffer.st_mode) != 0) {
595 if (chmod(path, statBuffer.st_mode&(S_IRWXU|S_IRWXG|S_IRWXO)) != 0) {
597 typeName, path, statBuffer.st_mode, strerror(errno));
602 if (chown(path, statBuffer.st_uid, statBuffer.st_gid) != 0) {
604 typeName, path, (int)statBuffer.st_uid, (int)statBuffer.st_gid, strerror(errno));
610 timbuf.actime = statBuffer.st_atime;
611 timbuf.modtime = statBuffer.st_mtime;