Created
August 11, 2016 19:37
-
-
Save sortie/9a64aa532052e2137f05f5324a75b474 to your computer and use it in GitHub Desktop.
Headers for http://wiki.osdev.org/Hosted_GCC_Cross-Compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* unistd.h: */ | |
#ifndef _UNISTD_H | |
#define _UNISTD_H | |
#include <sys/types.h> | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
int execv(const char*, char* const[]); | |
int execve(const char*, char* const[], char* const[]); | |
int execvp(const char*, char* const[]); | |
pid_t fork(void); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif | |
/* time.h: */ | |
/* stdio.h: */ | |
#ifndef _STDIO_H | |
#define _STDIO_H | |
#include <stdarg.h> | |
#include <stddef.h> | |
#define SEEK_SET 0 | |
typedef struct { int unused; } FILE; | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
extern FILE* stderr; | |
#define stderr stderr | |
int fclose(FILE*); | |
int fflush(FILE*); | |
FILE* fopen(const char*, const char*); | |
int fprintf(FILE*, const char*, ...); | |
size_t fread(void*, size_t, size_t, FILE*); | |
int fseek(FILE*, long, int); | |
long ftell(FILE*); | |
size_t fwrite(const void*, size_t, size_t, FILE*); | |
void setbuf(FILE*, char*); | |
int vfprintf(FILE*, const char*, va_list); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif | |
/* sys/types.h: */ | |
#ifndef _SYS_TYPES_H | |
#define _SYS_TYPES_H | |
typedef int pid_t; | |
#endif | |
/* errno.h: */ | |
/* string.h: */ | |
#ifndef _STRING_H | |
#define _STRING_H | |
#include <stddef.h> | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
void* memcpy(void*, const void*, size_t); | |
void* memset(void*, int, size_t); | |
char* strcpy(char*, const char*); | |
size_t strlen(const char*); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif | |
/* stdlib.h: */ | |
#ifndef _STDLIB_H | |
#define _STDLIB_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
void abort(void); | |
int atexit(void (*)(void)); | |
int atoi(const char*); | |
void free(void*); | |
char* getenv(const char*); | |
void* malloc(size_t); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment