Xref: utzoo comp.unix.wizards:10504 comp.mail.uucp:1648 Path: utzoo!utgpu!water!watmath!clyde!att!chinet!mcdchg!nud!anasaz!chad From: chad@anasaz.UUCP (Chad R. Larson) Newsgroups: comp.unix.wizards,comp.mail.uucp Subject: L_stat file format Message-ID: <1177@anasaz.UUCP> Date: 16 Aug 88 00:52:19 GMT Reply-To: chad@dcfinc.UUCP (Chad R. Larson) Followup-To: comp.mail.uucp Distribution: na Organization: DCF Inc, Phoenix AZ Lines: 39 A couple of weeks ago I asked if anyone knew the format of the /usr/lib/uucp/L_stat file. Mine has some bogus entries in it that got there because of mis-typing a system name which causes "BAD SYSTEM" status to be stored. I wanted to be able to use a binary editor to remove the bogus entries without destroying the valid status entries. I got no pertinent replys, so I embarked on an empirical study. On the odd chance that it is useful to someone, here is the result: --------------------(include file)-------------------- /* L_stat.h - structure for /usr/lib/uucp/L_stat */ #includestruct L_stat { char system[8]; /* system name */ /* (limited to 6 chars by uucp) */ time_t attempt; /* time of last connection attempt */ time_t last_good; /* time of last successful connection */ /* (set to zero if never connected) */ short int status; /* current status code */ }; --------------------(end include file)-------------------- The file is a concatinated list of these structures. Please note my system is a Microport System V/AT 2.2, your milage may vary. -crl --------------- "I read the news today, oh boy!" --John Lennon =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | DCF, Inc. | UUCP: ...noao!mcdsun!nud!anasaz!dcfinc!chad | | 14623 North 49th Place | Ma Bell: (602) 953-1392 | | Scottsdale, AZ 85254 | Loran: N-33deg37min20sec W-111deg58min26sec | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | Disclaimer: These ARE the opinions of my employer! | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=