Searched refs:statbuf (Results 1 - 25 of 52) sorted by relevance

123

/haiku-fatelf/src/bin/coreutils/lib/
H A Droot-dev-ino.c31 struct stat statbuf; local
32 if (lstat ("/", &statbuf))
34 root_d_i->st_ino = statbuf.st_ino;
35 root_d_i->st_dev = statbuf.st_dev;
H A Dlseek.c55 struct stat statbuf;
56 if (fstat (fd, &statbuf) < 0)
58 if (!S_ISREG (statbuf.st_mode))
H A Drmdir.c60 struct stat statbuf;
62 if (stat (dir, &statbuf) != 0)
65 if (!S_ISDIR (statbuf.st_mode))
H A Dopen.c116 struct stat statbuf; local
117 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode))
148 struct stat statbuf; local
150 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
H A Dreadlink.c35 struct stat statbuf; local
40 if (stat (name, &statbuf) >= 0)
H A Dfopen.c72 struct stat statbuf; local
85 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
H A Dfchdir.c149 struct stat statbuf; local
153 || (fstat (fd, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)))
222 rpl_fstat (int fd, struct stat *statbuf) argument
225 return stat (dirs[fd].name, statbuf);
226 return fstat (fd, statbuf);
H A Dopenat.c110 struct stat statbuf; local
112 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
H A Dutimens.c130 update_timespec (struct stat const *statbuf, struct timespec *ts[2]) argument
144 timespec[0] = get_stat_atime (statbuf);
149 timespec[1] = get_stat_mtime (statbuf);
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dreadlink.c39 struct stat statbuf; local
44 if (stat (path, &statbuf) >= 0)
H A Dlseek.c52 struct stat statbuf;
53 if (fstat (fd, &statbuf) < 0)
55 if (!S_ISREG (statbuf.st_mode))
H A Dfchdir.c102 struct stat statbuf; local
128 && fstat (fd, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode))
/haiku-fatelf/src/bin/network/wget/lib/
H A Dlseek.c52 struct stat statbuf;
53 if (fstat (fd, &statbuf) < 0)
55 if (!S_ISREG (statbuf.st_mode))
/haiku-fatelf/src/bin/findutils/lib/
H A Dlistfile.c101 # define ST_BLKSIZE(statbuf) DEV_BSIZE
103 # define ST_NBLOCKS(statbuf) \
104 (S_ISREG ((statbuf).st_mode) \
105 || S_ISDIR ((statbuf).st_mode) \
106 ? (statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0) : 0)
108 # define ST_NBLOCKS(statbuf) \
109 (S_ISREG ((statbuf).st_mode) \
110 || S_ISDIR ((statbuf).st_mode) \
111 ? st_blocks ((statbuf)
[all...]
/haiku-fatelf/src/bin/coreutils/src/
H A Dstat.c441 human_access (struct stat const *statbuf) argument
444 filemodestring (statbuf, modebuf);
606 struct stat *statbuf = (struct stat *) data; local
617 if (S_ISLNK (statbuf->st_mode))
619 char *linkname = areadlink_with_size (filename, statbuf->st_size);
631 out_uint (pformat, prefix_len, statbuf->st_dev);
634 out_uint_x (pformat, prefix_len, statbuf->st_dev);
637 out_uint (pformat, prefix_len, statbuf->st_ino);
640 out_uint_o (pformat, prefix_len, statbuf->st_mode & CHMOD_MODE_BITS);
643 out_string (pformat, prefix_len, human_access (statbuf));
911 struct stat statbuf; local
[all...]
H A Dsystem.h149 # define ST_BLKSIZE(statbuf) DEV_BSIZE
151 # define ST_NBLOCKS(statbuf) \
152 ((statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0))
154 # define ST_NBLOCKS(statbuf) \
155 (S_ISREG ((statbuf).st_mode) \
156 || S_ISDIR ((statbuf).st_mode) \
157 ? st_blocks ((statbuf).st_size) : 0)
169 # define ST_BLKSIZE(statbuf) ((0 < (statbuf)
[all...]
/haiku-fatelf/src/bin/gdb/bfd/
H A Daix5ppc-core.c57 struct stat statbuf; local
73 if (bfd_stat (abfd, &statbuf) < 0)
92 || ((CHECK_FILE_OFFSET (statbuf, core.c_fdsinfox)))
93 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader)))
94 || ((CHECK_FILE_OFFSET (statbuf, core.c_loader + core.c_lsize)))
95 || ((CHECK_FILE_OFFSET (statbuf, core.c_thr)))
96 || ((CHECK_FILE_OFFSET (statbuf, core.c_segregion)))
97 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack)))
98 || ((CHECK_FILE_OFFSET (statbuf, core.c_stack + core.c_size)))
99 || ((CHECK_FILE_OFFSET (statbuf, cor
[all...]
H A Dhppabsd-core.c141 struct stat statbuf; local
143 if (fstat (fileno (stream), &statbuf) < 0)
148 if (NBPG * (UPAGES + u.u_dsize + u.u_ssize) > statbuf.st_size)
153 if (clicksz * (UPAGES + u.u_dsize + u.u_ssize) < statbuf.st_size)
H A Dtrad-core.c113 struct stat statbuf; local
115 if (fstat (fileno (stream), &statbuf) < 0)
125 > (unsigned long) statbuf.st_size)
137 < (unsigned long) statbuf.st_size)
H A Dcisco-core.c98 struct stat statbuf;
128 if (bfd_stat (abfd, &statbuf) < 0)
251 asect->size = statbuf.st_size;
278 nread = statbuf.st_size - asect->filepos;
96 struct stat statbuf; local
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dwrite_entry.c86 struct stat statbuf; local
100 if ((rc = stat(path, &statbuf)) < 0) {
105 } else if (!(S_ISDIR(statbuf.st_mode))) {
209 struct stat statbuf; local
270 stat(filename, &statbuf) >= 0
271 && statbuf.st_mtime >= start_time) {
279 if (stat(filename, &statbuf) < 0
280 || (start_time = statbuf.st_mtime) == 0) {
307 } else if (stat(linkname, &statbuf) >= 0 &&
308 statbuf
[all...]
/haiku-fatelf/src/bin/findutils/find/
H A Dpred.c100 # define ST_BLKSIZE(statbuf) DEV_BSIZE
102 # define ST_NBLOCKS(statbuf) \
103 (S_ISREG ((statbuf).st_mode) \
104 || S_ISDIR ((statbuf).st_mode) \
105 ? (statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0) : 0)
107 # define ST_NBLOCKS(statbuf) \
108 (S_ISREG ((statbuf).st_mode) \
109 || S_ISDIR ((statbuf).st_mode) \
110 ? st_blocks ((statbuf)
[all...]
/haiku-fatelf/src/bin/less/
H A Dfilename.c950 struct stat statbuf; local
952 r = stat(filename, &statbuf);
953 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode));
995 struct stat statbuf; local
997 r = stat(filename, &statbuf);
1004 } else if (!S_ISREG(statbuf.st_mode))
1027 struct stat statbuf; local
1029 if (fstat(f, &statbuf) >= 0)
1030 return ((POSITION) statbuf.st_size);
/haiku-fatelf/src/bin/compress/
H A Dcompress.c550 struct stat statbuf; local
783 stat ( *fileptr, &statbuf );
784 fsize = (long) statbuf.st_size;
834 if (stat(ofname, &statbuf) == 0) {
1521 struct stat statbuf; local
1530 if (stat(ifname, &statbuf)) { /* Get stat on input file */
1536 if ((statbuf.st_mode & S_IFMT/*0170000*/) != S_IFREG/*0100000*/) {
1541 } else if (statbuf.st_nlink > 1) {
1545 statbuf.st_nlink - 1);
1556 mode = statbuf
[all...]
/haiku-fatelf/src/bin/unzip/
H A Dfileio.c257 if (SSTAT(G.filename, &G.statbuf) == 0 || lstat(G.filename,&G.statbuf) == 0)
259 if (SSTAT(G.filename, &G.statbuf) == 0)
330 if (!(G.statbuf.st_mode & S_IWRITE)) {
1839 if (SSTAT(filename, &G.statbuf)) {
1842 FnFilter1(filename), SSTAT(filename, &G.statbuf)));
1847 if (lstat(filename, &G.statbuf) == 0) {
1864 if (lstat(filename, &G.statbuf) == 0 && S_ISLNK(G.statbuf.st_mode)) {
1874 NATIVE_TO_TIMET(G.statbuf
[all...]

Completed in 705 milliseconds

123