NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/48751: lrintl() and llrintl() missing from libm
>Number: 48751
>Category: lib
>Synopsis: lrintl() and llrintl() missing from libm
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 16 21:35:00 +0000 2014
>Originator: Dennis Ferguson
>Release: 6.99.40
>Organization:
none at all
>Environment:
NetBSD b1.to.mistimed.ca 6.99.40 NetBSD 6.99.40 (GENERIC) #0: Sat Apr 5
14:41:28 EDT 2014
dennis%b1.to.mistimed.ca@localhost:/build/amd64/obj/sys/arch/amd64/compile/GENERIC
amd64
>Description:
The C99 functions lrintl() and llrintl() are missing from the math library.
>How-To-Repeat:
Compile the following with 'cc -o mtry mtry.c -lm' and note
that the loader fails to find the functions.
The functions are also omitted from the lrint(3) man page.
/* mtry.c */
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int
main (int argc, char * const * argv)
{
char *ep;
printf("%ld\n", lrintl(strtold(argv[1], &ep)));
printf("%lld\n", llrintl(strtold(argv[1], &ep)));
return (0);
}
>Fix:
Home |
Main Index |
Thread Index |
Old Index