/src/bin/sh/ |
mail.c | 83 struct stat statb; local in function:chkmail 104 if (stat(p, &statb) < 0) 105 statb.st_mtime = 0; 106 if (statb.st_mtime > mailtime[i] && ! silent) { 110 mailtime[i] = statb.st_mtime; 112 if (stat(p, &statb) < 0) 113 statb.st_size = 0; 114 if (statb.st_size > mailsize[i] && ! silent) { 139 mailsize[i] = statb.st_size;
|
cd.c | 88 struct stat statb; local in function:cdcmd 146 if (stat(p, &statb) < 0) { 154 if (!S_ISDIR(statb.st_mode)) { 194 struct stat statb; 224 if (lstat(stackblock(), &statb) < 0) {
|
histedit.c | 445 struct stat statb; local in function:open_history_file 455 if (fstat(fd, &statb) == -1) { 462 if (statb.st_uid != getuid()) { 465 getuid(), statb.st_uid)); 969 struct stat statb; local in function:sh_matches 975 if (fstatat(dfd, entry->d_name, &statb, 0) 978 if (!S_ISREG(statb.st_mode))
|
exec.c | 129 struct stat statb; local in function:shellexec 136 if (e == EACCES && stat(argv[0], &statb) == -1) 167 if (stat(cmdname, &statb) != -1) 574 struct stat statb; local in function:find_command 581 while (stat(name, &statb) < 0) { 668 while (stat(fullname, &statb) < 0) { 678 if (!S_ISREG(statb.st_mode)) 697 if (statb.st_uid == geteuid()) { 698 if ((statb.st_mode & 0100) == 0) 700 } else if (statb.st_gid == getegid()) [all...] |
/src/libexec/talkd/ |
process.c | 186 struct stat statb; local in function:find_user 207 if (stat(ftty, &statb) != 0) 210 if (!(statb.st_mode & S_IWGRP)) { 215 if (statb.st_atime > atime && 217 atime = statb.st_atime;
|
/src/games/boggle/boggle/ |
word.c | 138 struct stat statb; local in function:loaddict 143 if (fstat(fileno(fp), &statb) < 0) { 152 if ((dictspace = malloc(statb.st_size + 1)) == NULL) { 156 n = (long)statb.st_size;
|
/src/usr.sbin/rbootd/ |
parseconf.c | 315 struct stat statb; local in function:GetBootFiles 343 if (stat(dp->d_name, &statb) < 0 || !S_ISREG(statb.st_mode))
|
/src/usr.bin/mail/ |
edit.c | 66 struct stat statb; local in function:run_editor 100 if (fstat(fileno(nf), &statb) < 0) 103 modtime = statb.st_mtime; 126 if (stat(tempname, &statb) < 0) { 130 if (modtime == statb.st_mtime) {
|
quit.c | 143 struct stat statb; local in function:edstop 175 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
|
/src/sys/arch/hp300/stand/mkboot/ |
mkboot.c | 232 struct stat statb; local in function:putfile 237 fstat(fd, &statb); 239 ld.count = htobe32(statb.st_size); 240 if ((bp = malloc(statb.st_size)) == NULL) 242 if (read(fd, bp, statb.st_size) < 0) 246 write(to, bp, statb.st_size); 249 return statb.st_size + sizeof(ld); 288 struct stat statb; local in function:bcddate 294 stat(name, &statb); 295 tm = localtime(&statb.st_ctime) [all...] |
/src/sbin/fsck_ext2fs/ |
setup.c | 113 struct stat statb; local in function:setup 121 if (stat(dev, &statb) < 0) { 125 if (!S_ISCHR(statb.st_mode)) {
|
/src/sbin/fsck_lfs/ |
setup.c | 165 struct stat statb; local in function:setup 178 if (stat(dev, &statb) < 0) { 182 if (!S_ISCHR(statb.st_mode) && skipclean) {
|
/src/usr.bin/progress/ |
progress.c | 89 struct stat statb; local in function:main 138 if (!zflag && !lflag && (fstat(fd, &statb) == 0)) { 139 if (S_ISFIFO(statb.st_mode)) { 145 filesize = statb.st_size;
|
/src/bin/ksh/ |
io.c | 211 struct stat statb; local in function:can_seek 213 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
|
c_test.c | 429 test_stat(pathx, statb) 431 struct stat *statb; 433 return stat(pathx, statb); 452 struct stat statb; local in function:test_eaccess 454 if (stat(pathx, &statb) < 0) 456 else if (S_ISDIR(statb.st_mode)) 459 res = (statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
|
exec.c | 1020 struct stat statb; local in function:search_access 1022 if (stat(pathx, &statb) < 0) 1028 && (!S_ISREG(statb.st_mode) 1030 || !(statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))) 1033 err = S_ISDIR(statb.st_mode) ? EISDIR : EACCES; 1123 struct stat statb; local in function:iosetup 1153 && (stat(cp, &statb) < 0 || S_ISREG(statb.st_mode)))
|
history.c | 264 struct stat statb; local in function:c_fc 274 n = fstat(shf_fileno(shf), &statb) < 0 ? 128 275 : statb.st_size + 1; 952 struct stat statb; local in function:hist_shrink 982 if (fstat(histfd, &statb) >= 0) 983 fchown(fd, statb.st_uid, statb.st_gid);
|
var.c | 1026 struct stat statb; local in function:setspec 1029 && stat(s, &statb) == 0 && S_ISDIR(statb.st_mode))
|
edit.c | 565 struct stat statb; local in function:x_file_glob 575 && stat(words[0], &statb) < 0)
|
eval.c | 1022 (stat_done = stat(Xstring(*xs, xp), &statb) < 0 \ 1024 struct stat lstatb, statb; local in function:globit 1038 || !S_ISDIR(statb.st_mode)) 1052 && S_ISDIR(statb.st_mode))
|
/src/usr.sbin/lpr/common_source/ |
displayq.c | 100 struct stat statb; local in function:displayq 119 ret = stat(LO, &statb); 122 if (statb.st_mode & S_IXUSR) { 137 if (statb.st_mode & S_IXGRP) {
|
/src/usr.sbin/lpr/lpr/ |
lpr.c | 103 static struct stat statb; variable in typeref:struct:stat 351 (unsigned long long)statb.st_dev, 352 (unsigned long long)statb.st_ino); 614 if (stat(file, &statb) < 0) { 618 if (S_ISDIR(statb.st_mode)) { 622 if (statb.st_size == 0) {
|
/src/sys/arch/hppa/stand/mkboot/ |
mkboot.c | 416 struct stat statb; local in function:bcddate 422 stat(file, &statb); 423 tm = localtime(&statb.st_ctime);
|
/src/sbin/fsck_ffs/ |
setup.c | 94 struct stat statb; local in function:setup 104 if (stat(dev, &statb) < 0) { 108 if (!forceimage && !S_ISCHR(statb.st_mode)) {
|
/src/bin/csh/ |
file.c | 275 struct stat statb; local in function:filetype 279 if (lstat(short2str(path), &statb) == 0) { 280 switch (statb.st_mode & S_IFMT) { 284 if (stat(short2str(path), &statb) == 0 && /* follow it out */ 285 S_ISDIR(statb.st_mode)) 292 if (statb.st_mode & 0111)
|