lenny@icus.islp.ny.us (Lenny Tropiano) (01/09/90)
A few small changes were made to the source to allow a -DUNIXPC option to make configuration and setup easier on both the 3B1 and other machines. Priority: LOW -- cut here for patch -- feed this to patch(1) -- cut here for patch -- *** old/Makefile.386 Mon Jan 8 21:09:31 1990 --- Makefile.386 Sun Jan 7 15:22:41 1990 *************** *** 24,29 chmod 755 $(DEST) # install: logininit $(DEST) cp logininit $(DEST) chown root $(DEST)/logininit chgrp bin $(DEST)/logininit --- 24,30 ----- chmod 755 $(DEST) # install: logininit $(DEST) + rm -f $(DEST)/edf $(DEST)/estat cp logininit $(DEST) chown root $(DEST)/logininit chgrp bin $(DEST)/logininit *** old/Makefile.3B1 Mon Jan 8 21:09:30 1990 --- Makefile.3B1 Mon Jan 8 14:43:05 1990 *************** *** 5,11 # All rights reserved # For 3B1 running System V Release 3.5* # ! CFLAGS=-v -O -DMAXPERCENT=10 -DMAXINODES=100 LDFLAGS=-s LIBS=/lib/crt0s.o /lib/shlib.ifile DEST=/usr/lbin/ --- 5,11 ----- # All rights reserved # For 3B1 running System V Release 3.5* # ! CFLAGS=-v -O -DUNIXPC LDFLAGS=-s LIBS=/lib/crt0s.o /lib/shlib.ifile DEST=/usr/lbin/ *** old/logininit.c Mon Jan 8 21:11:42 1990 --- logininit.c Mon Jan 8 21:12:45 1990 *************** *** 19,24 ** a "Status:" tag, added the last- ** ** login code in this program to ** ** obsolete the "lastlogin" program. ** ************************************************************************** ** ** ** Program use: Program is run as information apon login called from ** --- 19,25 ----- ** a "Status:" tag, added the last- ** ** login code in this program to ** ** obsolete the "lastlogin" program. ** + ** Rev. 2.1.1 : January 8, 1990 - Added -UNIXPC for ease of setup ** ************************************************************************** ** ** ** Program use: Program is run as information apon login called from ** *************** *** 88,93 #endif #ifndef MAXINODES # define MAXINODES 500 /* warn when < 500 i-nodes free */ #endif --- 89,97 ----- #endif #ifndef MAXINODES + # ifdef UNIXPC + # define MAXINODES 100 /* warn when < 100 i-nodes free */ + # else # define MAXINODES 500 /* warn when < 500 i-nodes free */ # endif #endif *************** *** 89,94 #ifndef MAXINODES # define MAXINODES 500 /* warn when < 500 i-nodes free */ #endif #define REVERSE /* display MNTTAB in reverse */ --- 93,99 ----- # define MAXINODES 100 /* warn when < 100 i-nodes free */ # else # define MAXINODES 500 /* warn when < 500 i-nodes free */ + # endif #endif #ifdef UNIXPC *************** *** 91,97 # define MAXINODES 500 /* warn when < 500 i-nodes free */ #endif ! #define REVERSE /* display MNTTAB in reverse */ /************************************************************************/ --- 96,104 ----- # endif #endif ! #ifdef UNIXPC ! # define REVERSE /* display MNTTAB in reverse */ ! #endif /************************************************************************/ *************** *** 107,114 }; #define MEGABYTE 1048576.0 ! #define DEVFMT "/dev/r%s" /* 3B1 device format */ ! /* #define DEVFMT "%s" /* 386 device format */ /* declare all functions as nothing returned */ --- 114,125 ----- }; #define MEGABYTE 1048576.0 ! ! #ifdef UNIXPC ! # define DEVFMT "/dev/r%s" /* 3B1 device format */ ! #else ! # define DEVFMT "%s" /* 386 device format */ ! #endif /* declare all functions as nothing returned */ -- | Lenny Tropiano ICUS Software Systems lenny@icus.islp.ny.us | | {ames,pacbell,decuac,hombre,sbcs,attctc}!icus!lenny attmail!icus!lenny | +------- ICUS Software Systems -- PO Box 1; Islip Terrace, NY 11752 -------+