summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-11-21 07:11:13 +0000
committerdlg <dlg@openbsd.org>2016-11-21 07:11:13 +0000
commitaf07f394ecda93bd89efa036a3e1a6b8692487e0 (patch)
tree66d23ce3ddab21bfd66f523149e1922a237b3f33
parenttweak the pages based on feedback from jmc@ (diff)
downloadwireguard-openbsd-af07f394ecda93bd89efa036a3e1a6b8692487e0.tar.xz
wireguard-openbsd-af07f394ecda93bd89efa036a3e1a6b8692487e0.zip
jmc@ pointed out i forgot to fix the missing SRPL_LEAVE in the synopsis.
sprinkle some .Ft on the things that act like functions while here.
-rw-r--r--share/man/man9/SRPL_EMPTY_LOCKED.96
-rw-r--r--share/man/man9/srpl_rc_init.95
2 files changed, 9 insertions, 2 deletions
diff --git a/share/man/man9/SRPL_EMPTY_LOCKED.9 b/share/man/man9/SRPL_EMPTY_LOCKED.9
index 201873d1b58..49403832fee 100644
--- a/share/man/man9/SRPL_EMPTY_LOCKED.9
+++ b/share/man/man9/SRPL_EMPTY_LOCKED.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: SRPL_EMPTY_LOCKED.9,v 1.2 2016/11/21 01:58:55 dlg Exp $
+.\" $OpenBSD: SRPL_EMPTY_LOCKED.9,v 1.3 2016/11/21 07:11:13 dlg Exp $
.\"
.\" Copyright (c) 2015 David Gwynne <dlg@openbsd.org>
.\"
@@ -29,6 +29,7 @@
.Nd serialised singly-linked shared reference pointer list operations
.Sh SYNOPSIS
.In sys/srp.h
+.Ft int
.Fn "SRPL_EMPTY_LOCKED" "SRPL_HEAD *sl"
.Ft void *
.Fn "SRPL_FIRST_LOCKED" "SRPL_HEAD *sl"
@@ -41,18 +42,21 @@
.Fa "FIELDNAME"
.Fa "TEMP_VARNAME"
.Fc
+.Ft void
.Fo "SRPL_INSERT_HEAD_LOCKED"
.Fa "struct srpl_rc *rc"
.Fa "SRPL_HEAD *sl"
.Fa "struct TYPE *elm"
.Fa "FIELDNAME"
.Fc
+.Ft void
.Fo "SRPL_INSERT_AFTER_LOCKED"
.Fa "struct srpl_rc *rc"
.Fa "struct TYPE *listelm"
.Fa "struct TYPE *elm"
.Fa "FIELDNAME"
.Fc
+.Ft void
.Fo "SRPL_REMOVE_LOCKED"
.Fa "struct srpl_rc *rc"
.Fa "SRPL_HEAD *sl"
diff --git a/share/man/man9/srpl_rc_init.9 b/share/man/man9/srpl_rc_init.9
index a7e2332aa4a..31ebde4d82f 100644
--- a/share/man/man9/srpl_rc_init.9
+++ b/share/man/man9/srpl_rc_init.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: srpl_rc_init.9,v 1.13 2016/11/21 01:58:55 dlg Exp $
+.\" $OpenBSD: srpl_rc_init.9,v 1.14 2016/11/21 07:11:13 dlg Exp $
.\"
.\" Copyright (c) 2015 David Gwynne <dlg@openbsd.org>
.\"
@@ -41,6 +41,7 @@
.Fc
.Fn SRPL_HEAD "HEADNAME" "TYPE"
.Fn SRPL_ENTRY "TYPE"
+.Ft void
.Fn "SRPL_INIT" "SRPL_HEAD *sl"
.Ft void *
.Fn "SRPL_FIRST" "struct srp_ref *sr" "SRPL_HEAD *sl"
@@ -54,6 +55,8 @@
.Fa "SRPL_HEAD *sl"
.Fa "FIELDNAME"
.Fc
+.Ft void
+.Fn "SRPL_LEAVE" "struct srp_ref *sr"
.Fo "SRPL_RC_INITIALIZER"
.Fa "void (*ref)(void *, void *)"
.Fa "void (*unref)(void *, void *)"