From b4be4f08bb221a581ca65cdbbaca1b0cf6b8df3d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 27 Mar 2013 21:45:43 +0100 Subject: [PATCH] lseek.2: _GNU_SOURCE must be defined to get SEEK_DATE and SEEK_HOLE definitions See http://sourceware.org/bugzilla/show_bug.cgi?id=15312 Reported-by: Andreas Jaeger Signed-off-by: Michael Kerrisk --- man2/lseek.2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/man2/lseek.2 b/man2/lseek.2 index e10eb4a70..4d7b671be 100644 --- a/man2/lseek.2 +++ b/man2/lseek.2 @@ -44,7 +44,7 @@ .\" Modified 2003-08-21 by Andries Brouwer .\" 2011-09-18, mtk, Added SEEK_DATA + SEEK_HOLE .\" -.TH LSEEK 2 2011-09-25 "Linux" "Linux Programmer's Manual" +.TH LSEEK 2 2013-03-27 "Linux" "Linux Programmer's Manual" .SH NAME lseek \- reposition read/write file offset .SH SYNOPSIS @@ -150,6 +150,15 @@ it can be considered to consist of data that is a sequence of zeros). .\" https://lkml.org/lkml/2011/4/22/79 .\" http://lwn.net/Articles/440255/ .\" http://blogs.oracle.com/bonwick/entry/seek_hole_and_seek_data + +The +.BR _GNU_SOURCE +feature test macro must be defined in order to obtain the definitions of +.BR SEEK_DATA +and +.BR SEEK_HOLE +from +.IR . .SH RETURN VALUE Upon successful completion, .BR lseek ()