83 lines · 1.1 KB · Text
RawDownload
.TH SRC 1 .SH NAMEsrc  \- find source code for executable.SH SYNOPSIS.B src[.B -n][.B -s.I symbol].I file.B ....SH DESCRIPTION.I Srcexamines the named.I filesto find the corresponding source code, which is then sent to the editor using.B B(see.IR sam (1)).If.I fileis an.IR rc (1)script, the source is the file itself.If.I fileis an executable, the source is defined to be the single file containing thedefinition of.B mainand.I srcwill point the editor at the line that begins the definition..I Srcuses.IR db (1)to extract the symbol table information that identifies the source..PP.I Srclooks for each.I filein the current directory, in.BR /bin ,and in the subdirectories of.BR /bin ,in that order..PPThe.B -nflag causes.B srcto print the file name but not send it to the editor.The.B -sflag identifies a.I symbolother than.B mainto locate..SH EXAMPLESFind the source to the.B mainroutine in.BR /bin/ed :.IP.EXsrc ed.EE.PPFind the source for.BR strcmp :.IP.EXsrc -s strcmp rc.EE.SH SOURCE.B /rc/bin/src.SH "SEE ALSO".IR db (1),.IR plumb (1),.IR sam (1).