vbos/usr.bin/utest/utest.c
Michael Shaw 9fed595abc Makefile: add module support
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-20 16:43:00 -04:00

26 lines
494 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
#include <stddef.h>
typedef uint64_t off_t;
int open(const char *path, int flags);
int close(int fd);
int read(int fd, void *buf, size_t nbyte);
int write(int fd, void *buf, size_t nbyte);
int pread(int fd, void *buf, size_t nbyte, off_t offset);
int pwrite(int fd, void *buf, size_t nbyte, off_t offset);
size_t strlen(const char *c)
{
const char *b = c;
while (*b)
b++;
return b - c;
}
void _start()
{
while (1)
;
}