Upload files to "include"
This commit is contained in:
19
include/processes.h
Normal file
19
include/processes.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef _PROCESSES_H
|
||||
#define _PROCESSES_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
struct process
|
||||
{
|
||||
uint16_t id;
|
||||
uint8_t policy;
|
||||
uint16_t priority;
|
||||
|
||||
char name[16];
|
||||
|
||||
struct process* next;
|
||||
};
|
||||
|
||||
#endif
|
2
include/stdio.h
Normal file
2
include/stdio.h
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
#include <printf.h>
|
9
include/stdlib.h
Normal file
9
include/stdlib.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef STDLIB_H
|
||||
#define STDLIB_H
|
||||
|
||||
#include <mm/mm.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
|
||||
#endif
|
27
include/string.h
Normal file
27
include/string.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef STRING_H
|
||||
#define STRING_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
/* TODO: change all applicable 'int32_t's with 'size_t's. */
|
||||
|
||||
size_t strlen(const char* str);
|
||||
size_t strcmp(const char *s1, const char *s2);
|
||||
int32_t strncmp(const char *s1, const char *s2, size_t n);
|
||||
size_t strcpy(char *dst, const char *src);
|
||||
char *strncpy(char *dest, const char *src, uint32_t n);
|
||||
void strcat(char *dest, const char *src);
|
||||
|
||||
int32_t ischar(int32_t c);
|
||||
int32_t isspace(char c);
|
||||
int32_t isalpha(char c);
|
||||
char upper(char c);
|
||||
char toupper(char c);
|
||||
char lower(char c);
|
||||
|
||||
void *memset(void *dst, char c, uint32_t n);
|
||||
void *memcpy(void *dst, const void *src, uint32_t n);
|
||||
int32_t memcmp(uint8_t *s1, uint8_t *s2, uint32_t n);
|
||||
|
||||
|
||||
#endif
|
6
include/syscall.h
Normal file
6
include/syscall.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _SYSCALL_H
|
||||
#define _SYSCALL_H
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user