NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/53608: Patch for missing attribute(3) documentation



>Number:         53608
>Category:       toolchain
>Synopsis:       Patch for missing attribute(3) documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 14 19:05:00 +0000 2018
>Originator:     Ian Bruene
>Release:        netbsd-8.0
>Organization:
Internet Civil Engineering Institute
>Environment:
Linux Durandal 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

>Description:
The attribute(3) manpage does not document the existence of the __printflike or __sysloglike attributes.

>How-To-Repeat:
Open a terminal and type "man 3 attribute". Alternatively run "man -l <path-to-source-tree>/share/man/man3/attribute.3".

>Fix:
--- /home/ian/Documents/netbsd-src/src/share/man/man3/attribute.3	2018-09-14 13:48:52.571162571 -0500
+++ "/home/ian/Documents/netbsd-src/src/share/man/man3/attribute (orig).3"	2014-04-21 10:52:27.000000000 -0500
@@ -64,10 +64,6 @@
 .Fn __predict_true "exp"
 .Pp
 .Fn __predict_false "exp"
-.Pp
-.Fn __printflike "fmtarg" "firstvararg"
-.Pp
-.Fn __sysloglike "fmtarg" "firstvararg"
 .Sh DESCRIPTION
 As an extension to the C standard, some compilers allow non-standard
 attributes to be associated with functions, variables, or types, to
@@ -360,19 +356,6 @@
 .Ic __predict_false
 and
 .Ic __predict_true .
-.It Fn __printflike "fmtarg" "firstvararg"
-Marks a function as taking printf-like arguments.
-.Fa fmtarg
-is the index of the format string in the argument list, and
-.Fa firstvararg
-is the index of the first item of the vararg list.
-.It Fn __sysloglike "fmtarg" "firstvararg"
-Marks a function as taking syslog-like arguments.
-Allows use of the %m formatting code.
-.Fa fmtarg
-is the index of the format string in the argument list, and
-.Fa firstvararg
-is the index of the first item of the vararg list.
 .El
 .Sh SEE ALSO
 .Xr clang 1 ,



Home | Main Index | Thread Index | Old Index