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

12

/netbsd-current/bin/sh/
H A Dmail.c83 struct stat statb; local
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;
H A Dcd.c88 struct stat statb; local
134 if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) {
164 struct stat statb;
194 if (lstat(stackblock(), &statb) < 0) {
H A Dexec.c129 struct stat statb; local
136 if (e == EACCES && stat(argv[0], &statb) == -1)
167 if (stat(cmdname, &statb) != -1)
574 struct stat statb; local
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
[all...]
H A Dhistedit.c622 struct stat statb; local
627 if (fstatat(dfd, entry->d_name, &statb, 0) == -1)
629 if (!S_ISREG(statb.st_mode))
H A Deval.c1586 struct stat statb; local
1590 if (stat(basename, &statb) == 0) {
1591 if (S_ISDIR(statb.st_mode))
1593 if (S_ISBLK(statb.st_mode))
1598 if ((stat(fullname, &statb) == 0)) {
1600 if (S_ISDIR(statb.st_mode) || S_ISBLK(statb.st_mode))
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/
H A Dfsaccess.c39 struct stat statb; local
45 if (stat(path, &statb) != 0)
48 if ((statb.st_mode & S_IFDIR) != 0)
50 else if ((statb.st_mode & S_IFREG) == 0)
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dfsaccess.c31 struct stat statb; local
37 if (stat(path, &statb) != 0) {
41 if ((statb.st_mode & S_IFDIR) != 0) {
43 } else if ((statb.st_mode & S_IFREG) == 0) {
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dgetusershell.c127 struct stat statb; local
155 if (fstat(fileno(fp), &statb) == -1) {
159 if ((strings = malloc((u_int)statb.st_size)) == NULL) {
163 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *));
/netbsd-current/games/boggle/boggle/
H A Dword.c138 struct stat statb; local
143 if (fstat(fileno(fp), &statb) < 0) {
152 if ((dictspace = malloc(statb.st_size + 1)) == NULL) {
156 n = (long)statb.st_size;
/netbsd-current/libexec/talkd/
H A Dprocess.c186 struct stat statb; local
207 if (stat(ftty, &statb) != 0)
210 if (!(statb.st_mode & S_IWGRP)) {
215 if (statb.st_atime > atime &&
217 atime = statb.st_atime;
/netbsd-current/usr.bin/mail/
H A Dedit.c66 struct stat statb; local
100 if (fstat(fileno(nf), &statb) < 0)
103 modtime = statb.st_mtime;
126 if (stat(tempname, &statb) < 0) {
130 if (modtime == statb.st_mtime) {
H A Dquit.c143 struct stat statb; local
175 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
/netbsd-current/sys/arch/hp300/stand/mkboot/
H A Dmkboot.c243 struct stat statb; local
248 fstat(fd, &statb);
250 ld.count = htobe32(statb.st_size);
251 if ((bp = malloc(statb.st_size)) == NULL)
253 if (read(fd, bp, statb.st_size) < 0)
257 write(to, bp, statb.st_size);
260 return statb.st_size + sizeof(ld);
299 struct stat statb; local
305 stat(name, &statb);
306 tm = localtime(&statb
[all...]
/netbsd-current/usr.bin/progress/
H A Dprogress.c89 struct stat statb; local
138 if (!zflag && !lflag && (fstat(fd, &statb) == 0)) {
139 if (S_ISFIFO(statb.st_mode)) {
145 filesize = statb.st_size;
/netbsd-current/usr.sbin/rbootd/
H A Dparseconf.c315 struct stat statb; local
343 if (stat(dp->d_name, &statb) < 0 || !S_ISREG(statb.st_mode))
/netbsd-current/external/bsd/ntp/dist/lib/isc/win32/
H A Dfsaccess.c302 struct stat statb; local
306 if (stat(path, &statb) != 0)
309 if ((statb.st_mode & S_IFDIR) != 0)
311 else if ((statb.st_mode & S_IFREG) == 0)
/netbsd-current/bin/ksh/
H A Dc_test.c427 test_stat(pathx, statb)
429 struct stat *statb;
431 return stat(pathx, statb);
450 struct stat statb; local
452 if (stat(pathx, &statb) < 0)
454 else if (S_ISDIR(statb.st_mode))
457 res = (statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
H A Dio.c211 struct stat statb; local
213 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
H A Dhistory.c264 struct stat statb; local
274 n = fstat(shf_fileno(shf), &statb) < 0 ? 128
275 : statb.st_size + 1;
952 struct stat statb; local
982 if (fstat(histfd, &statb) >= 0)
983 fchown(fd, statb.st_uid, statb.st_gid);
H A Dexec.c1020 struct stat statb; local
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
1153 && (stat(cp, &statb) < 0 || S_ISREG(statb.st_mode)))
/netbsd-current/usr.sbin/lpr/lpr/
H A Dlpr.c103 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) {
/netbsd-current/usr.sbin/lpr/common_source/
H A Ddisplayq.c100 struct stat statb; local
119 ret = stat(LO, &statb);
122 if (statb.st_mode & S_IXUSR) {
137 if (statb.st_mode & S_IXGRP) {
/netbsd-current/bin/csh/
H A Dfile.c275 struct stat statb; local
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)
/netbsd-current/sbin/fsck_lfs/
H A Dsetup.c165 struct stat statb; local
178 if (stat(dev, &statb) < 0) {
182 if (!S_ISCHR(statb.st_mode) && skipclean) {
/netbsd-current/sys/arch/hppa/stand/mkboot/
H A Dmkboot.c415 struct stat statb; local
421 stat(file, &statb);
422 tm = localtime(&statb.st_ctime);

Completed in 425 milliseconds

12