trying to get VGA fb mode to work..
This commit is contained in:
8
rocklibc/include/stdlib.h
Normal file
8
rocklibc/include/stdlib.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef RLIBC_STDLIB_H
|
||||
#define RLIBC_STDLIB_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void* malloc(size_t size);
|
||||
|
||||
#endif
|
||||
@@ -10,5 +10,6 @@ void *memset(void *s, int c, size_t n);
|
||||
size_t strlen(const char *s);
|
||||
int strcmp(const char *s1, const char *s2);
|
||||
char *strcpy(char *dest, const char *src);
|
||||
char* strcat(char *dest, const char* src);
|
||||
|
||||
#endif
|
||||
@@ -9,6 +9,8 @@
|
||||
#define SYS_WRITE 4
|
||||
#define SYS_OPEN 5
|
||||
#define SYS_CLOSE 6
|
||||
#define SYS_BRK 12
|
||||
#define SYS_SBRK 13
|
||||
#define SYS_PTY 20
|
||||
#define SYS_FORK 21
|
||||
#define SYS_EXEC 22
|
||||
@@ -25,7 +27,7 @@ int lseek(int fd, size_t offset, int whence);
|
||||
|
||||
void exit(int status) __attribute__((noreturn));
|
||||
|
||||
void *sbrk(intptr_t increment);
|
||||
void* sbrk(int32_t increment);
|
||||
int brk(void *addr);
|
||||
|
||||
int pty(int* slave);
|
||||
|
||||
Reference in New Issue
Block a user