Lines Matching refs:st
779 struct stat st;
785 if (stat(f1, &st) != 0) {
790 if (st.st_size == 0)
794 logprintf(" File size: %d\n", (int)st.st_size);
800 s = ((off_t)sizeof(buff) < st.st_size) ?
801 (ssize_t)sizeof(buff) : (ssize_t)st.st_size;
814 struct stat st;
818 if (stat(f1, &st) != 0) {
823 if (st.st_size == 0) {
1238 struct stat st;
1241 r = lstat(pathname, &st);
1248 case 'a': filet = st.st_atime; break;
1249 case 'm': filet = st.st_mtime; break;
1256 case 'a': filet_nsec = st.st_atimespec.tv_nsec; break;
1257 case 'b': filet = st.st_birthtime;
1258 filet_nsec = st.st_birthtimespec.tv_nsec; break;
1259 case 'm': filet_nsec = st.st_mtimespec.tv_nsec; break;
1358 struct stat st;
1362 r = lstat(pathname, &st);
1363 if (r == 0 && (int)st.st_nlink == nlinks)
1366 pathname, st.st_nlink, nlinks);
1388 struct stat st;
1389 r = lstat(pathname, &st);
1390 filesize = st.st_size;
1405 struct stat st;
1412 r = lstat(pathname, &st);
1418 if (!S_ISDIR(st.st_mode)) {
1427 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1430 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1443 struct stat st;
1450 r = lstat(pathname, &st);
1451 if (r != 0 || !S_ISREG(st.st_mode)) {
1460 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1463 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1487 struct stat st;
1492 r = lstat(pathname, &st);
1499 if (!S_ISLNK(st.st_mode))
1721 struct stat st;
1730 r = lstat(pathname, &st);
1738 mt = st.st_mtime;
1740 mt_nsec = st.st_mtimespec.tv_nsec;
1746 at = st.st_atime;
1748 at_nsec = st.st_atimespec.tv_nsec;
2096 struct stat st;
2112 r = fstat(fileno(f), &st);
2118 p = malloc((size_t)st.st_size + 1);
2121 (long int)st.st_size, filename);
2125 bytes_read = fread(p, 1, (size_t)st.st_size, f);
2126 if (bytes_read < st.st_size) {
2132 p[st.st_size] = '\0';
2134 *sizep = (size_t)st.st_size;
2211 struct stat st;
2214 if (stat(file, &st) < 0)
2216 ino = (int64_t)st.st_ino;