summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
34 hourslib: Introduce libgfxIan Moffett
This commit introduces libgfx which is a low-level graphics library and does not know anything about windows, display architecture, etc. The job of libgfx is soley to provide an API to draw shapes, graphical objects and perform operations on them. Signed-off-by: Ian Moffett <ian@osmora.org>
34 hoursbuild/lib: Add Makefile to libs/Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Implement additional socket routinesIan Moffett
Implements: - sendmsg() - recvmsg() - connect() Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: libc: Add initial ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysusr: libc: Add libc socket functionsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysusr: libc: Escape '%' with '%%' in vsnprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-17lib: libc: Add waitpid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-14usr: libc: Add math.h + musl math impl portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-10usr: libc: Duplicate cached username with strdup()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-10usr: libc: Add strdup()Ian Moffett
- Implement the strdup() string routine to duplicate strings in a new buffer. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-10user: libc: Add crypto/sha256 supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-09lib: libc: Introduce POSIX getlogin()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-09kernel: ucred: Add SYS_getuidIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-09usr: libc: Add setuid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-09usr: libc: Introduce POSIX fseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-09usr: bin: Make 's' const within atoi()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-08usr: libc: Add strtok()Ian Moffett
Ported from OpenBSD Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-03usr: libc: Add POSIX getpid() and getppid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-01usr: libc: Implement ftell()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-29usr: libc: Add inject() implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr: libc: Implement POSIX sysconf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr: libc: Store auxiliary vector tag/value pairsIan Moffett
This commit introduces the global libc '__libc_auxv' containing auxiliary vector entries as per the System V Application Binary Interface Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr: libc: Implement fgets()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr: libc: Implement fopen() and fclose()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-24usr: libc: Add realloc()Ian Moffett
Implement realloc() to resize allocated memory from malloc() Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-24usr: libc: Add fileno()Ian Moffett
Add POSIX fileno() to grab a file descriptor number from a stream pointer. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-22libc: malloc: Add HEAP_ALIGN defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-22libc: malloc: Fix typos in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-22usr: libc: Implement initial malloc() and free()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-21usr: libc: Add rand() and srand()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-19usr: libc: Add AARCH64 stubsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-19usr: libc: Look in src/arch/$(ARCH) for asm filesIan Moffett
This allows seperation of different architectures Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-17usr: libc: Add sleep() in time.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-15usr: libc: Add atoi()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-13usr: libc: Set argc/argv when calling main()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-13kernel: spawn: Add argv + stub envp argumentsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-13usr: libc: Support padding of hex digitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-13usr: libc: Add printf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-11usr: libc: Add lseek()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09usr: libc: Add access() in unistd.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09usr: libc: Add stat() in sys/stat.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09usr: libc: Reset pad_width if usedIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09usr: libc: Include stdbool.h in itoa.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09usr: libc: Include stdint.h in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08usr: libc: Add snprintf() implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08usr: libc: Add initial vsnprintf() implIan Moffett
- Support %x specifier for base 16 strings - Support %d specifier for base 10 strings - Support %p specifier for pointer strings - Allow padding of %d strings Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08usr: libc: Add itoa()Ian Moffett
- Add itoa() base 10 variant - Add itoa() base 16 variant Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08usr: libc: Add memcpy() in string.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-07usr: libc: Add stdio read routinesQuinn Stephens
Added fread(), fgetc(), getc(), and getchar() Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-05usr: libc: Add stdio.hQuinn Stephens
* Added stdio.h and various definitions * Added fwrite(), fputc(), putc(), putchar(), fputs(), and puts() Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>