From patchwork Sun Feb 6 00:29:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1588883 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=HB/AirAT; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JrqtH1fHrz9s8q for ; Sun, 6 Feb 2022 11:30:15 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 078A63858018 for ; Sun, 6 Feb 2022 00:30:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 078A63858018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1644107413; bh=DU4hwwe5o65AC+cC/HgKtzLf/V6r9zcLWhzkgOaSCrQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=HB/AirATrniBJbQ3ggMP6Gm4VLeUTPpEBn3criK6QAUueo5zaZ7qwoeu53v888Owy QWn9eui+HqcDzeH3YTzPlNzlH60aJrGefgDNm88zoc5fbdn01e/3DzjK6oUVOnixDq IPzMV0ngQdZzgm25HklRPOMhqVAoMWeajiAtnCYQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id C20893858017 for ; Sun, 6 Feb 2022 00:29:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C20893858017 Received: by mail-pj1-x102b.google.com with SMTP id oa14-20020a17090b1bce00b001b61aed4a03so9745867pjb.5 for ; Sat, 05 Feb 2022 16:29:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DU4hwwe5o65AC+cC/HgKtzLf/V6r9zcLWhzkgOaSCrQ=; b=oGLgqXnzITYFwPp5yQsdD7DFNkjbLvTIXD3kKZm49+JdBmRC1gNc4/hYYfR2TyXlIC y0jAv8FoXjr0u0qC7I8tZdAmO8+EmWjI1xOGF45pmXzesGEFUTz42pgLcv/wQ2Yi55md vzCZw1IxERTEMB+ObuXn8aX2rJYALkT0lDucj3Mi9cBHgedqrrSU4qjml0UriDeTTpx7 US5SLWyLW698yJI29Zvp2ZgrpffwojR3Gn9gSLIaXYw0UTnIiHhQsOiBNo0Hzz6qU90Q PXRs5gNjLEwmBh0sYw2r/dM9pqY8vqTZ8g3QzpfoaUz9XVng1Pw9HJlFxmwVeD/fjYlt YSiw== X-Gm-Message-State: AOAM531osOzDtfN1FZhu0kbD8gmb16CdkME8Kv79pewQKCB4qY7M9rMr 9L0q+tdOL7NWlGiNVDUbWo50mhr8jzY= X-Google-Smtp-Source: ABdhPJzw5DVBsys1+72suWWGv64pwpoPs7zCEuxBZBPs/TxJFSw0EKuzVQQ37Y5jOrbMOoj4aVy2zA== X-Received: by 2002:a17:902:ced1:: with SMTP id d17mr5317081plg.78.1644107370746; Sat, 05 Feb 2022 16:29:30 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.38.240]) by smtp.gmail.com with ESMTPSA id u11sm7288642pfg.171.2022.02.05.16.29.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 16:29:30 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 86BCCC08A9 for ; Sat, 5 Feb 2022 16:29:29 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH] string: Sort headers, routines, tests and tests-translation Date: Sat, 5 Feb 2022 16:29:29 -0800 Message-Id: <20220206002929.2888485-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3029.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-Patchwork-Original-From: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Sort headers, routines, tests and tests-translation. Put one entry per line. --- string/Makefile | 210 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 166 insertions(+), 44 deletions(-) diff --git a/string/Makefile b/string/Makefile index b65f6027b7..641e062bbb 100644 --- a/string/Makefile +++ b/string/Makefile @@ -22,52 +22,174 @@ subdir := string include ../Makeconfig -headers := string.h bits/string_fortified.h \ - strings.h bits/strings_fortified.h \ - byteswap.h bits/byteswap.h \ - endian.h bits/endian.h bits/endianness.h \ - bits/uintn-identity.h \ - memory.h argz.h envz.h - -routines := strcat strchr strcmp strcoll strcpy strcspn \ - strverscmp strdup strndup \ - strerror _strerror strlen strnlen \ - strncat strncmp strncpy \ - strrchr strpbrk strsignal strspn strstr strtok \ - strtok_r strxfrm memchr memcmp memcmpeq memmove memset \ - mempcpy bcopy bzero ffs ffsll stpcpy stpncpy \ - strcasecmp strncase strcasecmp_l strncase_l \ - memccpy memcpy wordcopy strsep strcasestr \ - swab strfry memfrob memmem rawmemchr strchrnul \ - $(addprefix argz-,append count create ctsep next \ - delete extract insert stringify \ - addsep replace) \ - envz basename \ - strcoll_l strxfrm_l string-inlines memrchr \ - xpg-strerror strerror_l explicit_bzero \ - sigdescr_np sigabbrev_np strerrorname_np \ - strerrordesc_np - -strop-tests := memchr memcmp memcpy memcpy-large memcmpeq memmove mempcpy \ - memset memccpy stpcpy stpncpy strcat strchr strcmp strcpy \ - strcspn strlen strncmp strncpy strpbrk strrchr strspn memmem \ - strstr strcasestr strnlen strcasecmp strncasecmp \ - strncat rawmemchr strchrnul bcopy bzero memrchr \ - explicit_bzero -tests := tester inl-tester noinl-tester testcopy test-ffs \ - tst-strlen stratcliff tst-svc tst-inlcall \ - bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap \ - tst-strtok tst-strxfrm bug-strcoll1 tst-strfry \ - bug-strtok1 $(addprefix test-,$(strop-tests)) \ - bug-envz1 tst-strxfrm2 tst-endian tst-svc2 \ - tst-strtok_r bug-strcoll2 tst-cmp tst-xbzero-opt \ - test-endian-types test-endian-file-scope \ - test-endian-sign-conversion tst-memmove-overflow \ - test-sig_np +headers := \ + argz.h \ + bits/byteswap.h \ + bits/endian.h \ + bits/endianness.h \ + bits/string_fortified.h \ + bits/strings_fortified.h \ + bits/uintn-identity.h \ + byteswap.h \ + endian.h \ + envz.h \ + memory.h \ + string.h \ + strings.h \ +# headers + +routines := \ + _strerror \ + argz-addsep \ + argz-append \ + argz-count \ + argz-create \ + argz-ctsep \ + argz-delete \ + argz-extract \ + argz-insert \ + argz-next \ + argz-replace \ + argz-stringify \ + basename \ + bcopy \ + bzero \ + envz \ + explicit_bzero \ + ffs \ + ffsll \ + memccpy \ + memchr \ + memcmp \ + memcmpeq \ + memcpy \ + memfrob \ + memmem \ + memmove \ + mempcpy \ + memrchr \ + memset \ + rawmemchr \ + sigabbrev_np \ + sigdescr_np \ + stpcpy \ + stpncpy \ + strcasecmp \ + strcasecmp_l \ + strcasestr \ + strcat \ + strchr \ + strchrnul \ + strcmp \ + strcoll \ + strcoll_l \ + strcpy \ + strcspn \ + strdup \ + strerror \ + strerror_l \ + strerrordesc_np \ + strerrorname_np \ + strfry \ + string-inlines \ + strlen \ + strncase \ + strncase_l \ + strncat \ + strncmp \ + strncpy \ + strndup \ + strnlen \ + strpbrk \ + strrchr \ + strsep \ + strsignal \ + strspn \ + strstr \ + strtok \ + strtok_r \ + strverscmp \ + strxfrm \ + strxfrm_l \ + swab \ + wordcopy \ + xpg-strerror \ +# routines + +tests := \ + bug-envz1 \ + bug-strcoll1 \ + bug-strcoll2 \ + bug-strncat1 \ + bug-strpbrk1 \ + bug-strspn1 \ + bug-strtok1 \ + inl-tester \ + noinl-tester \ + stratcliff \ + test-bcopy \ + test-bzero \ + test-endian-file-scope \ + test-endian-sign-conversion \ + test-endian-types \ + test-explicit_bzero \ + test-ffs \ + test-memccpy \ + test-memchr \ + test-memcmp \ + test-memcmpeq \ + test-memcpy \ + test-memcpy-large \ + test-memmem \ + test-memmove \ + test-mempcpy \ + test-memrchr \ + test-memset \ + test-rawmemchr \ + test-sig_np \ + test-stpcpy \ + test-stpncpy \ + test-strcasecmp \ + test-strcasestr \ + test-strcat \ + test-strchr \ + test-strchrnul \ + test-strcmp \ + test-strcpy \ + test-strcspn \ + test-strlen \ + test-strncasecmp \ + test-strncat \ + test-strncmp \ + test-strncpy \ + test-strnlen \ + test-strpbrk \ + test-strrchr \ + test-strspn \ + test-strstr \ + testcopy \ + tester \ + tst-bswap \ + tst-cmp \ + tst-endian \ + tst-inlcall \ + tst-memmove-overflow \ + tst-strfry \ + tst-strlen \ + tst-strtok \ + tst-strtok_r \ + tst-strxfrm \ + tst-strxfrm2 \ + tst-svc \ + tst-svc2 \ + tst-xbzero-opt \ +# tests # Both tests require the .mo translation files generated by msgfmt. -tests-translation := tst-strsignal \ - tst-strerror +tests-translation := \ + tst-strerror \ + tst-strsignal \ +# tests-translation tests-container += $(tests-translation) ifeq ($(MSGFMT),:)