- My blog: https://su8.github.io
This file contains hidden or 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
# Module Name | |
KMOD = hello_world_kmod | |
# Source files | |
SRCS = hello_world_kmod.c | |
# Include <bsd.kmod.mk> | |
.include <bsd.kmod.mk> |
This file contains hidden or 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
-pipe -pedantic -Wundef -Wshadow -W -Wwrite-strings -Wcast-align -Wstrict-overflow=5 -Wconversion -Wpointer-arith -Wstrict-prototypes -Wformat=2 -Wsign-compare -Wendif-labels -Wredundant-decls -Winit-self | |
SRCS=yepstat.c print2.c |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include "json.hpp" | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); | |
static void do_whoami(const std::string &str); | |
static void do_nmap(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include "json.hpp" | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); | |
static void do_whoami(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include "json.hpp" | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); | |
static void do_whoami(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <map> | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <map> | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <map> | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <map> | |
static void do_ls(const std::string &str); | |
static void do_help(const std::string &str); | |
static void do_cat(const std::string &str); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <vector> | |
#include <map> | |
#include <chrono> | |
#include <thread> | |
static void trimQuotes(char *bufPtr, const char *strPtr); |