From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-eopbgr1310139.outbound.protection.outlook.com [40.107.131.139]) by sourceware.org (Postfix) with ESMTPS id 4905D3854801 for ; Fri, 19 Mar 2021 01:18:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4905D3854801 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yunqiang.su@cipunited.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QM7Mzx0hctfzYkAVhhuxB/J//hcH3h7kGXeGwsRlHpq7YSoX2RrXvIdEatzZCMMeQq17ec/WBsJyCrCckelKcdq9ZKeE3AWLIZbesWKjG1ML5JjjNGQio9XyvYGyHO8VmWHS7mgm/nD6SqHqFm/9mCW0UCDtkkIuCwPP4XeyACp+ehd4bnAeojsCOTWyM7kCHsBchDdmFyp/m3uXfUfKU1b5H1y62Guq3ocgV5MXq9JR2KCG8gN7FgTNI2jt4mwLjPMnr+vimSGn6BfrS8ohKzWxQhwCwwwPJMoWcqHidAHS528ymL4vfuzkZumCQaDKfa7cVPPkdsLZGLwNMqiloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MRX9pE9ZBVJfx/JrvItnKWOVTmUKIKJ8EpV5wAAnDro=; b=IytBteL6qFUonCcWwr0NDpIY8jpdvvQ/JeVCdiKZcQPTmgLUDVNvB9qfKXwfS0UU9rAz5jNpe269TEolUKMZDDPkcoE/RsaAJI6wNoJWrZbUtgKZ2OXnSZODv3D3ZSjT2PBJfkgVdLbsKRTfGH0nHKlhZ45EH4X3mY1/1ouMq0dS080ohjc1qTOqPS/EIbCDJIh7nFbzRGSRI33e9lumMzGVwBhBIcf2jorZkasFb4X9Oe+ucgrYqKj/vt2AYn3OavjvfOEPsM3YNpbG83gewNV3wx2TfuRCpxSDEZBWMu7H8+W3nLe/WVdO6xWZFQdVj8Mms2OmMASx9bFg169lpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cipunited.com; dmarc=pass action=none header.from=cipunited.com; dkim=pass header.d=cipunited.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cipunited.onmicrosoft.com; s=selector1-cipunited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MRX9pE9ZBVJfx/JrvItnKWOVTmUKIKJ8EpV5wAAnDro=; b=c9SRpctrehE6p7AIKtvVjcOq3T9ytyIk0cjM6nHZcVNlDD0Mj28Fp9nWpLQqstv7jmarQFfoW8l1rjoMgInZoz08AG28lMbUv4iaEbF6dooWcWEvLBytMRotjluZJbMtvqLOxOr9CMXkPdE7Fpnmtkl/2vFQxsNA39PLO1LzVNI= Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=cipunited.com; Received: from HKAPR04MB3956.apcprd04.prod.outlook.com (2603:1096:203:d5::13) by HKAPR04MB4035.apcprd04.prod.outlook.com (2603:1096:203:dc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Fri, 19 Mar 2021 01:18:52 +0000 Received: from HKAPR04MB3956.apcprd04.prod.outlook.com ([fe80::152f:4f26:f6d1:2d6f]) by HKAPR04MB3956.apcprd04.prod.outlook.com ([fe80::152f:4f26:f6d1:2d6f%3]) with mapi id 15.20.3955.018; Fri, 19 Mar 2021 01:18:52 +0000 From: YunQiang Su To: libc-alpha@sourceware.org Cc: aurelien@aurel32.net, adhemerval.zanella@linaro.org, jiaxun.yang@flygoat.com, macro@orcam.me.uk, syq@debian.org, YunQiang Su Subject: [PATCH v2 2/2] MIPS: N64, make xstat as wrapper of generic fstatat Date: Fri, 19 Mar 2021 01:18:37 +0000 Message-Id: <20210319011837.3883510-2-yunqiang.su@cipunited.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210319011837.3883510-1-yunqiang.su@cipunited.com> References: <20210319011837.3883510-1-yunqiang.su@cipunited.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [58.246.137.130] X-ClientProxiedBy: HK2PR03CA0051.apcprd03.prod.outlook.com (2603:1096:202:17::21) To HKAPR04MB3956.apcprd04.prod.outlook.com (2603:1096:203:d5::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (58.246.137.130) by HK2PR03CA0051.apcprd03.prod.outlook.com (2603:1096:202:17::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.9 via Frontend Transport; Fri, 19 Mar 2021 01:18:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f61376f9-022f-4138-77c0-08d8ea74f4d2 X-MS-TrafficTypeDiagnostic: HKAPR04MB4035: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:619; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /A24Oe/mlnET0EFTgggz6bAJ1FAU8qbQinqJY30OUi+rujXnzQPnHptiFZL9Mo6r/02Dry3msSfFGDp0x16Pe3sW2B6uA/afe0htG8SSxWmSvfVlmwQowB9p/L1wRiNbp/OhkqEDMFkqY1WKflo6Mxe7MdarkYT6GqhwkCoGQ+ZFhlbjnoWqG8uSJbmK/wJkmGXjuDa0OQMQADdqEBekY720qAfuu+voUsbw8Rhv4I9LfwkN81MtxQlO3G8yYzf9D859ZSHaFzqZhyVJNdrv1OaZlx8oFwnTt1SxWiQxcskVDTTedZSMTZKILV17uZrHTpnaWPqCf8A5Dljq1NgoWc73k1SrU8o5aNO0smqPKkY0IWkB783WN30iUJqrDe/jLmNxY4uSIBIRIx+UZ7Vri22YB7NqhGKnBRDv1nrIF91h22WH/+wKjlhVLkqqQTbg/9T5BSsO6rTnt7fHxNUaZDmO2Y46a3uzBb9vfQ/cDxR7eagjTM36YmsehNI+arQe+1a814H1Sc+u7Lp3meWvt4bcxRLvz90+T+Gosw83DcAHV9LMr662308GI49+NmlJNBQFG54soDOq/evNvBe9JdnIGpyGKeyLNF0Ylx/hzeL23RclWs9EBVQDY3QPu1z+T1r/o8F/1vrWrcznJIQSlpyUqsttGWuaqK5AH8fTR917U7imnsecsDjV8jQss/bPT6EH2by+DIUD48K4HNS2E+U9gqs96JYBPXbzJRrXsi5awUKcMRsjFpB8QdybVKpB/pKYgcLdh5o3xwl4OLONKkAEb1UF32214QFdYbvwOv5MUNSOtlia+ZpQjk9D9YSL X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HKAPR04MB3956.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(39830400003)(346002)(396003)(376002)(366004)(136003)(6512007)(956004)(316002)(38100700001)(1076003)(2616005)(69590400012)(36756003)(6486002)(107886003)(30864003)(2906002)(66476007)(52116002)(86362001)(26005)(8676002)(66946007)(6666004)(478600001)(5660300002)(6506007)(8936002)(66556008)(16526019)(6916009)(186003)(4326008)(41533002)(2004002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?oe0NprSJPxQP82K6cy2HKuBjK5Cv/aBVpjHsG5je5dXUy+PJR1TKuF0ovVlJ?= =?us-ascii?Q?Nfb0DAs8PNNISSgqMeXWkB4Vhe1kQz3WaSq21ztUopQyln8OiHsMCnyvDtwo?= =?us-ascii?Q?i7vjrGvshYguvJ8bijXlOL+upJr3BwxhFSA8c3m/8yUh4DzxeV/gw4kfUGxK?= =?us-ascii?Q?jVjx4+CbiCLHV2GjP1VZa41mXPQ3j1FS4383CBTOX9QTopQieO67IXmNK8X6?= =?us-ascii?Q?oO2QiParCXAUfzDOuTDSzdeAtT0w5uefcROApD6N4xQ7kjIZJUipHH23pyUp?= =?us-ascii?Q?bzBuhx2GfkV8sTkPHT2ebaicIIyC4faVBMLl7Usm6WahJXGDaqXdHyqhFCxN?= =?us-ascii?Q?A/Zmls5D2uQT1irBsmRcYrlF86qTWf+4UjnMrkldqEmdu9Q96IhZ+qy8XycM?= =?us-ascii?Q?diqpZwdqDHcij2WXLXDcwKN99h0seArL18wMEzAulhl8wbk38L1V/VFJP9yP?= =?us-ascii?Q?tf2nMMMunm4uIRqmalVY78GpjvyRWP3qdAJKWVrStoM/0yDTiq36nQ34ps1F?= =?us-ascii?Q?ELhF2C9T8b75tmK5HqtDu2mn3ip0n35lmnV0KHmzqAdJf/PvulNVXNeKkTA0?= =?us-ascii?Q?B3kojSi+a53RNjh10ql6B93uVHORkGq8AsFq4cRm7nV5ukqVUdVgNKjLHWgZ?= =?us-ascii?Q?caJy+MGAp90IM20r5rjNJrMjzcEQ8k/jyrmKjUwQK+FbsZdImzCK3bGPJ2g4?= =?us-ascii?Q?7L7wjfwTH61KU4IV/qRf7ham0aIs/PftZRm8+g5fTL/d/c34yFTkkoMcB1eI?= =?us-ascii?Q?3qJxgMXqq0g4ZDhx5wyBbrVf/MqXP8TVKyvuPNn4fP+ts7wMV9fhJTdwg6Ui?= =?us-ascii?Q?a3DDRDpNVkU9kuxieCAAwQqXjjMtOBzHpAW38gnqzZCyU2didfS55RS22yy3?= =?us-ascii?Q?rJjNXgP4JO9DDcaH8n9Vz432f9ekmpPxr79p5yc4rXauX1gkh2byaF9u8YhF?= =?us-ascii?Q?KWMUfrFco/p8zY3OmcgkVIuMy4CtPsanE6CSX4HvJ+Vz1DmkTyT3Wp0wL7wZ?= =?us-ascii?Q?bI46O/AFxug/a+QowwS0rKkrDbbc70bjGrYaXHmoFiNq6YH1dMiDj4rplmsM?= =?us-ascii?Q?h+fJTZTgNIeUqhQC3Kq7fndOw2aLi5WaJ0hdREDJQPbTmDXe7c0gl6BcDvXp?= =?us-ascii?Q?+iZ9P1MriLXSPxnU+Yt3soWKdbIqfbaB6vq5E252OLbJtH1iIxrNcDJ0PR4a?= =?us-ascii?Q?Ly5jWivIspMjhIZIzp7DrbPglKOBdaKhHfyprO+gZUbQDrTYRlYLHcToxwYu?= =?us-ascii?Q?R2y04beMkGidx1IYIxcXDtN2D1WJWbJq4CuGHhCTn4nq5IO+H8MXjO3rsPHj?= =?us-ascii?Q?ybW5jl6/MxgbdCf4eAZPNIGX?= X-OriginatorOrg: cipunited.com X-MS-Exchange-CrossTenant-Network-Message-Id: f61376f9-022f-4138-77c0-08d8ea74f4d2 X-MS-Exchange-CrossTenant-AuthSource: HKAPR04MB3956.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2021 01:18:51.8928 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e31cf5b5-ee69-4d5f-9c69-edeeda2458c0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mQLMZj/G7NfaUsvGp0Q4hIl1pMjOdXW4YBZwfS4NfuELbNbPo2C/RXSAuIhvtSyWecfpjLQeFHl2nIYVeXQUHo5KDzlRN/AFqoVq9kD65F8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKAPR04MB4035 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 01:19:01 -0000 fxstatat as wrapper of fstatat fxstatat64 as wrapper of fstatat64 fxstat, lxstat, xstat as wrapper of fxstatat fxstat64, lxstat64, xstat64 as wrapper of fxstatat64 --- .../unix/sysv/linux/mips/mips64/n64/fxstat.c | 27 +++++++++++++ .../sysv/linux/mips/mips64/n64/fxstat64.c | 28 ++++++++++++++ .../sysv/linux/mips/mips64/n64/fxstatat.c | 38 +++++++++++++++++++ .../sysv/linux/mips/mips64/n64/fxstatat64.c | 34 +++++++++++++++++ .../unix/sysv/linux/mips/mips64/n64/lxstat.c | 27 +++++++++++++ .../sysv/linux/mips/mips64/n64/lxstat64.c | 27 +++++++++++++ .../unix/sysv/linux/mips/mips64/n64/xstat.c | 27 +++++++++++++ .../unix/sysv/linux/mips/mips64/n64/xstat64.c | 28 ++++++++++++++ 8 files changed, 236 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat64.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat64.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat64.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/xstat.c create mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/xstat64.c diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat.c new file mode 100644 index 0000000000..037b2bb080 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat.c @@ -0,0 +1,27 @@ +/* fxstat using old-style Unix stat system call. + Copyright (C) 1991-2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file NAME in BUF. */ +int +__fxstat (int vers, int fd, struct stat *buf) +{ + return __fxstatat(vers, fd, "", buf, AT_EMPTY_PATH); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat64.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat64.c new file mode 100644 index 0000000000..4c2d461667 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstat64.c @@ -0,0 +1,28 @@ +/* fxstat64 using 64-bit MIPS fstat system call. + Copyright (C) 1997-2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file FD in BUF. */ + +int +__fxstat64 (int vers, int fd, struct stat64 *buf) +{ + return __fxstatat64(vers, fd, "", buf, AT_EMPTY_PATH); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat.c new file mode 100644 index 0000000000..6d94f12bce --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat.c @@ -0,0 +1,38 @@ +/* Copyright (C) 2005-2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Ho hum, since fxstatat == fxstatat64 we must get rid of the + prototype or gcc will complain since they don't strictly match. */ + +#include +#include +#include +#include + +/* Get information about the file NAME relative to FD in ST. */ +int +__fxstatat (int vers, int fd, const char *file, struct stat *st, int flag) +{ + if (__builtin_expect (vers != _STAT_VER_LINUX, 0)) + { + __set_errno (EINVAL); + return -1; + } + + return __fstatat(fd, file, st, flag); + +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat64.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat64.c new file mode 100644 index 0000000000..b5b0eac92f --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/fxstatat64.c @@ -0,0 +1,34 @@ +/* Copyright (C) 2005-2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library. If not, see + . */ + +#include +#include +#include + +/* Get information about the file NAME in BUF. */ + +int +__fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag) +{ + if (__builtin_expect (vers != _STAT_VER_LINUX, 0)) + { + __set_errno (EINVAL); + return -1; + } + + return __fstatat64_time64(fd, file, st, flag); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat.c new file mode 100644 index 0000000000..43dd4e76b7 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat.c @@ -0,0 +1,27 @@ +/* lxstat using old-style Unix stat system call. + Copyright (C) 1991-2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file NAME in BUF. */ +int +__lxstat (int vers, const char *name, struct stat *buf) +{ + return __fxstatat(vers, AT_FDCWD, name, buf, AT_SYMLINK_NOFOLLOW); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat64.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat64.c new file mode 100644 index 0000000000..232878a74a --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/lxstat64.c @@ -0,0 +1,27 @@ +/* lxstat64 using 64-bit MIPS lstat system call. + Copyright (C) 1997-2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file NAME in BUF. */ +int +__lxstat64 (int vers, const char *name, struct stat64 *buf) +{ + return __fxstatat64(vers, AT_FDCWD, name, buf, AT_SYMLINK_NOFOLLOW); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat.c new file mode 100644 index 0000000000..68e62fc3b3 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat.c @@ -0,0 +1,27 @@ +/* xstat using old-style Unix stat system call. + Copyright (C) 1991-2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file NAME in BUF. */ +int +__xstat (int vers, const char *name, struct stat *buf) +{ + return __fxstatat(vers, AT_FDCWD, name, buf, 0); +} diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat64.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat64.c new file mode 100644 index 0000000000..06f9738a65 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/xstat64.c @@ -0,0 +1,28 @@ +/* xstat64 using 64-bit MIPS stat system call. + Copyright (C) 1991-2020 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +/* Get information about the file NAME in BUF. */ + +int +__xstat64 (int vers, const char *name, struct stat64 *buf) +{ + return __fxstatat64(vers, AT_FDCWD, name, buf, 0); +} -- 2.31.0