summaryrefslogtreecommitdiff
path: root/util/alternatives/lib.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-25 17:36:52 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-25 17:38:22 -0400
commit6af21e6a4f2251e71353562d5df7f376fdffc270 (patch)
treede20c7afc9878422c81e34f30c6b010075e9e69a /util/alternatives/lib.c
downloadcomus-6af21e6a4f2251e71353562d5df7f376fdffc270.tar.gz
comus-6af21e6a4f2251e71353562d5df7f376fdffc270.tar.bz2
comus-6af21e6a4f2251e71353562d5df7f376fdffc270.zip
initial checkout from wrc
Diffstat (limited to 'util/alternatives/lib.c')
-rw-r--r--util/alternatives/lib.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/util/alternatives/lib.c b/util/alternatives/lib.c
new file mode 100644
index 0000000..4b7a9ed
--- /dev/null
+++ b/util/alternatives/lib.c
@@ -0,0 +1,56 @@
+/**
+** @file lib.c
+**
+** @author Numerous CSCI-452 classes
+**
+** @brief C implementations of common library functions
+**
+** These are callable from either kernel or user code. Care should be taken
+** that user code is linked against these separately from kernel code, to
+** ensure separation of the address spaces.
+**
+** This file exists to pull them all in as a single object file.
+*/
+
+#include <common.h>
+
+#include <lib.h>
+
+/*
+**********************************************
+** MEMORY MANIPULATION FUNCTIONS
+**********************************************
+*/
+
+#include "common/memset.c"
+#include "common/memclr.c"
+#include "common/memcpy.c"
+
+/*
+**********************************************
+** STRING MANIPULATION FUNCTIONS
+**********************************************
+*/
+
+#include "common/str2int.c"
+#include "common/strlen.c"
+#include "common/strcmp.c"
+#include "common/strcpy.c"
+#include "common/strcat.c"
+#include "common/pad.c"
+#include "common/padstr.c"
+#include "common/sprint.c"
+
+/*
+**********************************************
+** CONVERSION FUNCTIONS
+**********************************************
+*/
+
+#include "common/cvtuns0.c"
+#include "common/cvtuns.c"
+#include "common/cvtdec0.c"
+#include "common/cvtdec.c"
+#include "common/cvthex.c"
+#include "common/cvtoct.c"
+#include "common/bound.c"