From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FBD715813A for ; Tue, 14 Jan 2025 04:38:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8534CE0819; Tue, 14 Jan 2025 04:38:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6927DE0819 for ; Tue, 14 Jan 2025 04:38:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A79003406BF for ; Tue, 14 Jan 2025 04:38:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCFFF2146 for ; Tue, 14 Jan 2025 04:38:21 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1736184500.6a8c9e4621d3df8277eae4f4a7d9fed5effd2d63.floppym@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: tests/, / X-VCS-Repository: proj/sandbox X-VCS-Files: configure.ac tests/creat64-0.c tests/fopen64-0.c tests/mkostemp-0.c tests/mkostemp64-0.c tests/mkostemps-0.c tests/mkostemps64-0.c tests/mkstemp-0.c tests/mkstemp64-0.c tests/mkstemps-0.c tests/mkstemps64-0.c tests/open64-0.c tests/openat-0.c tests/openat64-0.c tests/truncate64-0.c tests/utimensat-0.c tests/utimensat64-0.c X-VCS-Directories: / tests/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 6a8c9e4621d3df8277eae4f4a7d9fed5effd2d63 X-VCS-Branch: master Date: Tue, 14 Jan 2025 04:38:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 71897834-2c4c-446c-9779-7b49b8aec19e X-Archives-Hash: e2d6723323221d536fe7cf4bc14a7a6b Message-ID: <20250114043821.Fc_dDoPk7ORSSPof3iV-oMeXnOtERV3iTlQ2rUnxjsw@z> commit: 6a8c9e4621d3df8277eae4f4a7d9fed5effd2d63 Author: Mike Gilbert gentoo org> AuthorDate: Mon Jan 6 17:26:54 2025 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon Jan 6 17:28:20 2025 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=6a8c9e46 tests: replace _LARGEFILE64_SOURCE with _FILE_OFFSET_BITS=64 Signed-off-by: Mike Gilbert gentoo.org> configure.ac | 2 ++ tests/creat64-0.c | 18 ++---------------- tests/fopen64-0.c | 18 ++---------------- tests/mkostemp-0.c | 2 ++ tests/mkostemp64-0.c | 18 ++---------------- tests/mkostemps-0.c | 2 ++ tests/mkostemps64-0.c | 22 ++-------------------- tests/mkstemp-0.c | 2 ++ tests/mkstemp64-0.c | 15 ++------------- tests/mkstemps-0.c | 2 ++ tests/mkstemps64-0.c | 19 ++----------------- tests/open64-0.c | 18 ++---------------- tests/openat-0.c | 2 ++ tests/openat64-0.c | 24 ++---------------------- tests/truncate64-0.c | 21 ++------------------- tests/utimensat-0.c | 2 ++ tests/utimensat64-0.c | 3 ++- 17 files changed, 34 insertions(+), 156 deletions(-) diff --git a/configure.ac b/configure.ac index f58da0b..d690440 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,8 @@ AC_CHECK_FUNCS_ONCE(m4_flatten([ unshare utime utimensat + __utimensat64 + __utimensat_time64 utimes ])) AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler], diff --git a/tests/creat64-0.c b/tests/creat64-0.c index f900c58..ebbbbfc 100644 --- a/tests/creat64-0.c +++ b/tests/creat64-0.c @@ -1,17 +1,3 @@ #define CONFIG HAVE_CREAT64 -#define FUNC creat64 -#define SFUNC "creat64" -#define FUNC_STR "\"%s\", %o" -#define FUNC_IMP file, mode -#define ARG_CNT 2 -#define ARG_USE " " - -#define process_args() \ - s = argv[i++]; \ - const char *file = f_get_file(s); \ - \ - s = argv[i++]; \ - mode_t mode = sscanf_mode_t(s); - -#define _LARGEFILE64_SOURCE -#include "test-skel-0.c" +#define _FILE_OFFSET_BITS 64 +#include "creat-0.c" diff --git a/tests/fopen64-0.c b/tests/fopen64-0.c index 2c229b9..3fee0cd 100644 --- a/tests/fopen64-0.c +++ b/tests/fopen64-0.c @@ -1,17 +1,3 @@ #define CONFIG HAVE_FOPEN64 -#define FUNC fopen64 -#define SFUNC "fopen64" -#define FUNC_STR "\"%s\", \"%s\"" -#define FUNC_IMP file, mode -#define ARG_CNT 2 -#define ARG_USE " " - -#define process_args() \ - s = argv[i++]; \ - const char *file = f_get_file(s); \ - \ - s = argv[i++]; \ - char *mode = s; - -#define _LARGEFILE64_SOURCE -#include "test-skel-0.c" +#define _FILE_OFFSET_BITS 64 +#include "fopen-0.c" diff --git a/tests/mkostemp-0.c b/tests/mkostemp-0.c index 65cf8c2..2c520b2 100644 --- a/tests/mkostemp-0.c +++ b/tests/mkostemp-0.c @@ -1,4 +1,6 @@ +#ifndef CONFIG #define CONFIG HAVE_MKOSTEMP +#endif #define FUNC mkostemp #define SFUNC "mkostemp" #define FUNC_STR "\"%s\", %#x" diff --git a/tests/mkostemp64-0.c b/tests/mkostemp64-0.c index d3c7f7c..88412bc 100644 --- a/tests/mkostemp64-0.c +++ b/tests/mkostemp64-0.c @@ -1,17 +1,3 @@ #define CONFIG HAVE_MKOSTEMP64 -#define FUNC mkostemp64 -#define SFUNC "mkostemp64" -#define FUNC_STR "\"%s\", %#x" -#define FUNC_IMP template, flags -#define ARG_CNT 2 -#define ARG_USE "