|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T p ┃
Length: 784 (0x310) Types: TextFile Names: »printstat.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/cfs/printstat.c«
/* * printstat - print name and stat structure * output similar to 'ls -l' */ #include "cfs.h" printstat(name, sbuf) char *name; struct stat *sbuf; { register char *cmode; register char *ctp; char *mkmode(); char *ctime(); cmode = mkmode(sbuf -> st_mode); printf("%6d %10s %2d %3d/%-3d ", sbuf -> st_ino, cmode, sbuf -> st_nlink, sbuf -> st_uid, sbuf -> st_gid); if (*cmode == 'c' || *cmode == 'b') printf("%2d, %2d ", major(sbuf->st_rdev), minor(sbuf->st_rdev)); else printf("%6d ", sbuf->st_size); ctp = ctime (&(sbuf -> st_mtime)); printf("%12.12s %4.4s ", ctp + 4, ctp + 20); ctp = ctime (&(sbuf -> st_ctime)); printf("%12.12s %4.4s ", ctp + 4, ctp + 20); printf("%s\n", name); }