/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g77.f-torture/execute/ |
H A D | u77-test.f | 60 integer fstatb (13), statb (13) variable 308 i = stat ('foo', statb) 313 write (6,*) ' with stat array ', statb 314 if (statb(6) .ne. getgid ()) then 317 if (statb(5) .ne. getuid () .or. statb(4) .ne. 1) then 322 if (fstatb (i) .ne. statb (i)) then 324 + array element ', i, ' value ', fstatb (i), statb (i) 330 if (fstatb (i) .ne. statb (i)) then 332 + 'array element ', i, ' value ', fstatb (i), statb (i)
|
/openbsd/libexec/login_token/ |
H A D | tokendb.c | 167 struct stat statb; in tokendb_open() local 179 if (stat(tt->db, &statb) == -1) { in tokendb_open() 184 if (statb.st_uid != 0 || statb.st_gid != grp->gr_gid) { in tokendb_open() 190 "Group was %u", tt->db, statb.st_uid, statb.st_gid); in tokendb_open() 196 if ((statb.st_mode & 0777) != 0640) { in tokendb_open() 202 tt->db, statb.st_mode); in tokendb_open()
|
/openbsd/games/boggle/boggle/ |
H A D | word.c | 126 struct stat statb; in loaddict() local 131 if (fstat(fileno(fp), &statb) < 0) { in loaddict() 140 if ((dictspace = malloc(statb.st_size + 1)) == NULL) { in loaddict() 144 n = (long)statb.st_size; in loaddict()
|
/openbsd/usr.bin/mail/ |
H A D | edit.c | 154 struct stat statb; in run_editor() local 175 if (fstat(fileno(nf), &statb) == -1) in run_editor() 178 modtime = statb.st_mtime; in run_editor() 214 if (stat(tempname, &statb) == -1) { in run_editor() 218 if (modtime == statb.st_mtime) { in run_editor()
|
H A D | quit.c | 394 struct stat statb; in edstop() local 411 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) { in edstop()
|
/openbsd/libexec/talkd/ |
H A D | process.c | 211 struct stat statb; in find_user() local 217 if (stat(ftty, &statb) == 0) { in find_user() 218 if (!(statb.st_mode & S_IWGRP)) { in find_user() 221 } else if (now - statb.st_atime < idle) { in find_user() 222 idle = now - statb.st_atime; in find_user()
|
/openbsd/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 89 static struct stat statb; variable 331 statb.st_dev, (unsigned long long)statb.st_ino); in main() 572 if (fstat(fd, &statb) < 0) { in test() 576 if (S_ISDIR(statb.st_mode)) { in test() 580 if (!S_ISREG(statb.st_mode)) { in test() 584 if (statb.st_size == 0) { in test()
|
/openbsd/usr.sbin/rbootd/ |
H A D | parseconf.c | 294 struct stat statb; in GetBootFiles() local 323 if (stat(dp->d_name, &statb) == -1 || in GetBootFiles() 324 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
|
/openbsd/bin/csh/ |
H A D | file.c | 442 struct stat statb; in filetype() local 446 if (lstat(short2str(path), &statb) == 0) { in filetype() 447 switch (statb.st_mode & S_IFMT) { in filetype() 452 if (stat(short2str(path), &statb) == 0 && /* follow it out */ in filetype() 453 S_ISDIR(statb.st_mode)) in filetype() 462 if (statb.st_mode & 0111) in filetype()
|
/openbsd/gnu/usr.bin/perl/amigaos4/ |
H A D | amigaos.c | 531 int afstat(int fd, struct stat *statb) in afstat() argument 540 if ((result = fstat(fd, statb) >= 0)) in afstat() 624 memzero(statb, sizeof(statb)); in afstat() 626 statb->st_mode = mode; in afstat()
|
/openbsd/usr.sbin/lpr/common_source/ |
H A D | displayq.c | 100 struct stat statb; in displayq() local 148 ret = stat(LO, &statb); in displayq() 151 if (statb.st_mode & S_IXUSR) { in displayq() 165 if (statb.st_mode & S_IXGRP) { in displayq()
|
/openbsd/bin/ksh/ |
H A D | c_test.c | 363 struct stat statb; in test_eaccess() local 365 if (stat(path, &statb) == -1) in test_eaccess() 367 else if (S_ISDIR(statb.st_mode)) in test_eaccess() 370 res = (statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) ? in test_eaccess()
|
H A D | io.c | 223 struct stat statb; in can_seek() local 225 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ? in can_seek()
|
H A D | exec.c | 959 struct stat statb; in search_access() local 961 if (stat(path, &statb) == -1) in search_access() 966 else if (mode == X_OK && (!S_ISREG(statb.st_mode) || in search_access() 967 !(statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))) { in search_access() 970 err = S_ISDIR(statb.st_mode) ? EISDIR : EACCES; in search_access() 1053 struct stat statb; in iosetup() local 1083 (stat(cp, &statb) == -1 || S_ISREG(statb.st_mode))) in iosetup()
|
H A D | history.c | 244 struct stat statb; in c_fc() local 254 n = fstat(shf->fd, &statb) == -1 ? 128 : in c_fc() 255 statb.st_size + 1; in c_fc()
|
H A D | eval.c | 1047 (stat_done = stat(Xstring(*xs, xp), &statb) == -1 \ in globit() 1049 struct stat lstatb, statb; in globit() local 1061 stat_check() < 0 || !S_ISDIR(statb.st_mode))) in globit() 1071 S_ISDIR(statb.st_mode)))) { in globit()
|
H A D | var.c | 994 struct stat statb; in setspec() local 998 stat(s, &statb) == 0 && S_ISDIR(statb.st_mode)) in setspec()
|
H A D | edit.c | 447 struct stat statb; in x_file_glob() local 454 if ((lstat(words[0], &statb) == -1) || in x_file_glob()
|
/openbsd/sys/arch/hppa/stand/mkboot/ |
H A D | mkboot.c | 353 struct stat statb; in bcddate() local 356 stat(file, &statb); in bcddate() 357 tm = localtime(&statb.st_ctime); in bcddate()
|
/openbsd/gnu/usr.bin/perl/ |
H A D | unixish.h | 123 int afstat(int fd, struct stat *statb);
|
/openbsd/sbin/fsck_ffs/ |
H A D | setup.c | 86 struct stat statb; in setup() local 115 if (fstat(fsreadfd, &statb) == -1) { in setup() 120 if (!S_ISCHR(statb.st_mode)) { in setup()
|
/openbsd/sbin/fsck_ext2fs/ |
H A D | setup.c | 73 struct stat statb; in setup() local 91 if (fstat(fsreadfd, &statb) == -1) { in setup() 95 if (!S_ISCHR(statb.st_mode)) { in setup()
|
/openbsd/sys/dev/isa/ |
H A D | if_eg.c | 158 egreadPCBstat(struct eg_softc *sc, u_char statb) in egreadPCBstat() argument 170 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) == statb) in egreadPCBstat()
|
/openbsd/gnu/usr.bin/cvs/diff/ |
H A D | diff3.c | 272 struct stat statb; local 418 if (stat (file[i], &statb) < 0) 423 else if (S_ISDIR(statb.st_mode))
|
/openbsd/usr.bin/rdistd/ |
H A D | server.c | 283 removefile(struct stat *statb, int silent) in removefile() argument 292 switch (statb->st_mode & S_IFMT) { in removefile()
|