Commit Graph

146 Commits

Author SHA1 Message Date
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
Maschell
028899ecd3 wutcrt: Add a trapword in case a debugger is initialized to allow debugging 2022-07-27 23:40:43 +02:00
Maschell
215adf35bc wutcrt: Make sure main is called with a 8 byte aligned stack pointer 2022-07-27 23:12:03 +02:00
Crementif
d621766b2f
devoptab: Implement various functions and fixes (#223)
- Improved error codes for unlink and rmdir regarding non-empty directories.
- Return ENOENT on empty strings since it softlocks the Wii U. Since the devoptab relies on the cwd it's pretty easy to run into with stuff like recursive path creation for example.
- Clean up open_r mode_t->string conversion
- Improved FSStat->mode_t conversion
- Add FSOpenFileEx and flags
2022-07-23 12:03:07 +02:00
GaryOderNichts
f1b5da996f
Replace the CafeOS default heap with a custom one (#221) 2022-06-30 21:05:11 +02:00
Maschell
0c4d7685f1 wutdevoptab: Add stub implemenation of utimes and implement lstat via stub to avoid undefined behaviour. 2022-06-18 16:55:34 +02:00
Maschell
8a2bf09800 wutdevoptab: Fix setting mode flags 2022-06-18 12:47:04 +02:00
Maschell
89b396d373 wutdevoptab: Only update the file->offset on a successful seek. 2022-06-18 12:46:45 +02:00
Dave Murphy
6494a30c3d wutdevoptab: Make sure to always read into/write from a properly aligned buffer 2022-06-04 21:35:58 +02:00
Maschell
c0e4eb7ae8 wutdevoptab: simplify the __wut_fs_translate_time implementation 2022-06-04 19:23:30 +02:00
Maschell
f0da3d7236
wutdevoptab: Add time and mode information for stat and fstat (#218)
* wutdevoptab: Add time and mode information for stat and fstat

* wutdevoptab: rename __wut_translate_mode to __wut_fs_translate_mode
2022-05-07 11:26:11 +01:00