115 lines
1.5 KiB
C
115 lines
1.5 KiB
C
//*****************************************************************************
|
|
// Sentinel 65X Kernel
|
|
//
|
|
// src/stubs.c
|
|
//*****************************************************************************
|
|
|
|
// Stub functions which the C library needs in order to function.
|
|
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#include "config.h"
|
|
|
|
far int
|
|
_Stub_open(const char *path, int oflag, ...)
|
|
{
|
|
(void) path;
|
|
(void) oflag;
|
|
return -1;
|
|
}
|
|
|
|
far int
|
|
_Stub_close(int fd)
|
|
{
|
|
(void) fd;
|
|
return -1;
|
|
}
|
|
|
|
far int
|
|
_Stub_access(const char *path, int mode)
|
|
{
|
|
(void) path;
|
|
(void) mode;
|
|
return -1;
|
|
}
|
|
|
|
far long
|
|
_Stub_lseek(int fd, long offset, int whence)
|
|
{
|
|
(void) fd;
|
|
(void) offset;
|
|
(void) whence;
|
|
return -1;
|
|
}
|
|
|
|
far int
|
|
_Stub_fgetpos(int fd, fpos_t *pos)
|
|
{
|
|
(void) fd;
|
|
(void) pos;
|
|
return -1;
|
|
}
|
|
|
|
far int
|
|
_Stub_fsetpos(int fd, const fpos_t *pos)
|
|
{
|
|
(void) fd;
|
|
(void) pos;
|
|
return -1;
|
|
}
|
|
|
|
far size_t
|
|
_Stub_read(int fd, void *buf, size_t count)
|
|
{
|
|
(void) fd;
|
|
(void) buf;
|
|
(void) count;
|
|
return 0;
|
|
}
|
|
|
|
far size_t
|
|
_Stub_write(int fd, const void *buf, size_t count)
|
|
{
|
|
(void) fd;
|
|
(void) buf;
|
|
(void) count;
|
|
return 0;
|
|
}
|
|
|
|
far int
|
|
_Stub_rename(const char *oldpath, const char *newpath)
|
|
{
|
|
(void) oldpath;
|
|
(void) newpath;
|
|
return -1;
|
|
}
|
|
|
|
far int
|
|
_Stub_remove(const char *path)
|
|
{
|
|
(void) path;
|
|
return -1;
|
|
}
|
|
|
|
far void
|
|
_Stub_exit(int exitCode)
|
|
{
|
|
(void) exitCode;
|
|
return;
|
|
}
|
|
|
|
far char**
|
|
_Stub_environ(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
far void
|
|
_Stub_assert(const char *filename, int linenum)
|
|
{
|
|
(void) filename;
|
|
(void) linenum;
|
|
return;
|
|
}
|