Here is a brief overview of the files in the lib directory.
-
ctype.h
inttypes.h
limits.h
stdarg.h
stdbool.h
stddef.h
stdint.h
stdio.c
stdio.h
stdlib.c
stdlib.h
string.c
string.h:
A subset of the standard C library. See section C.2 C99, for information on a few recently introduced pieces of the C library that you might not have encountered before. See section C.3 Unsafe String Functions, for information on what's been intentionally left out for safety. -
debug.c
debug.h:
Functions and macros to aid debugging. See section E. Debugging Tools, for more information. -
random.c
random.h:
Pseudo-random number generator. The actual sequence of random values will not vary from one Pintos run to another, unless you do one of three things: specify a new random seed value on the -rs kernel command-line option on each run, or use a simulator other than Bochs, or specify the -r option to pintos. -
round.h:
Macros for rounding. -
syscall-nr.h:
System call numbers. -
kernel/list.c
kernel/list.h:
Doubly linked list implementation. -
kernel/bitmap.c
kernel/bitmap.h:
Bitmap implementation. -
kernel/hash.c
kernel/hash.h:
Hash table implementation. -
kernel/console.c
kernel/console.h
kernel/stdio.h:
Implements printf() and a few other functions.