• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ksh-23/ksh/src/lib/libast/misc/

Lines Matching defs:st

476 ckmagic(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st, unsigned long off)
574 num = st->st_atime;
578 num = iblocks(st);
582 num = st->st_ctime;
586 p = fmtfs(st);
592 p = fmtgid(st->st_gid);
597 num = st->st_gid;
604 p = fmtmode(st->st_mode, 0);
609 num = modex(st->st_mode);
614 num = st->st_ctime;
629 num = st->st_nlink;
633 num = st->st_size;
639 p = fmtuid(st->st_uid);
644 num = st->st_uid;
829 t = ckmagic(mp, file, b + (b > cur), end, st, num);
1038 cklang(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st)
1099 if ((st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) || match(s, "/*bin*/*") || !access(s, F_OK))
1284 if ((st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) && (!suff || suff != strchr(suff, '.')))
1555 * return the basic magic string for file,st in buf,size
1559 type(register Magic_t* mp, const char* file, struct stat* st, char* buf, char* end)
1565 if (!S_ISREG(st->st_mode))
1567 if (S_ISDIR(st->st_mode))
1572 if (S_ISLNK(st->st_mode))
1581 if (S_ISBLK(st->st_mode))
1584 sfsprintf(buf, PATH_MAX, T("block special (%s)"), fmtdev(st));
1587 if (S_ISCHR(st->st_mode))
1590 sfsprintf(buf, end - buf, T("character special (%s)"), fmtdev(st));
1593 if (S_ISFIFO(st->st_mode))
1599 if (S_ISSOCK(st->st_mode))
1606 if (!(mp->fbmx = st->st_size))
1622 if (!(s = ckmagic(mp, file, buf, end, st, 0)))
1623 s = cklang(mp, file, buf, end, st);
2392 * return the magic string for file with optional stat info st
2396 magictype(register Magic_t* mp, Sfio_t* fp, const char* file, register struct stat* st)
2403 if (!st)
2409 s = type(mp, file, st, mp->tbuf, &mp->tbuf[sizeof(mp->tbuf)-1]);
2414 if (S_ISREG(st->st_mode) && (st->st_size > 0) && (st->st_size < 128))
2417 if (!mp->fp && (st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
2418 sfprintf(mp->tmp, ", %s", S_ISDIR(st->st_mode) ? T("searchable") : T("executable"));
2419 if (st->st_mode & S_ISUID)
2420 sfprintf(mp->tmp, ", setuid=%s", fmtuid(st->st_uid));
2421 if (st->st_mode & S_ISGID)
2422 sfprintf(mp->tmp, ", setgid=%s", fmtgid(st->st_gid));
2423 if (st->st_mode & S_ISVTX)