summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
11 hoursliboda: Add oda_movewin()exptIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 hourslibgfx: draw: Add gfx_copy_region()Ian Moffett
This commit introduces a new gfx_copy_region() function that allows a rectangular region of the screen to be defined and its contents copied to a different part of the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
12 hourslibgfx: draw: Add gfx_get_pix() functionIan Moffett
Introduce gfx routine to grab the RGB value of a specific pixel at a specific location on the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
12 hoursliboda: Add window cacheIan Moffett
Implement a window cache to avoid the overhead of back-to-back calls for malloc() and free. This commit additionally introduces a new oda_shutdown() function for cleaning up the library. Signed-off-by: Ian Moffett <ian@osmora.org>
21 hoursliboda: input: Remove unused definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
21 hoursliboda: input: Add constant 'ODA_KEY_*' definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
21 hoursliboda: Add initial input subsystemIan Moffett
This commit introduces the initial input subsystem and adds basic keyboard handling via a callback defined by the compositor. Signed-off-by: Ian Moffett <ian@osmora.org>
34 hourslib: liboda: Add oda_plotwin() window plotterIan Moffett
Introduce the oda_plotwin() function to allow one to plot a pixel onto a window relative to the starting X/Y position of it. Plotting to (0,0) draws to the top left corner of the window. Signed-off-by: Ian Moffett <ian@osmora.org>
34 hourslibgfx: draw: Add gfx_plot_point() pixel plottingIan Moffett
Implement mechanism that allows one to plot pixels on the screen with a specific color at specific x/y coordinates. Example: -- struct gfx_point p = { .x = 150, .y = 200, .color = GFX_GREEN }; /* Draw green point at (150,200) */ gfx_plot_point(&ctx, &p); -- Signed-off-by: Ian Moffett <ian@osmora.org>
34 hourslibgfx: draw: Add gfx_pixel_bounds() helperIan Moffett
Implement helper to check if a point on the screen is within bounds of the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
35 hourslib: libgfx: Move color defines to draw.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
35 hourslib: Introduce initial liboda sourcesIan Moffett
Please refer to 'share/docs/lib/liboda.md' for more information on the OSMORA Display Architecture (ODA). Signed-off-by: Ian Moffett <ian@osmora.org>
35 hoursbuild: lib: Remove seperator line in libgfx buildIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
39 hourslib: libgfx: Add GFX_DARK and GFX_AQUAIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayslib: 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>
2 daysbuild/lib: Add Makefile to libs/Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Implement additional socket routinesIan Moffett
Implements: - sendmsg() - recvmsg() - connect() Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: libc: Add initial ctype.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysusr: libc: Add libc socket functionsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 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>