ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: LIB/STDIO.H

Source reference: LIB/STDIO.H

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path LIB/STDIO.H
Lines 39
Bytes 917
SHA-256 90cc9ef70af4f8f9cc5c18f9f1ac25e6a0228ff6237ebbd6e60ed5dea9f0aaec
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
3 STDDEF.H
4 STDARG.H

Detected symbols

Line Symbol
— No C-like function definition detected by the scanner.

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

#ifndef STDIO_H
#define STDIO_H
#include "STDDEF.H"
#include "STDARG.H"

#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#define EOF (-1)
#define FILE int
#define stdin 0
#define stdout 1
#define stderr 2

int fopen(char *path);
void fclose(int fd);
int fread(int fd, char *buf, int n);
int fwrite(int fd, char *buf, int n);
int fsize(char *path);
int fexists(char *path);
int fseek(int fd, int off);
int ftell(int fd);
int sscanf(char *s, char *fmt, ...);
int vsnprintf(char *dst, int n, char *fmt, va_list ap);
int vfprintf(int fd, char *fmt, va_list ap);
int fflush(int fd);
int remove(char *path);
int rename(char *oldn, char *newn);
#define fileno(x) (x)

int putchar(int c);
int puts(char *s);
int vsprintf(char *dst, char *fmt, va_list ap);
int sprintf(char *dst, char *fmt, ...);
int snprintf(char *dst, int n, char *fmt, ...);
int printf(char *fmt, ...);
int fprintf(int fd, char *fmt, ...);
#endif

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-90cc9ef70af4f8f9 Reviewed source: da3df29cb397 Class: generated-source-reference