/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | root-dev-ino.c | 31 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 D | lseek.c | 55 struct stat statbuf; 56 if (fstat (fd, &statbuf) < 0) 58 if (!S_ISREG (statbuf.st_mode))
|
H A D | rmdir.c | 60 struct stat statbuf; 62 if (stat (dir, &statbuf) != 0) 65 if (!S_ISDIR (statbuf.st_mode))
|
H A D | open.c | 116 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 D | readlink.c | 35 struct stat statbuf; local 40 if (stat (name, &statbuf) >= 0)
|
H A D | fopen.c | 72 struct stat statbuf; local 85 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
H A D | fchdir.c | 149 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 D | openat.c | 110 struct stat statbuf; local 112 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
|
H A D | utimens.c | 130 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 D | readlink.c | 39 struct stat statbuf; local 44 if (stat (path, &statbuf) >= 0)
|
H A D | lseek.c | 52 struct stat statbuf; 53 if (fstat (fd, &statbuf) < 0) 55 if (!S_ISREG (statbuf.st_mode))
|
H A D | fchdir.c | 102 struct stat statbuf; local 128 && fstat (fd, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode))
|
/haiku-fatelf/src/bin/network/wget/lib/ |
H A D | lseek.c | 52 struct stat statbuf; 53 if (fstat (fd, &statbuf) < 0) 55 if (!S_ISREG (statbuf.st_mode))
|
/haiku-fatelf/src/bin/findutils/lib/ |
H A D | listfile.c | 101 # 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 D | stat.c | 441 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 D | system.h | 149 # 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 D | aix5ppc-core.c | 57 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 D | hppabsd-core.c | 141 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 D | trad-core.c | 113 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 D | cisco-core.c | 98 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 D | write_entry.c | 86 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 D | pred.c | 100 # 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 D | filename.c | 950 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 D | compress.c | 550 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 D | fileio.c | 257 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...] |