|
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 - metrics - downloadIndex: T s
Length: 1162 (0x48a) Types: TextFile Names: »showpath.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen └─⟦this⟧ »cph85dist/rman/daemon/showpath.c«
#ifndef lint static char RCSid[] = "$Header: showpath.c,v 1.2 85/07/16 11:12:04 broome Exp $"; #endif /* * $Log: showpath.c,v $ * Revision 1.2 85/07/16 11:12:04 broome * Revised output format, allows path for a given section to be shown. * * */ #include "defs.h" /* * Print out the entire search path used. */ path (argc, argv) int argc; char **argv; { SEC *sec; DIR *dir; char *suff; int d, s; if (argc == 2) printf ("121-search path for section %s:\r\n", *++argv); else printf ("121-All sections searched (in order):\r\n"); for (sec = sections; sec; sec = sec->next) { if (argc == 2 && strcmp (sec->name, *argv)) continue; printf ("120-Section: %s\n", sec->name); for (d = 0; dir = sec->dirs[d]; d++) { printf ("120-\tMan dir: %s\r\n120-\tCat dir: %s\r\n", dir->man, dir->cat); printf ("120-\t\tSuffixes: "); for (s = 0; suff = dir->suff[s]; s++) printf ("%s ", suff); puts ("\r"); } } printf ("122 That's all.\r\n"); (void) fflush (stdout); }