Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1226211lqd; Thu, 25 Apr 2024 09:10:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmpRUhIPji/ossZIeS0bxYMo1aXlfsGunt07yvlApFiAgoCayPTPWrtSAXtTHfs4uXq9QKMcAU9GDZw1s4p1c+C1mZr2eRQsivaT1uKw== X-Google-Smtp-Source: AGHT+IFv9R7276UI3/DKNyh87+bXbuK9A9ogp8ytJtMVlMZCAt7Z4a9iFxDnjVS/RhKgZQa0fuH3 X-Received: by 2002:a17:906:f748:b0:a55:6602:e3a9 with SMTP id jp8-20020a170906f74800b00a556602e3a9mr203500ejb.1.1714061456043; Thu, 25 Apr 2024 09:10:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714061456; cv=pass; d=google.com; s=arc-20160816; b=ZluOpCQfkileU0e9eHlNISZaSwrM+Zjh/20oaCX0blmHr+63y5lhq9QwQO9VS5R/e/ DqFphmoFZpdT4ZIdqAxyE96TljGMCa4FUQKtbEmgaun7LjTngrcQxE7i7PU45L12vCt8 S+7yX9NOTIjRYUzssgV56hE+AGWngakk0mpjmBQ6a7Uf4hiGld86PKNRmyZMiS+UCEwG 4AQ7tQRlSGWJTE8NFkH03FtWQUbYwB063/NJYqo+Ipm2FbHpJJlghDwdztD6MuaZP1ry D7pdwB0Q0OBAu8mW7rzpBDwmpe34+3afhqC0rYdE9lBM+rXJBYnAsMIe5z7obCj5IkwZ wpLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=LNYP6zNqhveIWpNqIfpLlHE4dqQ4d/g2Exh4gKp30vU=; fh=Qbk0RS4bf6GjbhGkpgFoVgYg5V+1DfWcZ6CAErfO2MQ=; b=hNui/I1N4k6zp0XChtBfNNHn2IlK/yZm5bzgGPNwELUwdrKy7dGxNJRQ8XardszNls JB1PLBCAm3u5ws+Uem6PFdDiQ9c4gPIRTr9USoheD5WSS10zQd1CQFvIg7EBbBZFDNnY AnXN5QYkzxOpuAJW3qJ8gupXMJ3ASg7OKVQQvQ8SKPv09NAKGGEEsiwUDi4aQf4lnuFM KOrfMKxRiWP7XRRz5IiaFpSCmBjrH68U2DEvs0E6qw2YPektfYN2GjI4lUzNF/U1hY1P WKCmSsXwtyyz/D7kJYrva+ONCkwGwktyd1uUvcb9peUY4Q2pkWbFJsIjXSjpz7cPVgWT FgHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="h/osk+LD"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-158869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158869-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j10-20020a1709066dca00b00a588a489fe8si2777220ejt.724.2024.04.25.09.10.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="h/osk+LD"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-158869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158869-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B8C631F21353 for ; Thu, 25 Apr 2024 16:10:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D17514D2AB; Thu, 25 Apr 2024 16:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="h/osk+LD" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 056DA14A096; Thu, 25 Apr 2024 16:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061399; cv=none; b=NsE8+WpR54yjumjZ4q3I3qFI87nzUDvkTP1gVLX3ASOjltl9izXcrlP8j54IAiDKIjbxzE4MUyb9sUlBwqmBoPBosoFztduMWlq/nQTLLPiK1tOeh1b5ytK3RVWACKHXLQd8eyxy46ydBalVsdpL3hQPNFBmwxkdeL0PEjn10GQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061399; c=relaxed/simple; bh=P3A5IVFBl7fl7JQmick2+XqDO+Oqoe+qjWNFH3QS/Ns=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Fxnpw3AjryUUlIZwgobQ/ztFuOvrYtvjnwf94KFthCJtR8RSBj+l39KR62s0Ay2vFBD2xmmnR0bLiaLBpUCIfV1cdiK4iXgRaD45ZXiCZDXpZJTZDaiaG0Xm8batE6TUx0NnvKMBZ5BAcSwXmAEZ357k2eLAplx1D253dFTiozw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=h/osk+LD; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1714061393; bh=P3A5IVFBl7fl7JQmick2+XqDO+Oqoe+qjWNFH3QS/Ns=; h=From:Subject:Date:To:Cc:From; b=h/osk+LDfXw+7zw5ap7zY38OGV0fBSRmnOmJVwCza74LVAFbO/XdIUBX/XbZwAV4z q74nNyYTHTdwjQGahgxUKhuoqydzZhNjGj8yq0Lqv2+92rLoK3d/km6LdNkmFFgZuP NlA6+Hcs2CHbCHU+fX7F8zFrEvMcvu1IATL6JG04= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/2] tools/nolibc: implement strtol() and friends Date: Thu, 25 Apr 2024 18:09:25 +0200 Message-Id: <20240425-nolibc-strtol-v1-0-bfeef7846902@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIADWAKmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDE0NT3bz8nMykZN3ikqKS/BzdxDRz80TDNKNkczMzJaCegqLUtMwKsHn RsbW1ANI4y0hfAAAA To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714061393; l=790; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=P3A5IVFBl7fl7JQmick2+XqDO+Oqoe+qjWNFH3QS/Ns=; b=DjdCWwO/Rih+/lht+L6LlMwYk72xCMZMA1QRJUJrNQXaLQlwWSGHWA7SWtOx9L+sTDpVLqGdA X1HGTJNh7veCFTw6zDkr0oHtYT0l1KqkZdlQz9G5IRdsNdjNjWEI/cL X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= I wanted to implement sscanf() for ksft_min_kernel_version() and this is a prerequisite for it. It's also useful on its own so it gets its own submission. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (2): tools/nolibc: add limits for {u,}intmax_t, ulong and {u,}llong tools/nolibc: implement strtol() and friends tools/include/nolibc/stdint.h | 19 +++++ tools/include/nolibc/stdlib.h | 109 +++++++++++++++++++++++++++ tools/testing/selftests/nolibc/nolibc-test.c | 59 +++++++++++++++ 3 files changed, 187 insertions(+) --- base-commit: f1652790cd374bcf98efc913ec69ed18d20e7747 change-id: 20240415-nolibc-strtol-af77a1f2c766 Best regards, -- Thomas Weißschuh