lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ace434523f5491b9efcc7af175ad781@bfs.de>
Date:   Fri, 11 Sep 2020 12:58:08 +0000
From:   Walter Harms <wharms@....de>
To:     Alejandro Colomar <colomar.6.4.3@...il.com>,
        "mtk.manpages@...il.com" <mtk.manpages@...il.com>
CC:     "linux-man@...r.kernel.org" <linux-man@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: AW: [PATCH 22/24] membarrier.2: Note that glibc does not provide a
 wrapper

the groff commands are ducument in man 7 groff
.nf       No filling or adjusting of output-lines.
.fi       Fill output lines

(for me) a typical use is like this:
.nf

struct timeval {
    time_t      tv_sec;     /* seconds */
    suseconds_t tv_usec;    /* microseconds */
};
.fi

In the top section you prevent indenting (if any).

hth
 wh
________________________________________
Von: linux-man-owner@...r.kernel.org [linux-man-owner@...r.kernel.org] im Auftrag von Alejandro Colomar [colomar.6.4.3@...il.com]
Gesendet: Donnerstag, 10. September 2020 23:13
An: mtk.manpages@...il.com
Cc: linux-man@...r.kernel.org; linux-kernel@...r.kernel.org; Alejandro Colomar
Betreff: [PATCH 22/24] membarrier.2: Note that glibc does not provide a wrapper

Notes: I copied .nf and .fi from futex.2, but they made no visual difference.
What do they actually do?

Signed-off-by: Alejandro Colomar <colomar.6.4.3@...il.com>
---
 man2/membarrier.2 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/man2/membarrier.2 b/man2/membarrier.2
index 8825de71e..f65c6be5c 100644
--- a/man2/membarrier.2
+++ b/man2/membarrier.2
@@ -26,9 +26,15 @@
 .SH NAME
 membarrier \- issue memory barriers on a set of threads
 .SH SYNOPSIS
+.nf
+.PP
 .B #include <linux/membarrier.h>
 .PP
 .BI "int membarrier(int " cmd ", int " flags ");"
+.fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 The
 .BR membarrier ()
@@ -270,6 +276,9 @@ Examples where
 .BR membarrier ()
 can be useful include implementations
 of Read-Copy-Update libraries and garbage collectors.
+.PP
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
 .SH EXAMPLES
 Assuming a multithreaded application where "fast_path()" is executed
 very frequently, and where "slow_path()" is executed infrequently, the
--
2.28.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ