Module Name: othersrc
Committed By: agc
Date: Thu Sep 30 22:11:59 UTC 2021
Modified Files:
othersrc/external/bsd/bufgap/dist: libgap.3
Log Message:
Update the date for this man page
Also add the explanation for the string parameters to gap_exec_string()
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 othersrc/external/bsd/bufgap/dist/libgap.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/bufgap/dist/libgap.3
diff -u othersrc/external/bsd/bufgap/dist/libgap.3:1.1 othersrc/external/bsd/bufgap/dist/libgap.3:1.2
--- othersrc/external/bsd/bufgap/dist/libgap.3:1.1 Thu Sep 30 22:01:03 2021
+++ othersrc/external/bsd/bufgap/dist/libgap.3 Thu Sep 30 22:11:59 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: libgap.3,v 1.1 2021/09/30 22:01:03 agc Exp $
+.\" $NetBSD: libgap.3,v 1.2 2021/09/30 22:11:59 agc Exp $
.\"
.\" Copyright (c) 2021 Alistair Crooks <[email protected]>
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 24, 2020
+.Dd September 30, 2021
.Dt LIBGAP 3
.Os
.Sh NAME
@@ -353,6 +353,26 @@ command in the
.Xr vi 1
editor.
.Ed
+The list of verbs for
+.Fo gap_exec_string
+.Fc
+is as follows
+.Bl -tag -width XXXLHSRHSXXX
+.It Dv lhs?
+Return the contents of the buffer gap to the left of the pointer as a byte array.
+The number of bytes is returned in the area pointed to by
+.Fa *n
+.It Dv name?
+Return the contents of the filename associated with the buffer gap as
+a byte array.
+.It Dv rhs?
+Return the contents of the buffer gap to the right of the pointer as a byte array.
+The number of bytes is returned in the area pointed to by
+.Fa *n
+.Ed
+The caller is responsible for calling
+.Xr free 3
+to release the storage allocated for these byte arrays.
.Sh SEE ALSO
.Xr agcre 1 ,
.Xr vi 1