0707070000020063321006640001460001440000010544730357513170600000500000000003Size40 0707070000020062761006640001460001440000010543700360430563600000500000000046NameCTC for the UNIX PC - from THE STORE! 0707070000020063221007750001460001440000010544660357513144100000700000000171Removeecho "Removing CTC for the UNIX PC" rm -f /usr/lbin/ctc message -i "CTC has been removed.\n\nTouch to continue." 0707070000020063251007740001460001440000010535660360430607600001000000001766Installcat < to continue END read dummy BINDIR=/usr/lbin MANDIR=/usr/man for directory in ${MANDIR} ${BINDIR} do if [ ! -d ${directory} ] then echo "Creating directory ${directory}" mkdir ${directory} fi done if [ ! -s ${BINDIR}/man ] then echo "Installing primitive man(1) command in ${BINDIR}" ln man ${BINDIR}/man chmod +x ${BINDIR}/man chown bin ${BINDIR}/man chgrp bin ${BINDIR}/man fi ln ctc ${BINDIR}/ctc ln 1.ctc ${MANDIR}/1.ctc ln ctc.1 ${HOME}/Filecabinet/ctc.1 chmod +x ${BINDIR}/ctc chown bin ${BINDIR}/ctc chgrp bin ${BINDIR}/ctc message -i "CTC installation is now complete.\nA manual page is available with the man(1) command.\n\nTouch to continue." 0707070000020063141006640001460001440000010544700357513166500000600000000133Files./Size ./Name ./Remove ./Install ./Files ./MAKEcpio ./MAKEflop ./1.ctc ./ctc ./ctc.1 ./man 0707070000020063131007740001460001440000010544710357513146000001100000000040MAKEcpiocat Files | cpio -ocBv > CTC+IN 0707070000020063051007740001460001440000010544640357513055100001100000000061MAKEflopcat Files | cpio -ocBv > /dev/rfp021 dismount -f 07070700000200630410066400014600014400000105445603575131325000006000000072211.ctc CCCCTTTTCCCC((((1111)))) UUUUNNNNIIIIXXXX 5555....0000 CCCCTTTTCCCC((((1111)))) NNNNAAAAMMMMEEEE ctc - ctrace and compile a C program SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ccccttttcccc [ctrace options] files [makefile target] [make macros] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN _C_t_c traces (with _c_t_r_a_c_e(1)) and compiles the _f_i_l_e_s. It will use an existing makefile in the current directory if the _f_i_l_e is in it, otherwise a temporary makefile is created. Each _f_i_l_e must have the ....cccc suffix. If the _m_a_k_e_f_i_l_e _t_a_r_g_e_t is not given and there is a makefile in the current directory then it is assumed to be the directory name, otherwise _a._o_u_t is used. To distinguish the traced target file from the untraced one, ._t is appended to the target name. So if the target is _c_t_r_a_c_e the traced target file will be _c_t_r_a_c_e._t, and if the target is _a._o_u_t the traced target file will be _a._o_u_t._t. The _m_a_k_e _m_a_c_r_o_s are of the form _n_a_m_e=_v_a_l_u_e and are optional arguments to _m_a_k_e(1). EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS To trace and compile a program contained in a single file, instead of entering ctrace program.c >temp.c cc temp.c a.out enter ctc program.c a.out.t To trace one function in a program, enter ctc -f function file.c To trace two files in a program that has a makefile, enter ctc file1.c file2.c To do this to a specified makefile target and also define a make macro, enter ctc file1.c file2.c program CC=3bcc FFFFIIIILLLLEEEESSSS [Mm]akefile Possible makefile name. s.[Mm]akefile Possible makefile name. Page 1 (printed 12/4/85) CCCCTTTTCCCC((((1111)))) UUUUNNNNIIIIXXXX 5555....0000 CCCCTTTTCCCC((((1111)))) _t_a_r_g_e_t.mk Possible makefile name. ctc_runtime.c Ctrace run-time functions source file. ctc_runtime.o Ctrace run-time functions object file. ctc_temp.mk Temporary makefile. ctc_temp.c Temporary C file. SSSSEEEEEEEE AAAALLLLSSSSOOOO ctrace(1), make(1) BBBBUUUUGGGGSSSS The _m_a_k_e_f_i_l_e _t_a_r_g_e_t cannot contain special characters other than the underscore (_). The makefile cannot contain commands for compiling individual C files, e.g. a.o: a.c global.h cc -c a.c Let _m_a_k_e(1) use its default rule instead. You can have dependencies on header files--just do not include the compiler command, e.g. a.o: global.h AAAAUUUUTTTTHHHHOOOORRRR Joe Steffen Page 2 (printed 12/4/85) 0707070000020063031007750001460001440000010544620357513130600000400000022210ctcRY . .text. .data @.bss  .lib z z/< zN1X OQ./HJf/H#0N,HH"ЀЁ"| Ag4,HH"ЀЁ"| E&`x$j g (R f y ,R ,r` KY Nc nSBJg S# vg y vJo# r y v "| J1gL`$Y y ,R ,"nSHH#  y v D. S/(NLXrg Nb nHH# 0# n  R# "| B1 y vX v LN^Nu y ,R ,"nHH# `J9 f#  ,p`  ,cp , y ,HH`* y Sm y "hRp` . N1# rfp` 9  HH# 0Jo8 y Sm y "hR 3`. p9 3/N1X-| `RNVJfpN^Nu nJgX  fp`NV  ,cp , y ,HH`* y Sm y "hRp` . N1# rfpN^Nu 9 `NV y Sm y "hR. N^Nu. p. /N1X`NV y ,R ,".# N^NuNV./.N1 XR/NX @/N1X @ N^NuNV.N1B @.NR @ N^NuNV. /.N1TX @.N. @ N^NuNV. /.N1NX @.N @ N^NuNVJf$. /< j/<0N1Pp.N1x n N^NuNVH. /< N1RX @$HHn/< N1tPJmHn* HH/N1PJmt0.nf @f 0.ްnf`V.p/p//< N1d rf | `-Hg$0nf.N1F nA LN^Nu.N1F`ctrace-O/*ctc: version 2.3 -%c-%c-%c%s-%c '%s'-%cctc: unknown ctrace option: -%c Usage: ctrace [-beosuxPV] [C preprocessor options] [-f|v functions] [-p string] [-r file] [-l number] [-t number] [file] */ ctc: missing file argument Usage: ctc [ ctrace options ] files [ makefile target ] [ make macros ] %s.cctc_runtimerwactracectcctcctc: ctrace exit code was %d %s.mkctc: cannot get current directory name %s.mkmakefilerMakefilers.makefilers.Makefilerrctc_temp.mkw%s.br%s.t.bwa.outctc_temp.mkw%s.t: %s.t.o %s.o ctc_runtime $(CC) -N %s.t.o %s.o -lg -o %s.t ctc_runtime%s.tctc_temp.mka.SUFFIXES: .t.o .c.t.o: ctrace -N %s $< >ctc_temp.c $(CC) $(CFLAGS) -c ctc_temp.c rm ctc_temp.c mv ctc_temp.o $@ .l.t.o: ltrace $(LTRACEFLAGS) $< >ctc_temp.l $(LEX) $(LFLAGS) ctc_temp.l rm ctc_temp.l $(CC) $(CFLAGS) -c lex.yy.c rm lex.yy.c mv lex.yy.o $@ .y.t.o: ltrace $(LTRACEFLAGS) $< | yaccer $(YACCERFLAGS) >ctc_temp.y $(YACC) $(YFLAGS) ctc_temp.y rm ctc_temp.y $(CC) $(CFLAGS) -c y.tab.c rm y.tab.c mv y.tab.o $@ make-fctc_temp.mk%s.t%s makectcctcctc_temp.mk %sctc: cannot open file %s 00                        4             # .0000000000  00000000000000000000000000 000000000000000000000000000   %s%s.t%s.o ctc_runtime%s.tbad switch yylook %d %s: out of storage ..r.0707070000020063011006440001460001440000010544450357513131500000600000004237ctc.1.ig EMACS_MODES: fill .. .de DS .PP .RS .nf .. .de DE .fi .RE .PP .. .TH CTC 1 .SH NAME ctc \- ctrace and compile a C program .SH SYNOPSIS .B ctc [ctrace options] files [makefile target] [make macros] .SH DESCRIPTION .ad b .I Ctc traces (with .IR ctrace (1)) and compiles the .IR files . It will use an existing makefile in the current directory if the .I file is in it, otherwise a temporary makefile is created. Each .I file must have the .B .c suffix. .PP If the .I makefile target is not given and there is a makefile in the current directory then it is assumed to be the directory name, otherwise .I a.out is used. To distinguish the traced target file from the untraced one, .I .t is appended to the target name. So if the target is .I ctrace the traced target file will be .IR ctrace.t , and if the target is .IR a.out the traced target file will be .IR a.out.t . .PP The .I "make macros" are of the form .IR name = value and are optional arguments to .IR make (1). .SH EXAMPLES To trace and compile a program contained in a single file, instead of entering .DS I ctrace program.c >temp.c cc temp.c a.out .DE enter .DS I ctc program.c a.out.t .DE To trace one function in a program, enter .DS I ctc -f function file.c .DE To trace two files in a program that has a makefile, enter .DS I ctc file1.c file2.c .DE To do this to a specified makefile target and also define a make macro, enter .DS I ctc file1.c file2.c program CC=3bcc .DE .SH FILES .PD 0 .TP 20 [Mm]akefile Possible makefile name. .TP s.[Mm]akefile Possible makefile name. .TP .IR target .mk Possible makefile name. .TP ctc_runtime.c Ctrace run-time functions source file. .TP ctc_runtime.o Ctrace run-time functions object file. .TP ctc_temp.mk Temporary makefile. .TP ctc_temp.c Temporary C file. .PD .SH SEE ALSO ctrace(1), make(1) .SH BUGS The .I "makefile target" cannot contain special characters other than the underscore (_). .PP The makefile cannot contain commands for compiling individual C files, e.g. .DS a.o: a.c global.h cc -c a.c .DE Let .IR make (1) use its default rule instead. You can have dependencies on header files--just do not include the compiler command, e.g. .DS a.o: global.h .DE .SH AUTHOR Joe Steffen 0707070000020063001007750001460001440000010544410357513056300000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as this machine does not have many manual pages. For a list of manual pages available, list the /usr/man directory" >&2 exit 2 0707070000020063001007750001460001440000010544410357513056300001300000000000TRAILER!!!compile a C program .SH SYNOPSIS .B ctc [ctrace options] files [makefile target] [make macros] .SH DESCRIPTION .ad b .I Ctc traces (with .IR ctrace (1)) and compiles the .IR files . It will use an existing makefile in the current directory if the .I file is in it, otherwise a temporary makefile is created. Each .I file must have the .B .c suffix. .PP If the .I makefile target is not given and there is a makefile in the current directory then it is assumed to be the directory name, otherwise .I a.out is used. To distinguish the traced target file from the untraced one, .I .t is appended to the target name. So if the target is .I ctrace the traced target file will be .IR ctrace.t , and if the target is .IR a.out the traced target file will be .IR a.out.t . .PP The .I "make macros" are of the form .IR name = value and are optional arguments to .IR make (1). .SH EXAMPLES To trace and compile a program contained in a single file, instead of entering .DS I ctrace program.c >temp.c cc temp.c a.out .DE enter .DS I ctc program.c a.out.t .DE To trace one function in a program, enter .DS I ctc -f function file.c .DE To trace two files in a program that has a makefile, enter .DS I ctc file1.c file2.c .DE To do this to a specified makefile target and also define a make macro, enter .DS I ctc file1.c file2.c program CC=3bcc .DE .SH FILES .PD 0 .TP 20 [Mm]akefile Possible makefile name. .TP s.[Mm]akefile Possible makefile name. .TP .IR target .mk Possible makefile name. .TP ctc_runtime.c Ctrace run-time functions source file. .TP ctc_runtime.o Ctrace run-time functions object file. .TP ctc_temp.mk Temporary makefile. .TP ctc_temp.c Temporary C file. .PD .SH SEE ALSO ctrace(1), make(1) .SH BUGS The .I "makefile target" cannot contain special characters other than the underscore (_). .PP The makefile cannot contain commands for compiling individual C files, e.g. .DS a.o: a.c global.h cc -c a.c .DE Let .IR make (1) use its default rule instead. You can have dependencies on header files--just do not include the compiler command, e.g. .DS a.o: global.h .DE .SH AUTHOR Joe Steffen 0707070000020063001007750001460001440000010544410357513056300000400000000616manif [ $# -eq 1 ] then if [ -s /usr/man/1.$1 ] then cat /usr/man/1.$1 exit 0 else echo "$0: cannot find /usr/man/1.$1" >&2 exit 1 fi fi echo "Usage: $0 command_name Only one command name may be specified. This is not a full implementation of the man command as