libcasper(3): Correct some warnings found by mandoc

- inserting missing end of block: Sh breaks Bl
- moving content out of list: Pp
- missing comma before name: Nm cap_*
- comma in function argument: cap_*
- skipping paragraph macro: Pp after Sh
- sections out of conventional order: Sh AUTHORS

Reviewed by:	bcr
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31144
This commit is contained in:
Gordon Bergling 2021-07-12 06:16:55 +02:00
parent 517904de5c
commit 3251ad29f4
5 changed files with 13 additions and 11 deletions

View File

@ -200,8 +200,8 @@ obtained via the
function. function.
The function returns capability that provides access to opened service. The function returns capability that provides access to opened service.
Casper supports the following services in the base system: Casper supports the following services in the base system:
.Bl -tag -width "system.random" -compact -offset indent
.Pp .Pp
.Bl -tag -width "system.random" -compact -offset indent
.It system.dns .It system.dns
provides DNS libc compatible API provides DNS libc compatible API
.It system.grp .It system.grp
@ -222,6 +222,7 @@ compatible API
provides provides
.Xr syslog 3 .Xr syslog 3
compatible API compatible API
.El
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn cap_clone , .Fn cap_clone ,

View File

@ -158,6 +158,7 @@ The
limits service to one of the address families (e.g. limits service to one of the address families (e.g.
.Dv AF_INET , AF_INET6 , .Dv AF_INET , AF_INET6 ,
etc.). etc.).
.El
.Sh EXAMPLES .Sh EXAMPLES
The following example first opens a capability to casper and then uses this The following example first opens a capability to casper and then uses this
capability to create the capability to create the

View File

@ -222,6 +222,7 @@ argument contains a list of the capability rights which file should be limited t
Any number of Any number of
.Dv NV_TYPE_NULL .Dv NV_TYPE_NULL
where the name of the element is name of the file which can be opened. where the name of the element is name of the file which can be opened.
.El
.Sh EXAMPLES .Sh EXAMPLES
The following example first parse some options and then create the The following example first parse some options and then create the
.Nm system.fileargs .Nm system.fileargs
@ -279,6 +280,8 @@ The
.Nm cap_fileargs .Nm cap_fileargs
service first appeared in service first appeared in
.Fx 10.3 . .Fx 10.3 .
.Sh AUTHORS
.An Mariusz Zaborski Aq Mt oshogbo@FreeBSD.org
.Sh BUGS .Sh BUGS
The The
.Lb cap_fileargs .Lb cap_fileargs
@ -287,5 +290,3 @@ included in
is considered experimental, and should not be deployed in production is considered experimental, and should not be deployed in production
environments without careful consideration of the risks associated with environments without careful consideration of the risks associated with
the use of experimental operating system features. the use of experimental operating system features.
.Sh AUTHORS
.An Mariusz Zaborski Aq Mt oshogbo@FreeBSD.org

View File

@ -83,10 +83,9 @@
.Ft "cap_net_limit_t *" .Ft "cap_net_limit_t *"
.Fn cap_net_limit_bind "cap_net_limit_t *limit" "const struct sockaddr *sa" "socklen_t salen" .Fn cap_net_limit_bind "cap_net_limit_t *limit" "const struct sockaddr *sa" "socklen_t salen"
.Sh DESCRIPTION .Sh DESCRIPTION
.Pp
The functions The functions
.Fn cap_bind, .Fn cap_bind ,
.Fn cap_connect, .Fn cap_connect ,
.Fn cap_gethostbyname , .Fn cap_gethostbyname ,
.Fn cap_gethostbyname2 , .Fn cap_gethostbyname2 ,
.Fn cap_gethostbyaddr .Fn cap_gethostbyaddr

View File

@ -28,10 +28,10 @@
.Dt CAP_SYSLOG 3 .Dt CAP_SYSLOG 3
.Os .Os
.Sh NAME .Sh NAME
.Nm cap_syslog .Nm cap_syslog ,
.Nm cap_vsyslog .Nm cap_vsyslog ,
.Nm cap_openlog .Nm cap_openlog ,
.Nm cap_closelog .Nm cap_closelog ,
.Nm cap_setlogmask .Nm cap_setlogmask
.Nd "library for syslog in capability mode" .Nd "library for syslog in capability mode"
.Sh LIBRARY .Sh LIBRARY
@ -98,7 +98,7 @@ cap_syslog(capsyslog, LOG_NOTICE, "System logs from capability mode.");
.Xr closelog 3 , .Xr closelog 3 ,
.Xr err 3 , .Xr err 3 ,
.Xr openlog 3 , .Xr openlog 3 ,
.Xr setlogmask 3 .Xr setlogmask 3 ,
.Xr syslog 3 , .Xr syslog 3 ,
.Xr vsyslog 3 , .Xr vsyslog 3 ,
.Xr capsicum 4 , .Xr capsicum 4 ,