This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15312] SEEK_HOLE and SEEK_DATA not exported as expected


http://sourceware.org/bugzilla/show_bug.cgi?id=15312

--- Comment #3 from Andreas Jaeger <aj at suse dot de> 2013-03-27 15:12:27 UTC ---
No, I want the man pages clear enough that you know to add a define for
_GNU_SOURCE.

Try the following
#define _GNU_SOURCE 1
#include <sys/types.h>
#include <unistd.h>

void
main(void)
{
        lseek(0, 0, SEEK_DATA);
        lseek(0, 0, SEEK_HOLE);
}

have a look at /usr/include/unistd.h and read the glibc info pages about
feature test macros to learn about _GNU_SOURCE.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]