From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 6367D238159 for ; Sun, 4 Jan 2026 08:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767515941; cv=none; b=XM18YmOpoXeiLJM5I3PcyMuRaZMGqFIV20DOincN09KlU+/8Kj/qzGM2RgNboG+swHUscCDJmPDML+LMuUt6qniA0I4XLeLqHDQkPOCqrC9d56BEQs1NRqR2jjpvtSkj90/rXrKB8qcWOOc+jAaVOk54RTH+pn8H3XQY3WYFqSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767515941; c=relaxed/simple; bh=suOzQghPsEuVZGM90A/f5fthVFntw+n7xBWr0D6QsAc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IjOZqzWJgARN6xth54tLZPmCtdM+hw1QPskzpWSlqgqZmgUaQHXpWGw+ISMzCUyRHTDsPs17E3B66ZvtiYccJUImT6S6GPKRt7uGyN0v+r6v7ABbVUsqTHOTiHZbJ9lRAeOqzv/ExMq0JKxt7xHWTKzL3G8NvacpDsOrX4gf3+8= 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=MSgM6K7W; arc=none smtp.client-ip=209.85.210.181 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="MSgM6K7W" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7bc248dc16aso10421655b3a.0 for ; Sun, 04 Jan 2026 00:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thingy.jp; s=google; t=1767515938; x=1768120738; 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=63PJwYB2cxlEODGIEhygEw8x1fJZhw5J2bFpGw8ojLI=; b=MSgM6K7Wy2ktBg80aCf45kk73+Rw03RUrQk8F+XRaGtaePNL0mQXPC+QwaZqC9tPJO +kthOZV/K7fGzjc+atldFLleNSlCm1cfAWgDb73mUlqGRhA1s5xxVp2qshxxGEbc2OIS FL21hdBid+3ntFMOmOX3AAMa720fSS30ZRY90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767515938; x=1768120738; 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=63PJwYB2cxlEODGIEhygEw8x1fJZhw5J2bFpGw8ojLI=; b=Avueys3ME3Cg8yR+PGKSTAmOv49T1TUtl5SwF54L1LtRnND4Qq1uVazZXzmT95HCkw FgxBYxSnqnP5e1q+eCf4Wmf7bHYXslatMHOed3Tfd9KCB+YrtlwtzTap0PRQAMJ4XTvR CI84xHQqDDLkLbO+Yswbg5LUDe3c9ebAO/W2Feb6Z6hhTYpWNcgItlmZF7CwweKXLpXq SL1HT2Ib3SAO9eq1xXBhSMc8A89UP90GiLoo+MjLgtrMZcURlKRne8ME8a7fJEYHpA9B s6/wXc79IOY2O4nB2FMlXW7uMU+OdCtU7c/BvpW09fRDS7+2SrF9xdwFkmLOeQljM4+2 CbWQ== X-Gm-Message-State: AOJu0YwOnjPNZgukOmFPgvEi0zE1/4O2KWoqcClVqkY3mUB+Y/QKYg2a 3tf0BMyOaYAiV7+f4jUY2D05K4cEwsYjN5lImYNPtT2xU0n6oBZaBY1q0YkKnMo0H9Yj8LsNDwd ukH1HEqM= X-Gm-Gg: AY/fxX6/1utaCDnBtDBF35yQ4K8qpVQom0Wzt+ua0cJJ6mCOJCWdiZrKpkJ2iNJhNkQ tW6QmoYd0j40NhIXtUj3tAKWWGft2U+X5CJAquTMAzxPaJ9kfq7/8YjR+JhKB/OXI9QIPTOP63l n8zPLY4yfKGCEW1OO/uGY6NMwrU7BYfvmZ5GqxyGYAh7HWt47Qp32TYbmj89mqltHjKLoXNP8Cl i+WnK1zs92aLq3PwB5EBqxUq7F56iJr1gxEH/QudqFLChXgaqF9hTb1R7KB4sewZ3OUdh6zUDvJ crCSxJFE1sMKcaGofwDDMuoZmHDy9UXzu8wQ75b8mYXPuhcLyYDtO6kZC11PmzA/yCBcYhBsH/T 18JhQrdTBVRMN7vuFC6tVZBeW37macoq4LS4J4s6IXkcu9VYLVMys3Mb7yneqr8hzatTpI+JAfZ Be5pqOBEqMcX/EZXNJ+BngOg9mIIlxreSW3Nbiem3xmXavMdA5rp5djBvFx0Tl26URnBHsRf63O TA= X-Google-Smtp-Source: AGHT+IG67IQKYfwJ5TCe2rnhpCZ33nTRPodHTnFZ9MdxU5SvlSV9nn+Yq5CVKz2Hi5dtvuwssAe8ZQ== X-Received: by 2002:aa7:9a85:0:b0:7f7:398c:a855 with SMTP id d2e1a72fcca58-7ff65f789e1mr38230802b3a.39.1767515937734; Sun, 04 Jan 2026 00:38:57 -0800 (PST) Received: from kinako.work.home.arpa (p1536247-ipxg00c01sizuokaden.shizuoka.ocn.ne.jp. [122.26.212.247]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-7ff7aa328aesm44975827b3a.5.2026.01.04.00.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jan 2026 00:38:57 -0800 (PST) From: Daniel Palmer To: w@1wt.eu, linux@weissschuh.net Cc: linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 0/2] nolibc: Add fread() and fseek() Date: Sun, 4 Jan 2026 17:38:35 +0900 Message-ID: <20260104083837.1390041-1-daniel@thingy.jp> X-Mailer: git-send-email 2.51.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 Using nolibc on nommu 68000, something I'm trying to build[0] wanted fread() and fseek() so I added them, they seem to work so I'm sharing them. Not sure if I need to add tests or something? Maybe there is a reason these weren't implemented in the first place... 0 - https://github.com/FrenkelS/Doom8088ST/issues/21 Daniel Palmer (2): tools/nolibc: Add fread() to stdio.h tools/nolibc: Add fseek() to stdio.h tools/include/nolibc/stdio.h | 54 +++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) -- 2.51.0