[PATCH] ffs.3: all these functions live in <strings.h>.

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

 



In most cases you'll get them transitively through <string.h>, but it's
misleading for the man page to claim that they're _in_ <string.h>, and
especially weird to claim they're in _different_ headers from each
other!

This is also true of Apple's headers, and FreeBSD (the other BSDs only
have ffs(), not its siblings).

Signed-off-by: Elliott Hughes <enh@xxxxxxxxxx>
---
 man3/ffs.3 | 6 ------
 1 file changed, 6 deletions(-)
From 2862b4c94c01fda639fc1dd1fb94479eee1712b9 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <enh@xxxxxxxxxx>
Date: Mon, 13 Nov 2023 16:46:43 -0800
Subject: [PATCH] ffs.3: all these functions live in <strings.h>.

In most cases you'll get them transitively through <string.h>, but it's
misleading for the man page to claim that they're _in_ <string.h>, and
especially weird to claim they're in _different_ headers from each
other!

This is also true of Apple's headers, and FreeBSD (the other BSDs only
have ffs(), not its siblings).

Signed-off-by: Elliott Hughes <enh@xxxxxxxxxx>
---
 man3/ffs.3 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/man3/ffs.3 b/man3/ffs.3
index 5a5e1c21c..aab5f1099 100644
--- a/man3/ffs.3
+++ b/man3/ffs.3
@@ -22,9 +22,6 @@ Standard C library
 .B #include <strings.h>
 .P
 .BI "int ffs(int " i );
-.P
-.B #include <string.h>
-.P
 .BI "int ffsl(long " i );
 .BI "int ffsll(long long " i );
 .fi
@@ -87,9 +84,6 @@ T{
 .BR ffsll ()
 T}	Thread safety	MT-Safe
 .TE
-.SH VERSIONS
-BSD systems have a prototype in
-.IR <string.h> .
 .SH STANDARDS
 .TP
 .BR ffs ()
-- 
2.42.0.869.gea05f2083d-goog


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux