Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp663700rwl; Sat, 25 Mar 2023 08:46:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZAA0h5kYT018PvvSrWC3rjNLuBDpp8qT5Ur294jsKMMFjF1m+h4Y8lYiKhQZ0ZtC4DU8M9 X-Received: by 2002:a17:90a:31c6:b0:237:d867:2260 with SMTP id j6-20020a17090a31c600b00237d8672260mr12288364pjf.4.1679759173364; Sat, 25 Mar 2023 08:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679759173; cv=none; d=google.com; s=arc-20160816; b=rbqfJLH9eL8OBp8oCo5JkUU65e4gvr9xJoKXA0rGhumkHb/hf8hvdBw1HRBmIo67JY Z2JmlUsrX2sdQCB2krZ4fZHcnVdosZpilfZfMmgeMTCgp3aFQjJUv+5NWE3OtNJzs7Dx ammqcb2gircWIQiYnsD6m6LEK946KHlJGmh2N+AeojQX05t4GXALR3JcNb4wcxsDkiDu qu8mMjCWYkZrJi72axkTn8ht6RUhwayH8hTZekXG8/68qdugX6rW+ppjTY6xVxiktCIx HirSoUgALRhfyrWhUAmLuMiV8j7HEqpRjEs68X9W5dC3cYl+G/Qwy8Ew3xluH3HpE6DJ 5okQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uK87gaqgNjqB94PvnC1GDXIDSGc8xARvpd0M67eHPYM=; b=AXfyhoKGLqBrCG2N2DyaKZpFIkaZqJGj+OVX5TaC/XoiLhXENPCgMzorz5ENmiczOM /DG+t7E+S8jv7zZMwO6DF9Vshpvbo2kaDat2gyOALfCcoE2QqjOhITNtgVrOfzcGUGGt HtSrazLuUKP0IUjy9sFFrFdDsWUVyJEBo9d4vwUeYN+flmcWVrZFIeTCseOdsFKWAHDN 4jSpNx00UfREIwS1PVyIl/d5yVKzYSyjUs/2K/1hsuAlxQCJoDN8PGKdcRKCAORnNI88 PO/P17JBO2Y+pgCDBdDFLTmBvD3C2s+/eyc33AEbZ65gc04T202MyhhQuwvTlfhPbCtt POAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a17090a430200b0023b3401ef14si2249005pjg.62.2023.03.25.08.45.59; Sat, 25 Mar 2023 08:46:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230380AbjCYPpp (ORCPT + 99 others); Sat, 25 Mar 2023 11:45:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjCYPpl (ORCPT ); Sat, 25 Mar 2023 11:45:41 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38B60DBE2 for ; Sat, 25 Mar 2023 08:45:39 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 32PFjQbH008046; Sat, 25 Mar 2023 16:45:26 +0100 From: Willy Tarreau To: "Paul E. McKenney" Cc: linux@weissschuh.net, linux-kernel@vger.kernel.org, Willy Tarreau Subject: [PATCH 1/8] tools/nolibc: add definitions for standard fds Date: Sat, 25 Mar 2023 16:45:09 +0100 Message-Id: <20230325154516.7995-2-w@1wt.eu> X-Mailer: git-send-email 2.17.5 In-Reply-To: <20230325154516.7995-1-w@1wt.eu> References: <20230325154516.7995-1-w@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Weißschuh These are useful for users and will also be used in an upcoming testcase. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau --- tools/include/nolibc/unistd.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/nolibc/unistd.h b/tools/include/nolibc/unistd.h index 1cfcd52106a4..ac7d53d986cd 100644 --- a/tools/include/nolibc/unistd.h +++ b/tools/include/nolibc/unistd.h @@ -13,6 +13,11 @@ #include "sys.h" +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + + static __attribute__((unused)) int msleep(unsigned int msecs) { -- 2.17.5