cmd: add initial commands ls and help

This commit is contained in:
Michael Shaw 2023-10-20 23:56:01 -04:00
commit 0029621ada
6 changed files with 133 additions and 6 deletions

9
include/kernel/cmd.h Normal file
View file

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _CMD_H_
#define _CMD_H_
#include <kernel/common.h>
void kexec(const char *cmd);
#endif /* _CMD_H_ */

View file

@ -6,6 +6,7 @@
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <kernel/lock.h>
@ -17,6 +18,7 @@ void *memset(void *str, int c, size_t n);
char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);
char *strtok(char *str, const char *delim, char **llast);
bool strempty(const char *s);
char **strsplit(const char *str, char delim, int *num);
size_t strlen(const char *c);
int atoi(const char *a);