From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id BF6793853D6B; Wed, 23 Nov 2022 14:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF6793853D6B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214533; bh=00Y+77X+Lo9/wveCbeYRn23fyQE+4+BxOyY4HwDfZ80=; h=From:To:Subject:Date:From; b=LHi3GWdObD++0OINZ/C56njXXXR9TK4aMdtFFVIX9KiTPGW4L1GVoR4pg9kI4uKq5 CTwP39y0fQsOj7IHjTZw77wpQITXFm4lQfq5iBtwRplwsGM/nBGCBWfLRbw0Z1MnDM e32qEDcgxDOMLx2QT67fN+4AdVWIVUmZIDQGPxfk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] aarch64: morello: string: dummy c strlen X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: f0170f034ef6126dc5d33d77f248d1ed101a8e65 X-Git-Newrev: 1e3d999b599b3217142f334f3e26297d72d630f9 Message-Id: <20221123144213.BF6793853D6B@sourceware.org> Date: Wed, 23 Nov 2022 14:42:13 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1e3d999b599b3217142f334f3e26297d72d630f9 commit 1e3d999b599b3217142f334f3e26297d72d630f9 Author: Szabolcs Nagy Date: Tue Apr 26 08:19:02 2022 +0100 aarch64: morello: string: dummy c strlen Diff: --- sysdeps/aarch64/morello/strlen.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sysdeps/aarch64/morello/strlen.c b/sysdeps/aarch64/morello/strlen.c new file mode 100644 index 0000000000..a84e6b9cf0 --- /dev/null +++ b/sysdeps/aarch64/morello/strlen.c @@ -0,0 +1,30 @@ +/* Simple strlen. + + Copyright (C) 2022 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; see the file COPYING.LIB. If + not, see . */ + +#include + +size_t __strlen (const char *s) +{ + size_t n; + for (n = 0; s[n] != 0; n++); + return n; +} + +weak_alias (__strlen, strlen) +libc_hidden_builtin_def (strlen)