From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26784 invoked from network); 17 Dec 2021 08:00:13 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 17 Dec 2021 08:00:13 -0000 Received: (qmail 18124 invoked by uid 550); 17 Dec 2021 08:00:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18092 invoked from network); 17 Dec 2021 08:00:10 -0000 X-Virus-Scanned: SPAM Filter at disroot.org From: =?UTF-8?q?=C3=89rico=20Nogueira?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1639727997; bh=9lfBWpC+4DNAVssiSS1MYKG4yqcRMTpovlhRcOM4M28=; h=From:To:Cc:Subject:Date; b=TD+3CXmxemGxQUMedCrMYEEvOC8pO3FvAmzWXfvTjYsCMXvMZed4su5oWclDGpQaO V3M0qjzR4KXGSP6fJNjvBHaAzuVOLUJNvWD26SDJ9esxDi2dtKLOJmnLfathVZRZmr g76/sZpd2TMvyqmPfaKeNS/gMfAoDJFzNHemcpSSaOdSZm5jsgrUQ+1L1a3q8ziZ18 vQk1NG8qohp11Sld2xjaZyLY4oBmKBx83tD/ujyVVvuTdB6b9dSlVetO2Vq6CW18xK VnRwSsTI3wR4oyBaEn9Kl7leHhwvHNB75K0Tj596ahlh4c92Q9JeWivVc2JSPfrQUJ hksLgyUs3gP1Q== To: musl@lists.openwall.com Cc: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 17 Dec 2021 04:59:43 -0300 Message-Id: <20211217075943.2167-1-ericonr@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] add SEEK_DATA and SEEK_HOLE to these are linux specific constants. glibc exposes them behind _GNU_SOURCE, but, since SEEK_* is reserved for the implementation, we can simply define them. furthermore, since they can't be used with fseek() and other functions that deal with FILE, we don't add them to . --- include/unistd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/unistd.h b/include/unistd.h index ee2dbe8a..212263a7 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -14,6 +14,8 @@ extern "C" { #define SEEK_SET 0 #define SEEK_CUR 1 #define SEEK_END 2 +#define SEEK_DATA 3 +#define SEEK_HOLE 4 #if __cplusplus >= 201103L #define NULL nullptr -- 2.34.1