L_stat file format
Chad R. Larson
chad at anasaz.UUCP
Tue Aug 16 10:52:19 AEST 1988
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 */
#include <sys/types.h>
struct 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! |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.unix.wizards
mailing list