From patchwork Sun Feb 9 20:20:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37822 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 25827 invoked by alias); 9 Feb 2020 20:21:04 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 25755 invoked by uid 89); 9 Feb 2020 20:21:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sCfDPvt3cymdlNtOrhKTHIzoYU050W5XQyNeSiU3acI=; b=gZuipp5Bc55nHLP6LocSD1eqBtf8wIaw6H81cMzedeFI3JqXA4+lBMQvbL4uf+UgmvHuT3 c/19rSOiIXt7b3UzkDR2qdQ8mwLU0qs5arNHk9mnoUpNlJn3gWmpvrR0uSNpAsF/IzC5Ei NrP67flIzukEN3l3mfNKUUHukKUazys= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 18/26] Linux: getdents64 syscall number is always available on MIPS In-Reply-To: References: X-From-Line: f9a778269a7bcac0dde71f96958fe66311eb1022 Mon Sep 17 00:00:00 2001 Message-Id: Date: Sun, 09 Feb 2020 21:20:55 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_getdents64 is always defined, although it may not be supported at run time. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/mips/mips64/getdents64.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c index 4edf968b09..d18a5297dc 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c +++ b/sysdeps/unix/sysv/linux/mips/mips64/getdents64.c @@ -34,7 +34,6 @@ __getdents64 (int fd, void *buf, size_t nbytes) if (nbytes > INT_MAX) nbytes = INT_MAX; -#ifdef __NR_getdents64 static int getdents64_supported = true; if (atomic_load_relaxed (&getdents64_supported)) { @@ -44,7 +43,6 @@ __getdents64 (int fd, void *buf, size_t nbytes) atomic_store_relaxed (&getdents64_supported, false); } -#endif /* Unfortunately getdents64 was only wire-up for MIPS n64 on Linux 3.10. If the syscall is not available it need to fallback to the non-LFS one.