This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15312] SEEK_HOLE and SEEK_DATA not exported as expected
- From: "aj at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 27 Mar 2013 15:12:27 +0000
- Subject: [Bug libc/15312] SEEK_HOLE and SEEK_DATA not exported as expected
- Auto-submitted: auto-generated
- References: <bug-15312-131 at http dot sourceware dot org/bugzilla/>
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.