shithub: riscv

Download patch

ref: 1bd3ace9e70f3122d2dd2a5e091703c8a65170a3
parent: 81b1fc5a1268bca74e854ebe4850c0c1b8b69ff3
author: aiju <devnull@localhost>
date: Thu Aug 25 19:39:07 EDT 2016

document Bfn

--- a/sys/man/1/src
+++ b/sys/man/1/src
@@ -1,6 +1,6 @@
 .TH SRC 1 
 .SH NAME
-src  \- find source code for executable
+src, Bfn  \- find source code for executable
 .SH SYNOPSIS
 .B src
 [
@@ -12,6 +12,9 @@
 ]
 .I file
 .B ...
+.PP
+.B Bfn
+.I fn
 .SH DESCRIPTION
 .I Src
 examines the named
@@ -59,6 +62,19 @@
 other than
 .B main
 to locate.
+.PP
+.I Bfn
+finds the definition of all C functions named
+.I fn
+by searching the
+.B .c
+files in the current directory.
+It prints the file name and line number of each match found and submits the match to the
+.IR plumber (4)
+if it is unique.
+.I Fn
+can be a
+.IR regexp (6).
 .SH EXAMPLES
 Find the source to the
 .B main
@@ -81,3 +97,7 @@
 .IR db (1),
 .IR plumb (1),
 .IR sam (1).
+.SH BUGS
+.I Bfn
+requires the source code to follow
+.IR style (6).