Lines Matching refs:st

294 #define BLOCKS(st)	((state.blocksize==LS_BLOCKSIZE)?iblocks(st):(state.blocksize>LS_BLOCKSIZE)?(iblocks(st)+state.blocksize/LS_BLOCKSIZE-1)/(state.blocksize/LS_BLOCKSIZE):iblocks(st)*(LS_BLOCKSIZE/state.blocksize))
296 #define BLOCKS(st) ((state.blocksize==LS_BLOCKSIZE)?iblocks(st):(iblocks(st)*LS_BLOCKSIZE+state.blocksize-1)/state.blocksize)
460 register struct stat* st;
477 st = &ftw->statb;
482 st = 0;
512 if (st)
514 n = st->st_atime;
515 t = tmxgetatime(st);
521 if (st)
522 n = BLOCKS(st);
525 if (st)
527 n = st->st_ctime;
528 t = tmxgetctime(st);
534 if (st && (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)))
535 s = fmtdev(st);
540 if (st)
541 n = (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) ? major(idevice(st)) : major(st->st_dev);
544 if (st)
545 n = (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) ? minor(idevice(st)) : minor(st->st_dev);
585 if (st)
588 s = fmtgid(st->st_gid);
590 n = st->st_gid;
594 if (st)
595 n = st->st_ino;
606 if ((st->st_size + 1) > txtsize)
608 txtsize = roundof(st->st_size + 1, 512);
634 if (!st)
636 else if (S_ISLNK(st->st_mode))
638 else if (S_ISDIR(st->st_mode))
641 else if (S_ISDOOR(st->st_mode))
644 else if (S_ISFIFO(st->st_mode))
647 else if (S_ISSOCK(st->st_mode))
650 else if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode))
652 else if (st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
658 if (!st || !S_ISDIR(st->st_mode))
663 if (st)
664 n = st->st_mode;
669 if (st)
671 n = st->st_mtime;
672 t = tmxgetmtime(st);
682 if (st)
683 n = st->st_nlink;
690 if (st)
691 n = st->st_mode & S_IPERM;
696 if (st)
698 n = st->st_size;
725 if (st)
728 s = fmtuid(st->st_uid);
730 n = st->st_uid;