-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkstd.h
More file actions
23 lines (23 loc) · 756 Bytes
/
kstd.h
File metadata and controls
23 lines (23 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdint.h>
#include <stddef.h>
#ifndef KSTD_H
#define KSTD_H
int strcmp(const char *s1, const char *s2);
extern volatile uint32_t ticks;
extern volatile uint8_t waitmode;
size_t strlen(const char* str);
size_t readbuf(uint8_t *buf);
void append_ibuf(uint8_t c);
void* memset(void* dst, int v, size_t n);
void* memcpy(void* dst, const void* src, size_t n);
void wait(int seconds);
void itoa(int value, char* str, int base);
void outb(uint16_t port, uint8_t val);
uint8_t inb(uint16_t port);
void set_kernel_stack();
void panic(const char *msg) __attribute__((noreturn));
void changeout(void (*cb)(char* buf),size_t index);
int split(char* str, char delimiter, char* tokens[], int max_tokens);
int stoia(char *buf);
extern uint8_t active_tty;
#endif