From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4650F292918 for ; Sat, 2 May 2026 07:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777706742; cv=none; b=b4M8hkAcoBICvYexoQGLi2hNserIfkInNxikDX04xxLlfgT3TGyTgEXZoTWLYKjzeh/QSpR2f0lS1EneoZTHsso/nlYsUOuglIrzMoJg35K3xJ3z7tgPUHy1ZcsczAJiKolTcqzoV/Ofpgwko92vff/BUU8AdW580bqCouKDExw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777706742; c=relaxed/simple; bh=UuemZz2062MDUw9XwZ00Wyc06vOzPzKJeVu6utdpQIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O61TmfpjjfNoBpqq9d+AgZnlPhVBpAL1FpymAsnWxbHfJ3rNzCgU2CNiWZA1/stYWehkBswsPKWDoyrxam27GnuKZ6N7gjAVLRWwSQWdkUN9iucg+tq2X7yfbb73+GMlZid9pK9QqIXmMu2rsDqrQ6kKoHwyYiaqQbPjzHlVNyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thingy.jp; spf=pass smtp.mailfrom=0x0f.com; dkim=pass (1024-bit key) header.d=thingy.jp header.i=@thingy.jp header.b=QcLyPBO3; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thingy.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0x0f.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thingy.jp header.i=@thingy.jp header.b="QcLyPBO3" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-35691a231a7so1723914a91.3 for ; Sat, 02 May 2026 00:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thingy.jp; s=google; t=1777706739; x=1778311539; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JL5DduFI7uQ3L+6yZTftWUn4aIbZdybusTnD32Jfjlk=; b=QcLyPBO3piuP9y5de3qNRjXxtiwkLbwk54ETphgVvmk4fSfDrFwRPJvX+Jyu1iKh+7 jK2UjQV581g6aZ+UWrs/IUivmIDtPZx8m0W//1uo4TENEQZw8LIttAA7aPxZ7z4NQ3dA D0xMshqMD/p2rQvuzni1QIYLQYck21Mmh6kbs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777706739; x=1778311539; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JL5DduFI7uQ3L+6yZTftWUn4aIbZdybusTnD32Jfjlk=; b=W0M7b96fXMCf5YwFZFuP2xDtXwF/BKScqqy/jBTssTWVOLPExl1lZg6aGP26iqOSB1 euLx5Hg39+fKLb2K7FyC8WAWYWc5lBe4QjUUZjx5PuMB8gXle6ckHtmk2duc0aLonv0d v2CmPUiDWnMkENaChC2IlFKe8RuVESKuKn1P99xyZYd5bTyGS3oGUuPFSCTx9rCxCYL4 QbEf92oRg6ewKfrec9ZtLj/VL6QKckDW6lhXl/iFGOFbJCIRnWzjGDFKrZ3W+fvb/QlQ sNB+AtbE5dga5o7kJyQPsYACpR90trnqZOoKRrLAF2yNjQbmquu8wejbE4qJzQVz0udy gPkw== X-Gm-Message-State: AOJu0YyMgOx+s/jwsrDm76IqpOW/n8fJuryqBFq7GL2oUbhGrz3UW6c2 qCXgvZ7RIliUa9fRGWXWUXvI6rUEjotD695OnDTgqr0IxMRhLOC2qzpCX+7f22cZKgQCH4H3MEn wRQsJ X-Gm-Gg: AeBDieteSgqlJJn2urD5OWsJSrMg78rPch/qrFEIGE877vLVWJI9/29vbzNbKQ6Y43x qTbK+r/qY0RYkmauE4nN3QgNt7f0cEfgZUlxIYVyEuf+ZeVd/StH+hgd9XvkEsoUgMMj+khRVu+ 47sIHFAF5/NbttE80Yia+5c56Hzv0JQrpksOx8rYqNp7Zr+qqQ0Meu6lexOKik9q4IDdvkCPSoF s8O/umh8I1cshHGby7/VHf6vuDq43Qk5lc7tLKUXTenxn00Ynefc0J0SvwIqUe0I880guiHwEag EZKOkRs6gy+Icgg2OmBlrFae5qNkyq7Z2efDHw/xmxszc4L3qbcVjPHWs1/RLxs5V9r5n/MDaLf zSHHGkFW/Rb17qGW27x+GrHZXvCg146PzAPPEl1z7gHohS4fBFzvEdqi3L+254LNRsfawILFFA8 wEJh+ZNzgQVFkzE0+7i2HwzCEf083ji3y79Zgu6TLdNU6/xlwmMrCVEtAzmDNR83tGwwIYm64W4 dFeHL5E9yZzrYisE/BPJ/94LhE= X-Received: by 2002:a17:90b:35d1:b0:35e:d012:5a39 with SMTP id 98e67ed59e1d1-3650ce4b8eamr2138576a91.14.1777706739272; Sat, 02 May 2026 00:25:39 -0700 (PDT) Received: from kinako.work.home.arpa (p1387170-ipxg00a01sizuokaden.shizuoka.ocn.ne.jp. [153.221.239.170]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-364ebf12bcesm4287557a91.7.2026.05.02.00.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 May 2026 00:25:38 -0700 (PDT) From: Daniel Palmer To: w@1wt.eu, linux@weissschuh.net Cc: linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 0/3] nolibc: Add getcwd() and readlink() Date: Sat, 2 May 2026 16:25:24 +0900 Message-ID: <20260502072527.1805108-1-daniel@thingy.jp> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Me again :) I needed getcwd() for something. So I added that, then realised I also needed readlink() to test the result of getcwd(). This adds getcwd() and readlink() then adds a test that uses both. nolibc selftest passed on: i386 x86_64 x32 arm64 arm armthumb mips32le mips32be mipsn32le mipsn32be mips64le mips64be ppc ppc64 ppc64le riscv32 riscv64 sparc32 sparc64 m68k Daniel Palmer (3): tools/nolibc: unistd: Add getcwd() tools/nolibc: unistd: Add readlink() selftests/nolibc: Add test for getcwd() and readlink() tools/include/nolibc/unistd.h | 42 ++++++++++++++++++++ tools/testing/selftests/nolibc/nolibc-test.c | 26 ++++++++++++ 2 files changed, 68 insertions(+) base-commit: 266df86c4893fed1a7f027e767fe1c7f6456b100 -- 2.53.0