Commit Graph

156 Commits

Author SHA1 Message Date
GaryOderNichts
2016e429c1 wutnewlib: fix lock_try_acquire
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
2026-02-16 19:10:34 +01:00
fincs
afa43f676d
wutnewlib: implement new unified threading syscalls (replaces wutstdc++) (#434)
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
2026-01-25 19:33:25 +01:00
Daniel K. O.
1b412d2769
wutsocket fixes: select() handles timeout wrong, and poll() lacks a safety check (#428)
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
* - Fix select() to also update the fd_set arguments on timeout condition.
- Move the nfds argument restriction to the nsysnet side.
- Allow user-defined FD_SETSIZE, since newlib's fd_set allow custom sizes.
- Define __socklen_t_defined when socklen_t is typedefed.

* Added safety check for poll(): the nsysnet fd must fit in nsysnet_fd_set.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2025-10-10 20:27:42 +02:00
GaryOderNichts
2c98cc91aa Run clang-format
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
2025-06-05 11:06:04 +01:00
GaryOderNichts
2b66122422 Add .clang-format
Co-authored-by: Maschell <Maschell@gmx.de>
2025-06-05 11:06:04 +01:00
GaryOderNichts
5fdc7ffe85 wutnewlib: Remove obsolete declarations to fix compiling with GCC 15 2025-05-24 20:56:14 +02:00
Daniel K. O.
81db8e5dd4
Add WUT_FORMAT_PRINTF and fix some format string bugs. (#404)
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
2025-05-17 22:35:56 +02:00
GaryOderNichts
1bbdc75f27 wutsocket/ioctl: Remove unimplemented requests
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
2025-05-16 22:13:22 +02:00
Maschell
09e3a2440b
nn_idb: Fix copy headers, fix nn::idb::IDBReader::Initialize (#395)
* nn_idb: Fix copy headers, fix nn::idb::IDBReader::Initialize

* Update libraries/nn_idb/src/IDBReader.cpp

Co-authored-by: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>

---------

Co-authored-by: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>
2024-08-04 23:44:54 +02:00
jranderia3
c2682dd964
whb/gfx: Use 4:3 TV buffers on 4:3 TVs (#383)
* square monitor support

* Update gfx.c

Fix typo

* do it using gx2 instead of avm

* Update gfx.c

remove some newlines

* Update gfx.c

newline fix

* Update gfx.c
2024-06-14 20:04:58 +02:00
Maschell
4e652e196a nn_idb: move include into libraries 2024-04-27 13:38:33 +02:00
Maschell
f0582e2e3e nn_idb: Implement icon database reading 2024-04-26 14:46:56 +02:00
Maschell
f01a0b87ac
Implement more functions/classes from nn::sl (#354) 2024-04-22 19:06:02 +01:00
Maschell
c1457779be
wut_newlib: Implement __syscall_abort and __syscall_assert_func (#359) 2024-04-22 19:05:00 +01:00
Maschell
31943d2ecd wutmalloc: make sure to set errno properly on error 2024-04-05 21:21:39 +02:00
Maschell
1adf4740c7
wutnewlib: implement abort, assert and assert_func (#337)
* wutnewlib: implement abort, assert and assert_func

* wut_newlib: Trigger trap instruction on assert/abort

* wut_newlib: Replace snprintf with cafe-os equivalent.
2024-01-15 18:36:59 +01:00
GaryOderNichts
af0ccf48b7
nn_nets2: Add somemopt (#338) 2023-11-30 12:22:49 +01:00
GaryOderNichts
922eb4583e wutsocket: allow sending multicasts 2023-10-17 23:01:41 +02:00
Maschell
8df8e18e76
wutdevoptab: Add support for opening files with more flag combinations (#322) 2023-06-20 21:36:41 +02:00
Maschell
071345feb2 Implement wut_set_thread_specific/wut_get_thread_specific as weak functions 2023-06-20 21:35:53 +02:00
GaryOderNichts
3ae38b15c7
Implement __syscall_getreent (#318) 2023-05-21 14:03:48 +01:00
Dave Murphy
1a85382b17 devoptab_fsa: use c++ headers 2023-05-01 15:53:04 +01:00
Maschell
0c316f529d wutmalloc: Always align allocated memory to 0x40 to match newlib behaviour 2023-04-17 12:34:39 +01:00
Maschell
4083224b51 wutdevoptab: Implement devoptab using FSA functions 2023-04-16 18:17:04 +01:00
Maschell
e492c31d06 wutdevoptab: Rename all files to *fsa*.cpp 2023-04-16 18:17:04 +01:00
Dave Murphy
803b1417c4
refactor for devkitPPC r42 2023-04-15 23:46:41 +01:00
GaryOderNichts
4a98cd4797 Separate vpadbase from vpad 2023-04-01 17:05:16 +02:00
GaryOderNichts
1f03c2fb73 Fix export types for erreula and swkbd 2023-02-17 18:29:51 +01:00
Maschell
7f6e450300 wutcrt: Fix the trap instruction and move it directly into __rpx_start 2023-02-17 17:46:08 +01:00
GaryOderNichts
7d9fa9e416 Add IRC library 2022-12-06 12:52:04 +01:00
Maschell
96d410c827 libwhb: Fix length check in ConsoleAddLine 2022-10-13 00:04:23 +02:00
GaryOderNichts
575b8897e7 wutstdc++: Fix __wut_cond_timedwait 2022-09-27 23:24:27 +02:00
Maschell
d106a44cf5 wutstdc++: Add weak variable __wut_thread_default_stack_size to override the default stack size 2022-09-21 21:01:43 +02:00
Maschell
aa2e76795f wutstdc++: Decrease the stack size for gthread threads from 4MiB to 128KiB. 2022-09-21 21:01:43 +02:00
Maschell
ec4a7eae1e wutdevoptab: check size of a read/write before checking the buffer alignment to reduce the read/write calls 2022-09-20 19:23:16 +02:00
GaryOderNichts
192a26ffc1 whb/console: Add missing MEMRecordStateForFrmHeap 2022-09-17 22:15:07 +02:00
Maschell
be79908dbd wutstdc++: Fix potential memory leak when thread creation fails. 2022-09-17 21:53:17 +02:00
Maschell
6c1388abd7 wutstdc++: Check if memory allocations were successful on thread creation 2022-09-17 21:46:25 +02:00
Maschell
95feb9288a wutdevoptab: Fix memory leak in open() 2022-08-28 00:15:13 +02:00
GaryOderNichts
366f02606b Add several definitions for Multi/Double DRC mode 2022-08-28 00:14:56 +02:00
Maschell
733d5000fc wutdevoptab: Add support for more open() flags (and flag combinations) 2022-08-06 14:14:11 +02:00
GaryOderNichts
42292fadc6 wutnewlib: Use OSCompareAndSwapAtomicEx for sbrk 2022-08-05 23:31:10 +02:00
GaryOderNichts
e81c3a159f wutstdc++: Use OSSwapAtomic where compare isn't necessary 2022-08-05 23:31:10 +02:00
GaryOderNichts
4b81e19867 wutnewlib: Replace built-in atomics with OS* atomics 2022-08-05 23:31:10 +02:00
Maschell
414843d274 wutdevoptab: Return early in lseek when the position is not changing 2022-08-02 23:44:18 +02:00
Maschell
1c5e6af39b wutdevoptab: Fix "syncing" the file->offset with the real offset on append mode. 2022-08-02 23:08:29 +02:00
Maschell
a902da1ce7 wutdevoptab: Prevent file-offset overflow in seek implementation 2022-07-30 18:06:39 +02:00
Maschell
3469036c44 wutdevoptab: Only call FSGetStatFile to obtain the filesize on SEEK_END 2022-07-30 18:04:36 +02:00
GaryOderNichts
2c299d71fc devoptab: Make sure file->offset gets updated and initialized 2022-07-30 17:58:06 +02:00
Maschell
b86ac2bf98 wutdevoptab: Fix check for O_UNENCRYPTED flag 2022-07-30 17:57:05 +02:00