Initial commit created from manual fork of development tree

This commit is contained in:
root
2019-10-22 14:49:06 +01:00
commit f21bf07f4b
454 changed files with 291780 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#ifndef __ZPU_TYPES_H__
#define __ZPU_TYPES_H__
#include <sys/types.h>
#define true 1
#define false 0
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef unsigned long uintptr_t;
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef signed long long int64_t;
typedef signed long intptr_t;
typedef uint8_t byte;
#endif

54
software/include/zstdio.h Normal file
View File

@@ -0,0 +1,54 @@
#ifndef __ZSTDIO_H__
#define __ZSTDIO_H__
#ifndef NOPOSIX
#include <sys/types.h>
#include <stdarg.h>
struct __zFILE {
int fd;
};
typedef struct __zFILE FILE;
#ifdef __cplusplus
extern "C" {
#endif
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int sprintf(char *str, const char *format, ...);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
FILE *fopen(const char *path, const char *mode);
void fclose(FILE*);
int fflush(FILE*);
int fputc(int c, FILE *stream);
int fputs(const char *s, FILE *stream);
int putc(int c, FILE *stream);
int putchar(int c);
int puts(const char *s);
typedef int fpos_t;
int fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
void rewind(FILE *stream);
int fgetpos(FILE *stream, fpos_t *pos);
int fsetpos(FILE *stream, fpos_t *pos);
void perror(const char *);
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
#ifdef __cplusplus
}
#endif
#endif
#endif