Files
net/dos/dos.h
2025-12-20 18:49:21 -08:00

28 lines
702 B
C

#pragma once
#include <stddef.h>
#include <stdint.h>
struct File {
};
struct Lock {
};
struct File *Open(const char *path, int mode);
int Close(struct File *file);
size_t Read(struct File *file, void *buffer, size_t size);
size_t Write(struct File *file, const void *buffer, size_t size);
size_t Seek(struct File *file, size_t position, int mode);
struct File *Input(void);
struct File *Output(void);
struct File *SelectInput(void);
struct File *SelectOutput(void);
struct Lock *Lock(const char *path, int mode);
void UnLock(struct Lock *lock);
int Rename(const char *old_path, const char *new_path);
int Relabel(const char *filesystem, const char *name);
int IoErr(void);
int SetIoErr(int code);