From patchwork Sat Aug 6 10:45:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Janda X-Patchwork-Id: 9266225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F07936075A for ; Sun, 7 Aug 2016 07:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4E9927D4D for ; Sun, 7 Aug 2016 07:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D97B027F88; Sun, 7 Aug 2016 07:36:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=2.0 tests=BAYES_00, DATE_IN_PAST_12_24, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from oss.sgi.com (oss.sgi.com [192.48.182.195]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4DD7A27D4D for ; Sun, 7 Aug 2016 07:36:04 +0000 (UTC) Received: from oss.sgi.com (localhost [IPv6:::1]) by oss.sgi.com (Postfix) with ESMTP id 5C2CF7CE2; Sun, 7 Aug 2016 02:35:52 -0500 (CDT) X-Original-To: xfs@oss.sgi.com Delivered-To: xfs@oss.sgi.com Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id 829C77CDC for ; Sun, 7 Aug 2016 02:35:48 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay1.corp.sgi.com (Postfix) with ESMTP id 452908F8035 for ; Sun, 7 Aug 2016 00:35:48 -0700 (PDT) X-ASG-Debug-ID: 1470555345-0bf8157e6c536010001-NocioJ Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by cuda.sgi.com with ESMTP id kG2k0HFHiNgVuHbX (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 07 Aug 2016 00:35:46 -0700 (PDT) X-Barracuda-Envelope-From: felix.janda@posteo.de X-Barracuda-Effective-Source-IP: mout02.posteo.de[185.67.36.66] X-Barracuda-Apparent-Source-IP: 185.67.36.66 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0AFB120850 for ; Sun, 7 Aug 2016 09:35:45 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3s6XQS4DGbz104R for ; Sun, 7 Aug 2016 09:35:44 +0200 (CEST) X-Mailbox-Line: From 903a519209407e8815607e741bf24027b07408ca Mon Sep 17 00:00:00 2001 Message-Id: <903a519209407e8815607e741bf24027b07408ca.1470555003.git.felix.janda@posteo.de> In-Reply-To: References: From: Felix Janda Date: Sat, 6 Aug 2016 12:45:45 +0200 Subject: [PATCH xfsprogs 04/14] replace lstat64 by equivalent lstat To: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH xfsprogs 04/14] replace lstat64 by equivalent lstat X-Barracuda-Connect: mout02.posteo.de[185.67.36.66] X-Barracuda-Start-Time: 1470555345 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://192.48.157.11:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1303 X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.81 X-Barracuda-Spam-Status: No, SCORE=0.81 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests=DATE_IN_PAST_12_24, DATE_IN_PAST_12_24_2 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31809 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.01 DATE_IN_PAST_12_24 Date: is 12 to 24 hours before Received: date 0.80 DATE_IN_PAST_12_24_2 DATE_IN_PAST_12_24_2 X-BeenThere: xfs@oss.sgi.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig --- fsr/xfs_fsr.c | 4 ++-- include/darwin.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index 2eaf1e7..6099dc2 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -327,7 +327,7 @@ main(int argc, char **argv) for (; optind < argc; optind++) { argname = argv[optind]; - if (lstat64(argname, &sb) < 0) { + if (lstat(argname, &sb) < 0) { fprintf(stderr, _("%s: could not stat: %s: %s\n"), progname, argname, strerror(errno)); @@ -510,7 +510,7 @@ fsrallfs(char *mtab, int howlong, char *leftofffile) fs = fsbase; /* where'd we leave off last time? */ - if (lstat64(leftofffile, &sb) == 0) { + if (lstat(leftofffile, &sb) == 0) { if ( (fd = open(leftofffile, O_RDONLY)) == -1 ) { fsrprintf(_("%s: open failed\n"), leftofffile); } diff --git a/include/darwin.h b/include/darwin.h index 1666294..6d24957 100644 --- a/include/darwin.h +++ b/include/darwin.h @@ -222,7 +222,6 @@ static inline int timer_gettime (timer_t timerid, struct itimerspec *value) #include #include #define statvfs64 statfs -#define lstat64 lstat #define _PATH_MOUNTED "/etc/mtab" struct mntent