The header scan (Captain Bob, 2026-11-10): 788 source files -- 351 with the
SL-1.0 header, 12 with the old name (docs/working/experiments, kept by
ruling), 31 under someone else's licence (tools/kconfig, Linux's, GPL-2.0:
kept), and 394 with none. Ruled: the SPDX form; capsules (.4th, .f18) and
proofs (.thy) left for a ruling of their own (mkcapsule's 64x16 block format,
content-addressed capsules).
253 files now begin
SPDX-License-Identifier: LicenseRef-Starship-1.0
Copyright (c) 2023-2026 Robert A. James
as a /* */ block (C, headers, assembly, linker scripts) or # lines (scripts,
Makefiles, Kconfig; below a shebang or a coding line); tools/mkcapsule.c,
which had the copyright line, gets the SPDX line only.
Not touched: docs/working/ (archive and old campaign material, as the
ruling kept the experiments); v4/system/post_cases.c (generated by
v4/tools/mkpost.py, "do not edit" -- the generator has the header).
Comments only: the kernel builds on amd64, aarch64, riscv64; make -C v4
test-32: 39 programs, 0 failures; every changed script parses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* SPDX-License-Identifier: LicenseRef-Starship-1.0
|
|
* Copyright (c) 2023-2026 Robert A. James
|
|
*/
|
|
/* Freestanding stdio.h shim for aarch64 COFF kernel builds.
|
|
* printf/fprintf/snprintf/vfprintf all provided by shim.c (route to console). */
|
|
#ifndef FREESTANDING_STDIO_H
|
|
#define FREESTANDING_STDIO_H
|
|
#include <stddef.h>
|
|
#include <stdarg.h>
|
|
typedef struct { int _dummy; } FILE;
|
|
#define stderr ((FILE *)0)
|
|
#define stdout ((FILE *)1)
|
|
#define stdin ((FILE *)2)
|
|
int printf(const char *fmt, ...);
|
|
int fprintf(FILE *stream, const char *fmt, ...);
|
|
int vfprintf(FILE *stream, const char *fmt, va_list args);
|
|
int snprintf(char *buf, size_t n, const char *fmt, ...);
|
|
int vsnprintf(char *buf, size_t n, const char *fmt, va_list args);
|
|
int puts(const char *s);
|
|
int fputs(const char *s, FILE *stream);
|
|
#define SEEK_SET 0
|
|
#define SEEK_CUR 1
|
|
#define SEEK_END 2
|
|
int fflush(FILE *stream);
|
|
int putchar(int c);
|
|
int fseek(FILE *stream, long offset, int whence);
|
|
long ftell(FILE *stream);
|
|
int sscanf(const char *str, const char *fmt, ...);
|
|
int getchar(void);
|
|
int fgetc(FILE *stream);
|
|
int fputc(int c, FILE *stream);
|
|
char *fgets(char *s, int n, FILE *stream);
|
|
FILE *fopen(const char *path, const char *mode);
|
|
int fclose(FILE *stream);
|
|
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
|
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
|
|
int fscanf(FILE *stream, const char *fmt, ...);
|
|
void rewind(FILE *stream);
|
|
#endif /* FREESTANDING_STDIO_H */
|