ffsl(3) not in strings.h like manpage says

Bug #321339 reported by Peter Cordes
2
Affects Status Importance Assigned to Milestone
manpages (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: manpages

ffs/ffsl/ffsll(3) says all three bit-scan functions are available after defining _GNU_SOURCE and including strings.h. However, only POSIX ffs(int) is in strings.h. only string.h defines the GNU extension ffsl(long) and ffsll(long long).

 So either fix the manpage or the header, please.

ii libc6-dev 2.8~20080505-0ubuntu8 GNU C Library: Development Libraries and Header Files

ProblemType: Bug
Architecture: i386
Dependencies: manpages 3.01-1
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: ath_hal
Package: manpages-dev 3.01-1
PackageArchitecture: all
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: manpages
Uname: Linux 2.6.27-11-generic i686

Tags: apport-bug
Revision history for this message
Michael Kerrisk (mtk-manpages) wrote :

Upsteam maintainer here. This report does not seem to be correct. The ffs(3) page does not make this claim, and I'm not sure that it ever did. The SYNOPSIS shows that including <string.h> is needed for ffsl () and ffsll(). (and _GNU_SOURCE must also be defined).

Revision history for this message
Peter Cordes (peter-cordes) wrote :

I don't know what I was thinking when I first reported this. Maybe I didn't notice the difference between string and strings right away and got the wrong idea. Anyway, you're right, invalid bug, sorry about that.

Changed in manpages (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.