From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id D38EF3858D20; Wed, 9 Aug 2023 15:25:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D38EF3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691594706; bh=puET5BirrtT7DnL5BIUVaJoS0XDzoFWR+e1aOnN7lTw=; h=From:To:Subject:Date:From; b=muocG6ktxIBXN5/rwvAKJ/KJ6RKKB4sn7n64YyDTcTHNcQ+nud/90Xddh+J8L0hJQ NqIa000OCKv4SXZDESKMmOUHPF3YcnOtZMbn5ZZcLW+9g7hPvM5CMRo4nLOa/SzPMQ b48CKIBXw7kBCbyZmU3SIaS0dCa839RCPFGrXkWk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] sys/unistd.h: define GNU extensions SEEK_DATA and SEEK_HOLE X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: b9e867d088935d9f0bf312e6dbf3e4976850dfd3 X-Git-Newrev: 07092a52e9516f0c341f7f3e5e6169c1e33b6fcc Message-Id: <20230809152506.D38EF3858D20@sourceware.org> Date: Wed, 9 Aug 2023 15:25:06 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D07092a52e95= 16f0c341f7f3e5e6169c1e33b6fcc commit 07092a52e9516f0c341f7f3e5e6169c1e33b6fcc Author: Corinna Vinschen AuthorDate: Wed Aug 9 16:51:57 2023 +0200 Commit: Corinna Vinschen CommitDate: Wed Aug 9 16:51:57 2023 +0200 sys/unistd.h: define GNU extensions SEEK_DATA and SEEK_HOLE =20 SEEK_DATA and SEEK_HOLE are GNU nonstandard extensions also present in Solaris, FreeBSD, and DragonFly BSD; they are proposed for inclusion in the next POSIX revision (Issue 8). =20 Signed-off-by: Corinna Vinschen Diff: --- newlib/libc/include/sys/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/uni= std.h index 216d779d8aef..80740770038f 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -315,6 +315,10 @@ int unlinkat (int, const char *, int); # define SEEK_SET 0 # define SEEK_CUR 1 # define SEEK_END 2 +#if __GNU_VISIBLE +# define SEEK_DATA 3 +# define SEEK_HOLE 4 +#endif =20 #include