public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16459] New: endian.h does not define byte-order conversion functions
@ 2014-01-16 12:52 jaak at ristioja dot ee
  2014-01-16 19:01 ` [Bug libc/16459] " joseph at codesourcery dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: jaak at ristioja dot ee @ 2014-01-16 12:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16459

            Bug ID: 16459
           Summary: endian.h does not define byte-order conversion
                    functions
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jaak at ristioja dot ee
                CC: drepper.fsp at gmail dot com

"man 3 endian" says it does, but actually it doesn't. If it would, one would be
able to take the address of such a function:

  #define _BSD_SOURCE
  #include <endian.h>

  void g() {
    uint64_t (*f)(uint64_t) = &htole64;
  }

$ gcc -Wimplicit-function-declaration test2.c -c
test.c: In function 'g':
test.c:5:3: warning: implicit declaration of function 'uint64_t'
[-Wimplicit-function-declaration]
test.c:5:14: error: 'f' undeclared (first use in this function)
test.c:5:14: note: each undeclared identifier is reported only once for each
function it appears in
test.c:5:30: error: 'htole64' undeclared (first use in this function)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-13  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16 12:52 [Bug libc/16459] New: endian.h does not define byte-order conversion functions jaak at ristioja dot ee
2014-01-16 19:01 ` [Bug libc/16459] " joseph at codesourcery dot com
2014-01-16 19:49 ` jaak at ristioja dot ee
2014-01-16 20:50   ` Ondřej Bílka
2014-01-16 20:51 ` neleai at seznam dot cz
2014-06-13  8:55 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).