Modified structure to use a sub-module for platform APIs

This commit is contained in:
Marco Grella 2015-07-31 17:11:27 +02:00
parent 711dd02a9c
commit 62c33260bd
257 changed files with 1417 additions and 158047 deletions

View file

@ -34,55 +34,52 @@
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#include <stdio.h>
#include <sys/stat.h>
/*---------------------------------------------------------------------------*/
int _lseek (int file,
int ptr,
int dir)
{
return 0;
}
/*---------------------------------------------------------------------------*/
int _close (int file)
{
return -1;
}
/*---------------------------------------------------------------------------*/
void _exit (int n)
{
/* FIXME: return code is thrown away. */
while(1);
}
/*---------------------------------------------------------------------------*/
int _kill (int n, int m)
{
return -1;
}
/*---------------------------------------------------------------------------*/
int _fstat(int file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}
/*---------------------------------------------------------------------------*/
int _isatty (int fd)
{
return 1;
fd = fd;
}
/*---------------------------------------------------------------------------*/
int _getpid (int n)
{
return -1;
}
int _open (const char * path,
int flags,
...)
/*---------------------------------------------------------------------------*/
int _open (const char * path, int flags, ...)
{
return -1;
}
#if 0
int _fflush_r(struct _reent *r, FILE *f)
{
return 0;
}
#endif
/*---------------------------------------------------------------------------*/