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

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g77.f-torture/execute/
H A Du77-test.f60 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 (
[all...]
/openbsd-current/games/boggle/boggle/
H A Dword.c126 struct stat statb; local
131 if (fstat(fileno(fp), &statb) < 0) {
140 if ((dictspace = malloc(statb.st_size + 1)) == NULL) {
144 n = (long)statb.st_size;
/openbsd-current/libexec/login_token/
H A Dtokendb.c167 struct stat statb; local
179 if (stat(tt->db, &statb) == -1) {
184 if (statb.st_uid != 0 || statb.st_gid != grp->gr_gid) {
190 "Group was %u", tt->db, statb.st_uid, statb.st_gid);
196 if ((statb.st_mode & 0777) != 0640) {
202 tt->db, statb.st_mode);
/openbsd-current/libexec/talkd/
H A Dprocess.c211 struct stat statb; local
217 if (stat(ftty, &statb) == 0) {
218 if (!(statb.st_mode & S_IWGRP)) {
221 } else if (now - statb.st_atime < idle) {
222 idle = now - statb.st_atime;
/openbsd-current/usr.bin/mail/
H A Dedit.c154 struct stat statb; local
175 if (fstat(fileno(nf), &statb) == -1)
178 modtime = statb.st_mtime;
214 if (stat(tempname, &statb) == -1) {
218 if (modtime == statb.st_mtime) {
H A Dquit.c394 struct stat statb; local
411 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
/openbsd-current/usr.sbin/rbootd/
H A Dparseconf.c294 struct stat statb; local
323 if (stat(dp->d_name, &statb) == -1 ||
324 (statb.st_mode & S_IFMT) != S_IFREG)
/openbsd-current/gnu/usr.bin/perl/
H A Dunixish.h127 int afstat(int fd, struct stat *statb);
/openbsd-current/usr.sbin/lpr/lpr/
H A Dlpr.c89 static struct stat statb; variable in typeref:struct:stat
331 statb.st_dev, (unsigned long long)statb.st_ino);
572 if (fstat(fd, &statb) < 0) {
576 if (S_ISDIR(statb.st_mode)) {
580 if (!S_ISREG(statb.st_mode)) {
584 if (statb.st_size == 0) {
/openbsd-current/bin/csh/
H A Dfile.c442 struct stat statb; local
446 if (lstat(short2str(path), &statb) == 0) {
447 switch (statb.st_mode & S_IFMT) {
452 if (stat(short2str(path), &statb) == 0 && /* follow it out */
453 S_ISDIR(statb.st_mode))
462 if (statb.st_mode & 0111)
/openbsd-current/sys/arch/hppa/stand/mkboot/
H A Dmkboot.c353 struct stat statb; local
356 stat(file, &statb);
357 tm = localtime(&statb.st_ctime);
/openbsd-current/bin/ksh/
H A Dio.c223 struct stat statb; local
225 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
H A Dc_test.c363 struct stat statb; local
365 if (stat(path, &statb) == -1)
367 else if (S_ISDIR(statb.st_mode))
370 res = (statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) ?
H A Dexec.c959 struct stat statb; local
961 if (stat(path, &statb) == -1)
966 else if (mode == X_OK && (!S_ISREG(statb.st_mode) ||
967 !(statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))) {
970 err = S_ISDIR(statb.st_mode) ? EISDIR : EACCES;
1053 struct stat statb; local
1083 (stat(cp, &statb) == -1 || S_ISREG(statb.st_mode)))
H A Dhistory.c244 struct stat statb; local
254 n = fstat(shf->fd, &statb) == -1 ? 128 :
255 statb.st_size + 1;
H A Dedit.c447 struct stat statb; local
454 if ((lstat(words[0], &statb) == -1) ||
H A Deval.c1047 (stat_done = stat(Xstring(*xs, xp), &statb) == -1 \
1049 struct stat lstatb, statb; local
1061 stat_check() < 0 || !S_ISDIR(statb.st_mode)))
1071 S_ISDIR(statb.st_mode)))) {
H A Dvar.c994 struct stat statb; local
998 stat(s, &statb) == 0 && S_ISDIR(statb.st_mode))
/openbsd-current/usr.sbin/lpr/common_source/
H A Ddisplayq.c100 struct stat statb; local
148 ret = stat(LO, &statb);
151 if (statb.st_mode & S_IXUSR) {
165 if (statb.st_mode & S_IXGRP) {
/openbsd-current/gnu/usr.bin/perl/amigaos4/
H A Damigaos.c531 int afstat(int fd, struct stat *statb) argument
540 if ((result = fstat(fd, statb) >= 0))
624 memzero(statb, sizeof(statb));
626 statb->st_mode = mode;
/openbsd-current/sbin/fsck_ext2fs/
H A Dsetup.c71 struct stat statb; local
79 if (stat(dev, &statb) == -1) {
83 if (!S_ISCHR(statb.st_mode)) {
/openbsd-current/sbin/fsck_ffs/
H A Dsetup.c86 struct stat statb; local
115 if (fstat(fsreadfd, &statb) == -1) {
120 if (!S_ISCHR(statb.st_mode)) {
/openbsd-current/sys/dev/isa/
H A Dif_eg.c158 egreadPCBstat(struct eg_softc *sc, u_char statb) argument
170 if ((bus_space_read_1(bst, bsh, EG_STATUS) & EG_PCB_STAT) == statb)
/openbsd-current/gnu/usr.bin/cvs/diff/
H A Ddiff3.c274 struct stat statb;
420 if (stat (file[i], &statb) < 0)
425 else if (S_ISDIR(statb.st_mode))
272 struct stat statb; local
/openbsd-current/usr.bin/rdistd/
H A Dserver.c283 removefile(struct stat *statb, int silent) argument
292 switch (statb->st_mode & S_IFMT) {

Completed in 402 milliseconds