dist/0407750001450000010000000000006107423611010222 5 0distdaemon 1 0 dist/.profile1007750001450000010000000023203537724751007625 0 0 1 0 # @(#).profile 1.1 # Prototype .profile: read on login to "sh" PS1="$LOGNAME: " # Set up EXINIT (used by vi) EXINIT="set redraw" export EXINIT exec MENU dist/.news_time1006440001450000010000000000003416045373010133 0 0 1 0 dist/dist/0407750001450000010000000000006107423151007114 5 0 1 0 dist/dist/setflop.c1006600001450000010000000306303403137667010741 0 0 1 0 /* * setflop **************************************************************** * * * All rights reserved: VENTURCOM INC. 1984 * * * * This source listing is supplied in accordance with * * the Software Agreement you have with VenturCom. * * * **************************************************************** * program to intialize VENIX/PRO boot diskette with #user and serial # * * CONFIDENTIAL: PROPRIETARY TO VENTURCOM, INC. */ char string[100]; char buf[512]; #define FLOP "/dev/f0" #define BMAGIC0 0240 #define BMAGIC1 0405 #define NULOC 508L #define SNLOC 510L main(){ int n, fd, x0, x1; unsigned int s; printf("VENIX/PRO 2.0 Distribution Initialization program\n\n"); printf("Place VENIX/PRO Installation Boot Diskette in drive 0\n"); printf("Type return when ready ..."); while (getchar() != '\n'); if ((fd = open(FLOP,2)) < 0){ printf("Can't open %s\n",FLOP); exit(1); } sn: printf("\nSerial number? "); gets(string); s = atoi(string); if (s == 0){ printf("Invalid\n"); goto sn; } printf("\nNumber of users? "); gets(string); n = atoi(string); printf("\nSetting serial number %d for %d users.\n",s,n); read(fd,&x0,sizeof(x0)); read(fd,&x1,sizeof(x1)); if (x0 != BMAGIC0 || x1 != BMAGIC1){ printf("Wrong floppy diskette: choices not set\n"); exit(1); } lseek(fd,NULOC,0); if (write(fd,&n,sizeof(n)) < 0){ printf("Write error: choices not set\n"); exit(1); } lseek(fd,SNLOC,0); if (write(fd,&s,sizeof(s)) < 0){ printf("Write error: choices not set\n"); exit(1); } printf("\nDone\n"); } dist/dist/proacc.c1006400001450000010000000573703403137671010537 0 0 1 0 /* pro 350 access code generator * March 29, 1984 **************************************************************** * * * All rights reserved: VENTURCOM INC. 1984 * * * * This source listing is supplied in accordance with * * the Software Agreement you have with VenturCom. * * * **************************************************************** * * CONFIDENTIAL: PROPRIETARY TO VENTURCOM, INC. * * proacc - VENIX/PRO access program: generate access number for * user installation * define VAX for 4.2BSD on VAX */ #include char buf[120]; #define SCRAM (17*17) /* seed constant */ #define ISMULTI 0400 /* bit set in second part of machine ID to indicate */ /* that distribution is multi-user */ #ifdef VAX typedef unsigned short int ushort; #else typedef unsigned int ushort; #endif ushort scram1(), scram2(); main(){ register char *p; ushort sn, j, k; ushort multiflag; char *p1; printf("VENIX/PRO Access Program\n"); startagain: while (1){ printf("\nSoftware ID Number? "); gets(buf); for (p = buf; *p && !isdigit(*p); ++p) ; if (*p == 0 || (sn = atoi(p)) == 0) printf("Invalid number\n"); else break; } while (1){ printf("Machine ID Number? "); gets(buf); for (p = buf; *p && !isdigit(*p); ++p) ; /* skip leading non-numeric chars */ if (*p == 0) goto bad; p1 = p; /* start of first half */ while (isdigit(*p)) ++p; if (*p == 0) goto bad; *p = 0; j = atoi(p1); for (++p ; *p && !isdigit(*p); ++p) ; /* skip leading non-numeric chars */ if (*p == 0) goto bad; p1 = p; /* start of second half */ while (isdigit(*p)) ++p; *p = 0; k = atoi(p1); break; bad: printf("Invalid: enter number in form `#####-#####'\n"); } multiflag = k & ISMULTI; if ((k & ~ISMULTI) != (scram1(j,j*sn,sn) & ~ISMULTI)){ printf("Invalid entry - please recheck and try again\n"); goto startagain; } if (multiflag) printf("(multi-user)\n"); else printf("(1-2 user)\n"); printf("Access code is %05u\n", scram2(j,j*SCRAM,SCRAM) ^ sn ^ multiflag); } ushort scram1(a, b, c) register ushort a,b,c; { ushort d; d = c+a+b; while (d){ switch(d & 03){ case 0: a += b; break; case 1: a *= b; break; case 2: b = a^c; break; case 3: b = a+c; break; } d >>= 1; c += (a ^ b); } return(a ^ b); } ushort scram2(a, b, c) register ushort a,b,c; { ushort d; d = c+a+b; while (d){ switch(d & 03){ case 3: a += b; break; case 2: a *= b; break; case 1: b = a^c; break; case 0: b = a+c; break; } d >>= 1; c += (a ^ b); } return(a ^ b); } dist/dist/proacc1007550001450000010000002600006107421427010306 0 0 1 0 >^ZZPPYYXՉYhYY-'XjP;1ݏ(ݏBݏa{[kkP@[k[PݏX|ݏhcݏ[kkP@j[k1}[kP@K[k^kݭ,P[kkP@[k.[kP@[kݭPݏ|14 /SM ޭZY[+ ЫZЫ YZYZ2~/Pkkk k1NXkk1Q  !"#$&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~1T2RBlݭRPM֭S}TTPRPTSCRQSTP}TPRP~QPQRЭP^Ь[Ь Ь\ԭIY HhX>HXZ1XZZ1ZЌYZYYЌXXXZX0XWWVWWWWPPnW#VWP֭WP4WxWP@QWV.00S,aVcc8Va0VUQnSW-WЭP0 PVVPPVP(PacЭP,a0PcXPZ ZzέPPXXPPX,a0PcXPPVVPPX(PacXP@ R]RRPPXPX,a0PcSUDeB+XZX0XWWWWPPnW֭WPP$WxWP@Z=Q#QVPPn8neVQZ 1WVXЭ1P5PPX-WVPXQ0Z Zu0epUZ1Q0ZZXXXZ1)pU1rUUURR;RRRƏR0qPURRRRR dUR R]tPTUPUP  tUPUPXWюnWW qU  PpPT~MSRRRRTRdcPSTRgPPRQRR(RSSAQBbT BCG@M [u+pPB<Vvӈb2>HQS'I[#,; :ܒX^Ь[  Ы2PʏPP>  %P[t2# ~P [ЫZޭЫZX@֫ZYY  Ѭ YZ2~PXZYk(ZYYZ2~~PX kZYX 1=ЬP^Ь[߭2~HPխ2ݭCPիЭ Ы>$^߭ݏUt$@ݬPPPj6Ь[p 0 [[S[PP[ XhhP hPXXQ P2PʏPP ЫZ ZYYЫPЫ PPkYYZ2~PY Ь[Z[ZP@;[PZZ2~3PZ ݫkԫԫԫ  Ь[t &0 ZZ?ZkZF ZjjPjkZZ Ь[[?P[PP[Y[PPXYXXI0 ZY,I Z YYjI jYZPЬ[[VxVX2YXYXYYPV QVQPWˏPZZ~YPZPZK  XZjXZWj լZjPP[KU jZKL  ^ԭլ ݬլ ݬPP ֭ЭPZ(ݭPZݭPZZZPxPPP[խѬ[Z[PPѬPЬPݬ2PPѬѬ[ЬP[PPݭݬJխ ݬЭPZYJK [Y[ZPYk[[ZZP@ЬQЬSЬ VQS PV(Pac8F8MHV`iwty ;<l|$T~L| .D "4*y0\:q\@YLHZP.`V(_~Hh toLwt@rTo`df2 !3)t0|7?FR x\d;kzqiy<7 l= &|,crt0.oproacc.ogets.oprintf.oatoi.ofilbuf.oenviron.octype.oread.odoprnt.o_locale.oflsbuf.ogetstdiobuf.ofstat.oisatty.oioctl.ofclose.oclose.odata.omalloc.obcopy.osbrk.owrite.oexit.o_exit.ocerror.osigsetmask.o___environstart_main_exit_moncontrolmcount_buf_printf_gets__ctype___atoi_scram1_scram2__iob__filbuf__doprnt_errno_fflush__getstdiobuf_read_environ__pctype__pctype_sizcerror__flsbuf__lc_radix__lc_cldflt__lc_prdflt__lc_tolower__lc_toupper__lc_thosep__lc_exl__lc_exu__lc_strtab_isatty_write_fstat_malloc_ioctl__iob_start__iob_end_fclose_close_free__fwalk__cleanup_sbrk_realloc_srchlen_realloc_bcopy_endminbrkcurbrk__atexitlist__atexitp_sigsetmask__exitdist/customers1006640001450000010000000214303363327664010132 0 0 1 0 Custno Comany Cname Caddr Ccity Cstate Czip -- -- -- -- -- -- -- 275 MAD Bob Blackmer Building 13 3350 Scott Blvd. Santa Clara Ca 95051 156 IBM Nick Comsudi 11400 Burnett Road Austin TX 78759 320 TANDY Tom Nefeldt 1300 One Tandy Ctr Fort Worth 76102 318 T.I. John King 12501 Research Blvd. Austin TX 78769 UNISOURCE UNISOURCE 16 Bent St. Cambridge MA 012142 352 Eliz Young 9 Centre St. Cambridge MA 0213925 364 Jefferies Report Ron Jefferies PO Box Santa Barbara Ca 94086 318a T.I. Ken Kershner po box 225474 ms 8303 Dallas TX 75265 318b T.I. George White 17881 Cartwright Irvine CA 92714 318c T.I. Al Whitting 359 DataPro 1805 Underwood Blvd. Delnan NJ 08075 362 Computer Faire Allen Kuchek 611 Veteran Blvd Redwood Ca 94063 361 Electronic Design Mark Brownstien 10 Mullholland Drive Hasbrouk Heights NJ 07604 360 Unix Review Ted Goldstien 119 Palo Verde Terrace Santa Cruz CA 95060 365 VC Gerry Swislow 363 MRS Inc. John Rodriques Waltham MA 253 TeleVideo Chung Min Choi 1170 Morse Ave. Sunnyvale Ca 94086 256 uuu 324 Nippon VenturCom M. Hirano 6, Rokubancho, Chiyodaku Tokyo 102 Japan  !"#$&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~1T2RBlݭRPM֭S}TTPRPTSCRQSTP}TPRP~QPQRЭP^Ь[Ь Ь\ԭ  67 % w   S  P% n  5 v     f f 5 f f 5f %fef 0 %fef 0 %%%    f efef %     f efef % )  H w( w   E w  Lw C   E  L%  C- w @w  fef % l w w | D@w^  L4 e4 && 0 %4 %  4 E w uDAB %u f& & e wx5 5  W- W00u5  .uP BwF J@B _@  o x d u        ӕ- f&@Ew ӕ0 S r@A r  f  e0 9e' E,* A ҋ D~@B @  p5w*A  fff Fe w5  @ 0   Wp `e0eӕ?w ^DCB &E * z f *  #̥-%0  E: E:  &E *  z f *  ww DuNfe& %4 ;#%  N  L  & %S  w@w DE%& %  w~ w j  |e-w\w LD@   4 4 wf x@w D  ̥9Wp @@`e     + -̥0  ww | U7 U7v t l Ae vBX 7 Z 55 a  a!RE - % w  % e rt 7  R  `e   R %  e U?  `e 7 U?  a7  x z ?r n U ew BDN E w4w $D5 @ r5N L!w5A vBB-  }ee@ !ۃ `!ւ `@ r ` w zNef  whw RN tf %wHw 8Ntf %w.f@w fwvwrwn>w f@wTwPw LFwfw4w0Nwf@wwTwpfwmZwPwmfwZw.w f@ww`w7 F@& BFVENIX/PRO 2.0 Distribution Initialization program Place VENIX/PRO Installation Boot Diskette in drive 0 Type return when ready .../dev/f0Can't open %s /dev/f0 Serial number? Invalid Number of users? Setting serial number %d for %d users. Wrong floppy diskette: choices not set Write error: choices not set Write error: choices not set Done doxfegcslLurDOX*U(null)<6\@(#)ctype.c 4.1 ULTRIX 7/3/90@(#)_locale.c 4.1 ULTRIX 7/3/90,.eE@(#)flsbuf.c 4.3 (ULTRIX) 9/dist/copy1007550001450000010000000057703731651175007066 0 0 1 0 : echo "copy - copies and read checks any RX50 floppies" while : do echo "Insert master in drive 0 (top), and blank in drive 1 (bottom)." echo "Hit return when ready ...\c" read A echo "Copying ..." dd/dev/f1 bs=10b count=79 echo "Checking ..." dd if=/dev/f1 of=/dev/null bs=10b count=79 echo "Copy another? (y or n)" read A case $A in [nN]*) exit ;; esac done dist/setflop.p1007750001450000010000000716603423116635010024 0 0 1 0   0  6 >  67 % w   S  P% n  5 v     f f 5 f f 5f %fef 0 %fef 0 %%%    f efef %     f efef % )  H w( w   E w  Lw C   E  L%  C- w @w  fef % l w w | D@w^  L4 e4 && 0 %4 %  4 E w uDAB %u f& & e wx5 5  W- W00u5  .uP BwF J@B _@  o x d u        ӕ- f&@Ew ӕ0 S r@A r  f  e0 9e' E,* A ҋ D~@B @  p5w*A  fff Fe w5  @ 0   Wp `e0eӕ?w ^DCB &E * z f *  #̥-%0  E: E:  &E *  z f *  ww DuNfe& %4 ;#%  N  L  & %S  w@w DE%& %  w~ w j  |e-w\w LD@   4 4 wf x@w D  ̥9Wp @@`e     + -̥0  ww | U7 U7v t l Ae vBX 7 Z 55 a  a!RE - % w  % e rt 7  R  `e   R %  e U?  `e 7 U?  a7  x z ?r n U ew BDN E w4w $D5 @ r5N L!w5A vBB-  }ee@ !ۃ `!ւ `@ r ` w zNef  whw RN tf %wHw 8Ntf %w.f@w fwvwrwn>w f@wTwPw LFwfw4w0Nwf@wwTwpfwmZwPwmfwZw.w f@ww`w7 F@& BFVENIX/PRO 2.0 Distribution Initialization program Place VENIX/PRO Installation Boot Diskette in drive 0 Type return when ready .../dev/f0Can't open %s /dev/f0 Serial number? Invalid Number of users? Setting serial number %d for %d users. Wrong floppy diskette: choices not set Write error: choices not set Write error: choices not set Done doxfegcslLurDOX*U(null)<600010000000000003537732357010157 0 0 1 0 dist/copy.bak1007550001450000010000000056103423117405007602 0 0 1 0 echo "Copy floppy 0 to floppy 1 and read check floppy 1" while : do echo "Insert master in drive 0, and blank in drive 1" echo -n "Hit return when ready ..." read A echo "Copying ..." dd/dev/f1 bs=10b count=79 echo "Checking ..." dd if=/dev/rf1 of=/dev/null bs=10b count=79 echo "Copy another? (y or n)" read A case $A in [nN]*) exit ;; esac done    f efef % )  H w( w   E w  Lw C   Edist/setflop.m1007550001450000010000000113703423117243010003 0 0 1 0 : xset - initialize VENIX/11 xfer diskette : Used when setting up VENIX/11 floppy distributions. : : Copyright 1984 VenturCom, Inc. : Version D.1.0 10/2/84 echo " VENIX/11 Distribution initialization program for MICRO-11 " DEV=/dev/f0.m11 echo -n "Serial number (last 4 digits with no leading zeros) ? " read SN echo -n "Number of users (1, 2, 4, 8, or 16) ? " read NU case $NU in 1|2|4|8|16) ;; *) echo "Illegal - choose 1,2,4,8, or 16" ; exit 1 ;; esac echo "Place xfer floppy in drive 0. Press return when ready." read X echo "Patching $DEV ..." adb -w $DEV <<% 1018?w $NU 1020?w $SN % echo "Done." uNfe& %4 ;#%  N  L  & %S  w@w DE%& %  w~ w j  |e-w\w LD@   4 4 wf x@w dist/setflop.m.bak1007550001450000010000000113303423117243010533 0 0 1 0 : xset - initialize VENIX/11 xfer diskette : Used when setting up VENIX/11 floppy distributions. : : Copyright 1984 VenturCom, Inc. : Version D.1.0 10/2/84 echo " VENIX/11 Distribution initialization program for MICRO-11 " DEV=/dev/f0.m11 echo "Serial number? (last 4 digits with no leading zeros) ? " read SN echo "Number of users? (1, 2, 4, 8, or 16) ? " read NU case $NU in 1|2|4|8|16) ;; *) echo "Illegal - choose 1,2,4,8, or 16" ; exit 1 ;; esac echo "Place xfer floppy in drive 0. Press return when ready." read X echo "Patching $DEV ..." adb -w $DEV <<% 1018?w $NU 1020?w $SN % echo "Done." rive 0 Type return when ready .../dev/f0Can't open %s /dev/f0 Serial number? Invalid Number of users? Setting serial number %d for %d users. Wrong floppy diskette: choices not set Write error: choices not set Write error: choices not set Done doxfegcslLurDOX*U(null)dist/MENU1006640001450000010000000023203537726721006647 0 0 1 0 CLEAR=`tput clear` while : do echo $CLEAR echo "VENTURCOM PRO DISTRIBUTION SYSTEM" echo "Choices are:\n" echo "1. Copy any RX50 diskette." echo "2. 0 0 1 0 dist/serial.v5.21007750001450000010000001273403537730436010066 0 0 1 0   0  6 >  67( % 7 5555< f/ q4 s u_*# 5%@ dl#fe %R# 5 D#   ff <%5%  5 > 6   f e O 6N $f %@-y 6@E7"A vE@7" fe $ %wf"  f eN $f %@- 6"t"E@P5 $!&f Te ! 6w7Nf T  w7 @e5:#ff % w7D 5 !0 !"Wp C0` !+  xX! !  w 7DCB 5 Ԕ @w 7 %)w-  @mȥ-  @mc d! @m& B  @mm7b %:f & ? '5 N hf %|! hg! %fe % B< @mm2ȋ ($?w ˥:W @mm @mm 7: w-+ 5 N hf %! h! %fe %z t@m7h b\ @mmRȋH B7 7 DLw ԋ 7 DC  ԋ@w 7 D ԋw 7 DCԔw~ f@w4w0w ,"w f@ww "w fwww"w 7 5 uDC5 5 5  % _ @w e@-U +U U  #U 0U  `u5 U5  . >u5 u-u @  A ZU5"Bw JU5   5 5  5     U &  C ~CB5W-o0ʋW-x0 ʋ x5ʕX05-eW-da5+Z5V S v r@ r ! f e0 9e'5e= !A #ӋC~ @ AB 5wHBA 5u`u` u`ff` Hew5  @0   Wp ` e0eӕ?7DCB@ N  @ ȕ N E& @ @ EH @ N  @ ȕ w7$2#  e-w7D w     4 44  7D4  wv   -  7ND E%B: 0##^@E<EE % @EE@E54 fe& %% ) %"E%E%    -  D v  wlD  @EE& @EE< 7*DD  #4 #  @  & %  w 7DE%wzEU4  -D #4 #  @  7 D* Wte$te   A.#tep#   @w% 4 7D # #-wVf 4@f@wNwJ(#w705 (U7(U7((Ae vB5 7  7  %"55 a  a!_E ->%( wn0 V e !e vu@t 5 r $ rf5`5` @5e vu@t 5@me@ u%| | V%|N V% d\@m@e He <U?40(U?$_@ a7   ?U 7!e_7.DE -w7C5  5N D-wA vuA-u@ f& % @ ` ݂@ ` `.f@w 7\NeTf 2%  w,70DCB 5Ԕ @wBFN& fwww#wNfwm$w.wmfw~$w wp 7r Fs:d:u:f:q/dev/f0Error opening %sError seeking to serial number structure.Error reading serial number structure.Error writing serial number structure.serial number = %d number of users = %d distributor abreviation = %.2s Usage: serial [-s serial] [-u users] [-d distributor] [-q] [-f device] --: illegal option -- : illegal option -- : option requires an argument -- : option requires an argument -- ((((( H bd8oLxfegcs0lrurh(null)$&($($#0$6( Lw C   Edist/serial1007750001450000010000000072303540651461007362 0 0 1 0 tput clear echo "Insert the XFER diskette in drive 0 (the top drive) and hit return. \c" read x s= distcode= users= while [ -z "$s" ] do echo " What are the last four digets of the serial number? \c" read s done while [ -z "$users" ] do echo " How many users? ( 2,8,16,32,64 ) \c" read users done echo " What is the Distributors code? \c" read distcode if [ -z "$distcode" ] then distcode=VC fi tput clear serial.v5.2 -s $s -u $users -d $distcode -f /dev/f0 ace xfer floppy in drive 0. Press return whedist/serial.c1004440001450000010000000516303537727134007606 0 0 1 0 /* @(#)serial.c 2.1 ***************************************************************** * * * All rights reserved: VENTURCOM INC. 1984, 1985 * * * * This source listing is supplied in accordance with * * the Software Agreement you have with VenturCom. * * * ***************************************************************** * * Program to write serial numbers etc. on XFER disks * * Flags: * -s num write serial number num * -d dist write distributor string dist (maximum 2 characters) * -u num write num into the number of users allowed field * -f dev read/write on device dev * -q quiet; don't print values * * prints current values if no flags except -f; retains current values * for flags not specified; uses device /dev/f0 if no device * specified. */ #include #include #include "sn.h" char optstring[] = "s:d:u:f:q"; char device[50] = "/dev/f0"; extern char *optarg; struct snum snbuf; main(argc, argv) int argc; char **argv; { char sflg, dflg, uflg, qflg; unsigned int sn, users; char dist[2]; int opt, size, fd; size = sizeof(struct snum); qflg = sflg = dflg = uflg = 0; while ((opt = getopt(argc, argv, optstring)) != EOF) { switch (opt) { case 's': sn = atoi(optarg); sflg++; break; case 'd': strncpy(dist, optarg, 2); dflg++; break; case 'u': uflg++; users = atoi(optarg); break; case 'f': strcpy(device, optarg); break; case 'q': qflg++; break; default: goto usage; } } if ((fd = open(device, O_RDWR)) < 0) { quit("Error opening %s", device); } if (lseek(fd, SN_OFF, 0) < 0L) { quit("Error seeking to serial number structure."); } if (read(fd, &snbuf, size) != size) { quit("Error reading serial number structure."); } if (sflg) { snbuf.s_snlow = sn & 0xff; snbuf.s_snhigh = (sn >> 8) & 0xff; } if (dflg) { strncpy(snbuf.s_dist, dist, 2); } if (uflg) { snbuf.s_nusers = users; } if (sflg || dflg || uflg) { lseek(fd, SN_OFF, 0); if (write(fd, &snbuf, size) != size) { quit("Error writing serial number structure."); } } if (!qflg) { sn = (snbuf.s_snhigh << 8) | (snbuf.s_snlow & 0xff); printf("serial number = %d\nnumber of users = %d\n\ distributor abreviation = %.2s\n", sn, snbuf.s_nusers, snbuf.s_dist); } exit(0); usage: quit("Usage: serial [-s serial] [-u users] [-d distributor] [-q] \ [-f device]\n"); } quit(s, a1) char *s, *a1; { printf(s, a1); exit(-1); } 0000010000001273403537730436010066 0 0 1 0 dist/sn.h1004440001450000010000000174103537727135006753 0 0 1 0 /* @(#)sn.h 2.1 ***************************************************************** * * * All rights reserved: VENTURCOM INC. 1984, 1985 * * * * This source listing is supplied in accordance with * * the Software Agreement you have with VenturCom. * * * ***************************************************************** * * Serial number definitions for block 0 of the XFER disk */ /* offset of serial number structure on floppy device */ #define SN_OFF 506L /* the last 6 bytes of block zero on the XFER disk contain the * following data: */ struct snum { char s_dist[2]; /* distributor abreviation */ char s_nusers; /* number of users */ char s_x; /* unused */ char s_snlow; /* low byte of serial number */ char s_snhigh; /* high byte of serial number */ }; w "w fwdist/serial.m111007750001450000010000000140003537730250007750 0 0 1 0 : xset - initialize VENIX/11 version 2 xfer diskette : Used when setting up VENIX/11 floppy distributions. : : Copyright 1984 VenturCom, Inc. : Version D.1.0 10/2/84 echo "Set serial number for VENIX/11 version 2 Micro-11 system." while : do echo "Last 4 digits of serial number? \c" read SN case $SN in [0-9][0-9][0-9][0-9]) break ;; *) echo "Must be four-digit number." esac done # remove leading 0's SN=`echo $SN | sed "s/^0*//"` while : do echo "Number of users? \c" read NU case $NU in 1|2|4|8|16) break ;; *) echo "Illegal - choose 1,2,4,8, or 16" ; exit 1 ;; esac done echo "Place xfer floppy in floppy driver 0 (top). Press return when ready." read X echo "Patching floppy ..." adb -w /dev/f0 <<% 1018?w $NU 1020?w $SN % sync echo "Done." 0##^@E<EE % @EE@E54 fe& %% ) %"E%E%    -  D v  wlD  @EE& @EE< dist/lex.yy.c1006640000000000030000000201504041245541011434 0 0rootrsrv3 1 0 # include "stdio.h" # define U(x) x # define NLSTATE yyprevious=YYNEWLINE # define BEGIN yybgin = yysvec + 1 + # define INITIAL 0 # define YYLERR yysvec # define YYSTATE (yyestate-yysvec-1) # define YYOPTIM 1 # define YYLMAX 200 # define output(c) putc(c,yyout) # define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):getc(yyin))==10?(yylineno++,yytchar):yytchar)==EOF?0:yytchar) # define unput(c) {yytchar= (c);if(yytchar=='\n')yylineno--;*yysptr++=yytchar;} # define yymore() (yymorfg=1) # define ECHO fprintf(yyout, "%s",yytext) # define REJECT { nstr = yyreject(); goto yyfussy;} int yyleng; extern char yytext[]; int yymorfg; extern char *yysptr, yysbuf[]; int yytchar; FILE *yyin = {stdin}, *yyout = {stdout}; extern int yylineno; struct yysvf { struct yywork *yystoff; struct yysvf *yyother; int *yystops;}; struct yysvf *yyestate; extern struct yysvf yysvec[], *yybgin; # define YYNEWLINE 10 yylex(){ int nstr; extern int yyprevious; while((nstr = yylook()) >= 0) yyfussy: switch(nstr){ case 0: if(yywrap()) return(0); break; Error opening %sError seeking to serial number structure.Error reading serial number structure.Error writing serial number structure.serial number = %d number of users = %d distributor abreviation = %.2s Usage: serial [-s serial] [-u users] [-d distributor] [-q] [-f device] --: illegal option -- : illegal option -- : option requires an argument -- : option requires an argument -- ((((( Hdist/proacc.o1007750001450000010000000731203403137745011662 0 0distdaemon 1 0 @ z 0  6 >  67 % w R Xa ] Nk g5 ̋` N 5 ̋̋T5  N 5E5NAupff %EAE@ + l  x̋̋ 5  x̋̋    !AWp!ff %A@xA@x  w w DCB a`5 #@E  xB `A vu@x`CpD@x`@xw, w  DCB a`5 #@E  xJ `A vu@x`CpD@x`@xw w C   E | %  C- wv @w ^  fef % wF w 2 D@w  4 e64 && %4 %  4 E w juDAB %u f& & e w.5 5  W- W00u5  .u0 BwF J@B _@  o x d u        ӕ- f&@Ew ӕ0 S r@A r  f  e0 9e' E,* At ҋ D~@B @  p5w*A  fff Fe w5  @ 0   Wp `e0eӕ?w DCB &E  z f   #̥-%0  E: E:  &E   z f   wdw TDuNfe& %4 ;#% [ 22   & %S  w@w rDE%& %  w4 w |  e-ww D@  N  * 4 4 wf x@w D  ̥9Wp @@`e     + -̥0  wFw 2 R LU7D JU7: L8 J0 Ae vB 7  55 a  a!RE - %J w % e rt 7   `e   %  e U?p p `e 7^ JU?R  a7D  < > ?6 2 U ew D E ww D5 * @ r5N !w5A vBB-  }ee@ !ۃ `!ւ `@ r `bw 0Nef 4  ww N tf d %ww Ntf d %wf@w fw4w0w,w f@wwwpfwmwPwmfww.w f@www7F@& BFh^V<VENIX/PRO Access Program Software ID Number? Invalid number Machine ID Number? Invalid: enter number in form `#####-#####' Invalid entry - please recheck and try again (multi-user) (1-2 user) Access code is %05u doxpf~e`g:cLsplpLurDOXU(null)22  AAAAAABBBBBB 6V size) { quit("Error writing serial number structure."); } } if (!qflg) { sn = (snbuf.s_snhigh << 8) | (snbuf.s_snlow & 0xff); printf("serial number = %d\nnumber of users = %d\n\ distributor abreviation = %.2s\n", sn, snbuf.s_nusers, snbuf.s_dist); } exit(0); usage: quit("Usage: serial [-s seria**************************** * * Serial number definitions for block 0 of the XFER disk */ /* offset of serial number structure on floppy device */ #define SN_OFF 506L /* the last 6 bytes of block zero on the XFER disk contain the * following data: */ struct snum { char s_dist[2]; /* distributor abreviation */ char s_nusers; /* number of users */ char s_x; /* unused */ char s_snlow; /* low byte of serial number */ char s_snhigh; /* high byte of serial number */ }; w "w fwdist/serial.m111007750001450000010000000140003537730250007750 0 0 1 0