Searched refs:fmtmode (Results 1 - 18 of 18) sorted by relevance

/ast/src/lib/libast/string/
H A Dfmtmode.c34 fmtmode(register int mode, int external) function
H A Dfmtls.c68 s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->st_nlink);
/ast/src/lib/libardir/
H A Dtestar.c49 sfprintf(sfstdout, "%s %8u %8u %8llu %8llu %s %s\n", fmtmode(ent->mode, 1), ent->uid, ent->gid, ent->size, ent->offset, fmttime("%k", ent->mtime), ent->name);
/ast/src/lib/libcmd/
H A Dfds.c252 sfprintf(sp, "%02d %s%s %s %s\n", i, m, x, fmtmode(st.st_mode, 0), s);
346 sfprintf(sp, "%02d %s%s %s /dev/%s/%s/%d\n", i, m, x, fmtmode(st.st_mode, 0), s, a, port);
348 sfprintf(sp, "%02d %s%s %s /dev/%s/%s\n", i, m, x, fmtmode(st.st_mode, 0), s, a);
352 sfprintf(sp, "%02d %s%s %s /dev/inode/%u/%u\n", i, m, x, fmtmode(st.st_mode, 0), st.st_dev, st.st_ino);
H A Dcksum.c373 error(ERROR_SYSTEM|2, "%s: cannot change mode to %s", file, fmtmode(mode, 0));
375 error(ERROR_SYSTEM|1, "%s: changed mode to %s", file, fmtmode(mode, 0));
380 error(2, "%s: mode should be %s", file, fmtmode(mode, 0));
H A Dchmod.c299 sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1);
H A Drm.c275 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 ||
H A Dcp.c338 error(ERROR_SYSTEM|2, "%s: cannot reset directory mode to %s", state->path, fmtmode(st.st_mode & S_IPERM, 0) + 1);
481 fmtmode(st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO), 0) + 1;
661 error(ERROR_SYSTEM|2, "%s: cannot reset mode to %s", state->path, fmtmode(st.st_mode & state->perm, 0) + 1);
/ast/src/cmd/pax/
H A Dfile.c875 message((-2, "getfile(): path=%s name=%s mode=%s size=%I*d mtime=%s", name, f->name, fmtmode(f->st->st_mode, 1), sizeof(f->st->st_size), f->st->st_size, fmttime("%K", f->st->st_mtime)));
1187 error(1, "%s: cannot chmod to %s", f->name, fmtmode(f->perm & state.modemask, 0) + 1);
1193 error(1, "%s: mode %s not set", f->name, fmtmode(m, 0) + 1);
1213 error(1, "%s: cannot chmod to %s", f->name, fmtmode(f->st->st_mode|X_IRWXU, 1) + 1);
1273 error(1, "%s: cannot chmod to %s", name, fmtmode(p->mode & state.modemask, 0) + 1);
1279 error(1, "%s: mode %s not set", name, fmtmode(m, 0) + 1);
H A Dmisc.c771 s = fmtmode(n, 1);
794 *ps = fmtmode(n, 1);
/ast/src/lib/libast/include/
H A Dast.h278 extern char* fmtmode(int, int);
/ast/src/cmd/at/
H A Datd.c1375 error(ERROR_SYSTEM|3, "%s: invalid job host directory %s [dir.uid=%d host.uid=%d]", s, fmtmode(hs.st_mode, 0), ds.st_uid, hs.st_uid);
1385 error(3, "%s: invalid mode %s -- regular file expected", s, fmtmode(xs.st_mode, 0));
1387 error(3, "%s: invalid mode %s", s, fmtmode(xs.st_mode, 0));
1450 error(0, "invalid old job %s type %s rejected", s, fmtmode(js.st_mode, 0));
1464 error(0, "invalid old job %s mode %s rejected [dir.uid=%d job.uid=%d]", s, fmtmode(js.st_mode, 0), hs.st_uid, js.st_uid);
/ast/src/cmd/tw/
H A Dexpr.c741 s = fmtmode((mode_t)n, 0);
744 s = fmtmode((mode_t)n, 0) + 1;
/ast/src/cmd/nmake/
H A Dparse.c1954 sfprintf(sfstdout, "%02d %s%s %s %s\n", i, m, x, fmtmode(st.st_mode, 0), s);
2048 sfprintf(sfstdout, "%02d %s%s %s /dev/%s/%s/%d\n", i, m, x, fmtmode(st.st_mode, 0), s, a, port);
2050 sfprintf(sfstdout, "%02d %s%s %s /dev/%s/%s\n", i, m, x, fmtmode(st.st_mode, 0), s, a);
2054 sfprintf(sfstdout, "%02d %s%s %s /dev/inode/%u/%u\n", i, m, x, fmtmode(st.st_mode, 0), st.st_dev, st.st_ino);
/ast/src/cmd/cs/
H A Dcs.c286 sfprintf(sfstdout, "%c%s 1 %-8s %-8s %7s %s %s%s%s\n", label[0][0], fmtmode(mode, 0) + 1, fmtuid(st.st_uid), (mode & S_IROTH) ? "other" : fmtgid(ftw->statb.st_gid), port, time_buf, label[2], qual_buf, proc);
/ast/src/lib/libast/
H A DMakefile93 fmtmatch.c fmtmode.c fmtnum.c fmtperm.c fmtre.c fmttime.c fmtuid.c \
/ast/src/lib/libast/misc/
H A Dmagic.c604 p = fmtmode(st->st_mode, 0);
/ast/src/cmd/std/
H A Dls.c770 *ps = fmtmode(n, 0);

Completed in 124 milliseconds