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) {
1237 struct stat st;
1240 r = lstat(pathname, &st);
1247 case 'a': filet = st.st_atime; break;
1248 case 'm': filet = st.st_mtime; break;
1255 case 'a': filet_nsec = st.st_atimespec.tv_nsec; break;
1256 case 'b': filet = st.st_birthtime;
1257 filet_nsec = st.st_birthtimespec.tv_nsec; break;
1258 case 'm': filet_nsec = st.st_mtimespec.tv_nsec; break;
1357 struct stat st;
1361 r = lstat(pathname, &st);
1362 if (r == 0 && (int)st.st_nlink == nlinks)
1365 pathname, st.st_nlink, nlinks);
1387 struct stat st;
1388 r = lstat(pathname, &st);
1389 filesize = st.st_size;
1404 struct stat st;
1411 r = lstat(pathname, &st);
1417 if (!S_ISDIR(st.st_mode)) {
1426 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1429 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1442 struct stat st;
1449 r = lstat(pathname, &st);
1450 if (r != 0 || !S_ISREG(st.st_mode)) {
1459 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1462 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1486 struct stat st;
1491 r = lstat(pathname, &st);
1498 if (!S_ISLNK(st.st_mode))
1720 struct stat st;
1729 r = lstat(pathname, &st);
1737 mt = st.st_mtime;
1739 mt_nsec = st.st_mtimespec.tv_nsec;
1745 at = st.st_atime;
1747 at_nsec = st.st_atimespec.tv_nsec;
2095 struct stat st;
2111 r = fstat(fileno(f), &st);
2117 p = malloc((size_t)st.st_size + 1);
2120 (long int)st.st_size, filename);
2124 bytes_read = fread(p, 1, (size_t)st.st_size, f);
2125 if (bytes_read < st.st_size) {
2131 p[st.st_size] = '\0';
2133 *sizep = (size_t)st.st_size;
2210 struct stat st;
2213 if (stat(file, &st) < 0)
2215 ino = (int64_t)st.st_ino;