Lines Matching refs:sbuf
376 struct stat sbuf;
390 if (fstat(fd, &sbuf) == -1)
393 if ((buf = malloc((sz = sbuf.st_size) + 1)) == NULL)
457 struct stat sbuf;
466 if (fstat(fd, &sbuf) == -1)
469 if ((buf = malloc((sz = sbuf.st_size) + 1)) == NULL)
508 O_WRONLY | O_CREAT | O_EXCL, sbuf.st_mode)) == -1)
519 if (chown(tmpname, sbuf.st_uid, sbuf.st_gid) != 0) {
522 (int)sbuf.st_uid, (int)sbuf.st_gid);