Home
last modified time | relevance | path

Searched refs:stb (Results 1 – 25 of 78) sorted by path

1234

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dglob.c204 struct stat stb; in expand() local
228 else if (stat(gpath, &stb) >= 0) { in expand()
255 struct stat stb; in matchdir() local
272 if (fstat(dirp->dd_fd, &stb) < 0) in matchdir()
274 if (!S_ISDIR(stb.st_mode)) { in matchdir()
417 struct stat stb; in amatch() local
508 if (stat(gpath, &stb) == 0 && S_ISDIR(stb.st_mode)) in amatch()
H A Druserpass.c86 struct stat stb; in rnetrc() local
135 if (fstat(fileno(cfile), &stb) >= 0 && in rnetrc()
136 (stb.st_mode & 077) != 0) { in rnetrc()
153 if (fstat(fileno(cfile), &stb) >= 0 && in rnetrc()
154 (stb.st_mode & 077) != 0) { in rnetrc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c999 struct stat stb; in verifydir() local
1144 struct stat stb; in source() local
1159 if (fstat(f, &stb) < 0) in source()
1169 rsource(name, &stb); in source()
1192 mtime = stb.st_mtime; in source()
1193 atime = stb.st_atime; in source()
1218 (uint_t)(stb.st_mode & 07777), (longlong_t)stb.st_size, in source()
1258 size = stb.st_size; in source()
1413 struct stat stb; in sink() local
1443 if (stat(targ, &stb) == 0 && (stb.st_mode & S_IFMT) == S_IFDIR) in sink()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c506 struct stat stb; in dodcolon() local
515 if (stat(stamp, &stb) < 0) { in dodcolon()
520 printf("%s: %d\n", stamp, stb.st_mtime); in dodcolon()
523 lastmod = stb.st_mtime; in dodcolon()
563 struct stat stb; in cmptime() local
591 switch (stb.st_mode & S_IFMT) { in cmptime()
596 rcmptime(&stb); in cmptime()
604 if (stb.st_mtime > lastmod) in cmptime()
657 struct stat stb; in notify() local
674 if (fstat(fd, &stb) < 0) { in notify()
[all …]
H A Dexpand.c255 struct stat stb; local
261 if (!expany || stat(path, &stb) >= 0) {
291 struct stat stb; local
301 if (fstat(dirp->dd_fd, &stb) < 0)
303 if (!ISDIR(stb.st_mode)) {
454 struct stat stb; local
521 if (stat(path, &stb) == 0 && ISDIR(stb.st_mode))
H A Dserver.c316 struct stat stb; in sendf() local
340 if ((stb.st_mode & S_IFMT) == S_IFREG && stb.st_nlink > 1) in sendf()
447 opts, stb.st_mode & 07777, stb.st_size, stb.st_mtime, in sendf()
505 stb.st_mode & 07777, stb.st_size, stb.st_mtime, in sendf()
728 struct stat stb; in query() local
751 (void) sprintf(buf, "Y%ld %ld\n", stb.st_size, stb.st_mtime); in query()
774 struct stat stb; in recvf() local
1047 struct stat stb; in hardlink() local
1127 struct stat stb; in chkparent() local
1221 struct stat stb; in rmchk() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c278 struct stat stb, stl; in notify() local
287 if (stat(tty, &stb) == -1) { in notify()
291 if ((stb.st_mode & 0100) == 0) { in notify()
338 if (fstat(fd, &stb) != 0 || stb.st_uid != pwd->pw_uid) { in notify()
370 if (fstat(mbox, &stb) == -1 || lstat(name, &stl) == -1) { in notify()
380 stl.st_dev != stb.st_dev || in notify()
381 stl.st_ino != stb.st_ino || in notify()
383 stb.st_nlink != 1) { in notify()
388 timep[0] = stb.st_atime; in notify()
389 timep[1] = stb.st_mtime; in notify()
H A Din.rwhod.c363 struct stat stb; in onalrm() local
378 (void) stat(UTMPX_FILE, &stb); in onalrm()
379 entries = stb.st_size / sizeof (struct futmpx); in onalrm()
380 if ((stb.st_mtime != utmpxtime) || (entries > utmpxent)) { in onalrm()
381 utmpxtime = stb.st_mtime; in onalrm()
431 if (stat(we->we_utmp.out_line, &stb) >= 0) in onalrm()
432 we->we_idle = htonl(now - stb.st_atime); in onalrm()
/illumos-gate/usr/src/cmd/csh/
H A Dsh.c678 struct stat stb; in srcunit() local
680 if (fstat(unit, &stb) < 0 || in srcunit()
681 (stb.st_uid != uid && stb.st_gid != getgid())) { in srcunit()
1097 struct stat stb; in mailchk() local
1112 if (stat_(*vp, &stb) < 0) in mailchk()
1114 new = stb.st_mtime > time0.tv_sec; in mailchk()
1115 if (stb.st_size == 0 || stb.st_atime >= stb.st_mtime || in mailchk()
1116 (stb.st_atime <= chktim && stb.st_mtime <= chktim) || in mailchk()
H A Dsh.exec.c382 struct stat stb; in dohash() local
414 if (fstat(dirp->dd_fd, &stb) < 0 || !isdir(stb)) { in dohash()
H A Dsh.exp.c514 struct stat stb; in exp6() local
527 if ((**vp == NULL) || isa(**vp, ANYOP) && stat_(**vp, &stb)) in exp6()
549 if (stat_(ep, &stb)) { in exp6()
556 i = (stb.st_mode & S_IFMT) == S_IFREG; in exp6()
560 i = (stb.st_mode & S_IFMT) == S_IFDIR; in exp6()
564 i = stb.st_size == 0; in exp6()
572 i = stb.st_uid == uid; in exp6()
H A Dsh.glob.c177 struct stat stb; in expand() local
207 else if (lstat_(gpath, &stb) >= 0) { in expand()
234 struct stat stb; in matchdir_() local
256 if (fstat(dirp->dd_fd, &stb) < 0) in matchdir_()
258 if (!isdir(stb)) { in matchdir_()
391 struct stat stb; in amatch() local
483 if (stat_(gpath, &stb) == 0 && isdir(stb)) in amatch()
H A Dsh.sem.c513 struct stat stb; in chkclob() local
519 if (stat_(cp, &stb) < 0) in chkclob()
521 type = stb.st_mode & S_IFMT; in chkclob()
/illumos-gate/usr/src/cmd/dtrace/test/tst/sparc/pid/
H A Dtst.br.S66 stb %g0, [%fp - 4]
H A Dtst.branch.S39 stb %g0, [%fp - 4]
H A Dtst.embedded.S39 stb %g0, [%fp - 4]
/illumos-gate/usr/src/cmd/du/
H A Ddu.c284 struct stat stb, stb1; in descend() local
311 i = fstatat(curfd, curname, &stb, 0); in descend()
322 i = fstatat(curfd, curname, &stb, AT_SYMLINK_NOFOLLOW); in descend()
341 if (dflg && stb.st_dev != device) { in descend()
347 device = stb.st_dev; in descend()
362 if (Lflg || ((stb.st_mode & S_IFMT) == S_IFDIR) || in descend()
363 (stb.st_nlink > 1)) { in descend()
365 if ((rc = add_tnode(&tree, stb.st_dev, stb.st_ino)) != 1) { in descend()
384 blocks = Aflg ? stb.st_size : stb.st_blocks; in descend()
393 ((stb.st_mode & S_IFMT) != S_IFLNK)) && in descend()
[all …]
/illumos-gate/usr/src/cmd/init/
H A Dinit.c3857 struct stat stb; in st_init() local
3886 ret = fstat(st_fd, &stb); in st_init()
3893 g_state = malloc(stb.st_size); in st_init()
3899 to_be_read = stb.st_size; in st_init()
3918 g_state_sz = stb.st_size; in st_init()
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_realm.c2498 struct stat stb; local
2649 if (stat(stash_file, &stb) == 0) {
2650 if ((stb.st_mode & S_IFMT) == S_IFREG) {
/illumos-gate/usr/src/cmd/last/
H A Dlast.c131 struct stat stb; in main() local
249 (void) fstat(wtmp, &stb); in main()
250 bl = (stb.st_size + sizeof (buf)-1) / sizeof (buf); in main()
/illumos-gate/usr/src/cmd/script/
H A Dscript.c263 struct stat stb; in getmanager() local
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c693 struct stat stb; local
722 sff, smode, &stb);
725 sff, smode, &stb);
749 if (filechanged(fn, fd, &stb))
864 filechanged(fn, fd, stb) in filechanged() argument
867 struct stat *stb;
875 if (lstat(fn, stb) < 0 || stb->st_nlink != 1)
885 sta.st_dev != stb->st_dev ||
886 sta.st_ino != stb->st_ino ||
891 sta.st_gid != stb->st_gid)
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dalias.c396 struct stat stb; local
454 if (stat(map->map_file, &stb) < 0)
461 mtime = stb.st_mtime;
473 if (stat(buf, &stb) < 0 || stb.st_mtime < mtime || attimeout)
525 struct stat stb; local
543 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
544 bitset(S_IWUSR|S_IWGRP|S_IWOTH, stb.st_mode))
H A Ddeliver.c2371 struct stat stb; local
2401 stb.st_mode = 0;
2447 new_gid = stb.st_gid;
2586 new_ruid = stb.st_uid;
5235 struct stat stb; local
5279 mode = stb.st_mode;
5330 RealUid = stb.st_uid;
5370 RealGid = stb.st_gid;
5525 mode = stb.st_mode;
5551 &stb))
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c733 struct stat stb; in parse_contents() local
750 if (fstat(cnt, &stb) != 0) { in parse_contents()
754 if (stb.st_size == 0) { in parse_contents()
768 q = memchr(p, '\n', stb.st_size - off); in parse_contents()
826 (void) munmap(map, stb.st_size); in parse_contents()
848 struct stat stb; in parse_log() local
863 if (fstat(logfd, &stb) != 0) { in parse_log()
868 if (stb.st_size == 0) { in parse_log()
885 realend = stb.st_size; in parse_log()
898 (long)(stb.st_size - realend)); in parse_log()
[all …]

1234