summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-11-21 07:11:14 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-11-21 07:11:14 +0000
commit2f79d357541137a60aed93e3dbcef59686f47dba (patch)
tree2fe4d0477428c3b255da60be38d806db82e0a219 /share
parent55c6eb295cfd1924cb624feef4ca7fa41ab84fc2 (diff)
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.
Diffstat (limited to 'share')
-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 *)"