| /src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/ |
| readlink.c | 37 struct stat statbuf; local 42 if (stat (path, &statbuf) >= 0)
|
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| readlink.c | 37 struct stat statbuf; local 42 if (stat (path, &statbuf) >= 0)
|
| copy-file.c | 52 struct stat statbuf; local 59 if (src_fd < 0 || fstat (src_fd, &statbuf) < 0) 63 mode = statbuf.st_mode & 07777; 93 ut.actime = statbuf.st_atime; 94 ut.modtime = statbuf.st_mtime; 101 ut[0].tv_sec = statbuf.st_atime; ut[0].tv_usec = 0; 102 ut[1].tv_sec = statbuf.st_mtime; ut[1].tv_usec = 0; 109 chown (dest_filename, statbuf.st_uid, statbuf.st_gid);
|
| /src/external/gpl2/xcvs/dist/lib/ |
| readlink.c | 42 struct stat statbuf; local 47 if (stat (path, &statbuf) >= 0)
|
| /src/external/bsd/zstd/dist/programs/ |
| util.h | 130 * Calls platform's equivalent of stat() on filename and writes info to statbuf. 137 int UTIL_stat(const char* filename, stat_t* statbuf); 138 int UTIL_fstat(const int fd, const char* filename, stat_t* statbuf); 149 int UTIL_setFileStat(const char* filename, const stat_t* statbuf); 150 int UTIL_setFDStat(const int fd, const char* filename, const stat_t* statbuf); 153 * Set atime to now and mtime to the st_mtim in statbuf. 158 int UTIL_utime(const char* filename, const stat_t *statbuf); 165 int UTIL_isRegularFileStat(const stat_t* statbuf); 166 int UTIL_isDirectoryStat(const stat_t* statbuf); 167 int UTIL_isFIFOStat(const stat_t* statbuf); [all...] |
| util.c | 167 int UTIL_fstat(const int fd, const char* filename, stat_t* statbuf) 173 ret = !_fstat64(fd, statbuf); 175 ret = !_stat64(filename, statbuf); 179 ret = !_fstati64(fd, statbuf); 181 ret = !_stati64(filename, statbuf); 185 ret = !fstat(fd, statbuf); 187 ret = !stat(filename, statbuf); 194 int UTIL_stat(const char* filename, stat_t* statbuf) 196 return UTIL_fstat(-1, filename, statbuf); 201 stat_t statbuf; local 348 stat_t statbuf; local 428 stat_t statbuf; local 468 stat_t statbuf; local 516 stat_t statbuf; local 674 stat_t statbuf; local [all...] |
| /src/sbin/mount_umap/ |
| mount_umap.c | 103 struct stat statbuf; local 156 if (fstat(fileno(fp), &statbuf)) 158 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 159 strmode(statbuf.st_mode, buf); 163 if (statbuf.st_uid != ROOTUSER) 204 if (fstat(fileno(gfp), &statbuf)) 206 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 207 strmode(statbuf.st_mode, buf) [all...] |
| /src/external/gpl3/binutils/dist/binutils/ |
| rename.c | 166 STATBUF. */ 169 set_times (const char *destination, const struct stat *statbuf) 174 times[0] = get_stat_atime (statbuf); 175 times[1] = get_stat_mtime (statbuf); 180 tv[0].tv_sec = statbuf->st_atime; 181 tv[0].tv_usec = get_stat_atime_ns (statbuf) / 1000; 182 tv[1].tv_sec = statbuf->st_mtime; 183 tv[1].tv_usec = get_stat_mtime_ns (statbuf) / 1000; 188 tb.actime = statbuf->st_atime; 189 tb.modtime = statbuf->st_mtime [all...] |
| /src/external/gpl3/binutils.old/dist/binutils/ |
| rename.c | 166 STATBUF. */ 169 set_times (const char *destination, const struct stat *statbuf) 174 times[0] = get_stat_atime (statbuf); 175 times[1] = get_stat_mtime (statbuf); 180 tv[0].tv_sec = statbuf->st_atime; 181 tv[0].tv_usec = get_stat_atime_ns (statbuf) / 1000; 182 tv[1].tv_sec = statbuf->st_mtime; 183 tv[1].tv_usec = get_stat_mtime_ns (statbuf) / 1000; 188 tb.actime = statbuf->st_atime; 189 tb.modtime = statbuf->st_mtime [all...] |
| /src/external/gpl3/gdb/dist/gnulib/import/ |
| open.c | 161 struct stat statbuf; local 162 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) 191 struct stat statbuf; local 193 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
| /src/external/gpl3/gdb.old/dist/gnulib/import/ |
| open.c | 161 struct stat statbuf; local 162 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) 191 struct stat statbuf; local 193 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
| /src/external/bsd/zstd/dist/tests/ |
| roundTripCrash.c | 162 struct _stat64 statbuf; local 163 r = _stat64(infilename, &statbuf); 164 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */ 166 struct stat statbuf; 167 r = stat(infilename, &statbuf); 168 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */ 170 return (size_t)statbuf.st_size; 178 struct _stat64 statbuf; local 179 r = _stat64(infilename, &statbuf); 180 if (!r && (statbuf.st_mode & _S_IFDIR)) return 1 [all...] |
| /src/external/bsd/libbind/dist/bsd/ |
| writev.c | 25 struct stat statbuf; local 27 if (fstat(fd, &statbuf) < 0) 33 if (statbuf.st_mode & S_IFSOCK) {
|
| /src/external/bsd/ppp/dist/pppd/ |
| utils_utest.c | 17 struct stat statbuf; local 19 if (stat(path, &statbuf) < 0) 22 return statbuf.st_mode & S_IFMT;
|
| /src/bin/pax/ |
| ftree.c | 413 struct stat statbuf; local 447 Mftent.fts_statp = &statbuf; 451 if (lstat(Mftent.fts_path, &statbuf) == -1) { 456 memset(&statbuf, 0, sizeof(statbuf)); 457 statbuf.st_dev = MFTENT_DUMMY_DEV; 458 statbuf.st_ino = ftnode->lineno; 459 statbuf.st_size = 0; 467 statbuf.st_mode = nodetoino(ftnode->type); 471 statbuf.st_mtime = starttime [all...] |
| /src/external/gpl2/xcvs/dist/src/ |
| error.c | 116 char statbuf[256]; local 130 buf = statbuf; 135 length = sizeof (statbuf); 137 buf = vasnprintf (statbuf, &length, message, args); 188 if (buf != statbuf) free (buf);
|
| /src/tests/fs/lfs/ |
| t_orphan.c | 70 struct stat statbuf; local 111 rump_sys_fstat(fd, &statbuf); 112 fprintf(stderr, "Inode is => %d <=\n", (int)statbuf.st_ino); 115 fwrite(&statbuf.st_ino, sizeof(ino_t), 1, fp); 123 if (statbuf.st_size != FILE_SIZE) 125 if (statbuf.st_nlink <= 0) 127 if (statbuf.st_blocks <= 0)
|
| util.c | 64 struct stat statbuf; local 70 if (rump_sys_stat(filename, &statbuf) < 0) 73 size = statbuf.st_size; 101 struct stat statbuf; local 104 if (rump_sys_stat(filename, &statbuf) < 0) { 108 if (size != statbuf.st_size) { 110 filename, size, (int)statbuf.st_size);
|
| /src/external/bsd/cron/dist/ |
| database.c | 250 struct stat *statbuf, cron_db *new_db, cron_db *old_db) 279 if (fstat(crontab_fd, statbuf) < OK) { 283 if (!S_ISREG(statbuf->st_mode)) { 287 if ((eqmode && (statbuf->st_mode & 07577) != eqmode) || 288 (badmode && (statbuf->st_mode & badmode) != 0)) { 292 if (statbuf->st_uid != ROOT_UID && (pw == NULL || 293 statbuf->st_uid != pw->pw_uid || strcmp(uname, pw->pw_name) != 0)) { 297 if (statbuf->st_nlink != 1) { 308 if (u->mtime == statbuf->st_mtime) { 329 u->mtime = statbuf->st_mtime [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_common_syscalls.inc | 822 PRE_SYSCALL(stat)(const void *filename, void *statbuf) { 828 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) { 830 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz); 874 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) { 880 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) { 882 if (statbuf) POST_WRITE(statbuf, struct___old_kernel_stat_sz); 886 PRE_SYSCALL(fstat)(long fd, void *statbuf) {} 888 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) { [all...] |
| /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| sanitizer_common_syscalls.inc | 887 PRE_SYSCALL(stat)(const void *filename, void *statbuf) { 893 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) { 895 if (statbuf) 896 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 946 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) { 952 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) { 954 if (statbuf) 955 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 959 PRE_SYSCALL(fstat)(long fd, void *statbuf) {} 961 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) { [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| sanitizer_common_syscalls.inc | 887 PRE_SYSCALL(stat)(const void *filename, void *statbuf) { 893 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) { 895 if (statbuf) 896 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 944 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) { 950 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) { 952 if (statbuf) 953 POST_WRITE(statbuf, struct___old_kernel_stat_sz); 957 PRE_SYSCALL(fstat)(long fd, void *statbuf) {} 959 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) { [all...] |
| /src/external/mit/libuv/dist/test/ |
| test-fs-copyfile.c | 59 size = stat_req.statbuf.st_size; 60 mode = stat_req.statbuf.st_mode; 61 uid = stat_req.statbuf.st_uid; 62 gid = stat_req.statbuf.st_gid; 66 ASSERT_EQ(stat_req.statbuf.st_size, size); 67 ASSERT_EQ(stat_req.statbuf.st_mode, mode); 68 ASSERT_EQ(stat_req.statbuf.st_uid, uid); 69 ASSERT_EQ(stat_req.statbuf.st_gid, gid); 138 ASSERT_EQ(12, req.statbuf.st_size);
|
| /src/external/gpl3/binutils/dist/bfd/ |
| aix5ppc-core.c | 57 struct stat statbuf; local 72 if (bfd_stat (abfd, &statbuf) < 0) 91 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_data)) [all...] |
| /src/external/gpl3/binutils.old/dist/bfd/ |
| aix5ppc-core.c | 57 struct stat statbuf; local 72 if (bfd_stat (abfd, &statbuf) < 0) 91 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox))) 92 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader))) 93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize))) 94 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr))) 95 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion))) 96 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack))) 97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size))) 98 || ((CHECK_FILE_OFFSET (statbuf, core.c_data)) [all...] |