Blob
1 .TH SRC 12 .SH NAME3 src \- find source code for executable4 .SH SYNOPSIS5 .B src6 [7 .B -n8 ]9 [10 .B -s11 .I symbol12 ]13 .I file14 .B ...15 .SH DESCRIPTION16 .I Src17 examines the named18 .I files19 to find the corresponding source code, which is then sent to the editor using20 .B B21 (see22 .IR sam (1)).23 If24 .I file25 is an26 .IR rc (1)27 script, the source is the file itself.28 If29 .I file30 is an executable, the source is defined to be the single file containing the31 definition of32 .B main33 and34 .I src35 will point the editor at the line that begins the definition.36 .I Src37 uses38 .IR db (1)39 to extract the symbol table information that identifies the source.40 .PP41 .I Src42 looks for each43 .I file44 in the current directory, in45 .BR /bin ,46 and in the subdirectories of47 .BR /bin ,48 in that order.49 .PP50 The51 .B -n52 flag causes53 .B src54 to print the file name but not send it to the editor.55 The56 .B -s57 flag identifies a58 .I symbol59 other than60 .B main61 to locate.62 .SH EXAMPLES63 Find the source to the64 .B main65 routine in66 .BR /bin/ed :67 .IP68 .EX69 src ed70 .EE71 .PP72 Find the source for73 .BR strcmp :74 .IP75 .EX76 src -s strcmp rc77 .EE78 .SH SOURCE79 .B \*9/bin/src80 .SH "SEE ALSO"81 .IR db (1),82 .IR plumb (1),83 .IR sam (1).