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
none at all
NetBSD 6.99.40 NetBSD 6.99.40 (GENERIC) #0: Sat Apr  5 
14:41:28 EDT 2014
The C99 functions lrintl() and llrintl() are missing from the math library.
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>

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);


Home | Main Index | Thread Index | Old Index