GaryOderNichts
2c98cc91aa
Run clang-format
...
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
Daniel K. O.
81db8e5dd4
Add WUT_FORMAT_PRINTF and fix some format string bugs. ( #404 )
C/C++ CI / ubuntu-latest (push) Has been cancelled
2025-05-17 22:35:56 +02:00
Maschell
8df8e18e76
wutdevoptab: Add support for opening files with more flag combinations ( #322 )
2023-06-20 21:36:41 +02:00
Dave Murphy
1a85382b17
devoptab_fsa: use c++ headers
2023-05-01 15:53:04 +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
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
Maschell
95feb9288a
wutdevoptab: Fix memory leak in open()
2022-08-28 00:15:13 +02:00
Maschell
733d5000fc
wutdevoptab: Add support for more open() flags (and flag combinations)
2022-08-06 14:14:11 +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
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
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
Maschell
578674a336
wutdevoptab: Replace FSError usage with FSStatus in __wut_fs_translate_error
2022-04-15 16:59:42 +01:00
Maschell
616ebe1a06
wutdevoptab: Only call FSUnmount if FSMount was successful
2022-02-27 16:06:22 +01:00
Maschell
62b78f7b9f
coreinit: Add missing parameter to FSChangeMode/FSChangeModeAsync ( #199 )
2022-02-26 16:55:47 +01:00
Maschell
920c8ad3d6
wutdevoptab: Add missing FSUnmount on fini ( #207 )
2022-02-26 16:54:18 +01:00
Maschell
510409db7a
wutdevoptab: Use FS_ERROR_FLAG_ALL instead of -1
2021-01-01 17:21:44 +01:00
Maschell
79b8597a68
wutdevoptab: Only allocate a new buffer if the given buffer is not aligned properly ( #159 )
2021-01-01 17:16:40 +01:00
V10lator
83ca413027
Translate more FSErrors to errnos ( #150 )
2020-07-22 03:23:29 +01:00
Maschell
545ea62e11
devoptab: add missing S_IFREG flag in the fstat return value
2020-06-23 10:45:50 +01:00
Maschell
9796ca64b2
wutdevoptab: Add missing RemoveDevice in __fini_wut_devoptab
2020-06-04 10:29:19 +01:00
Maschell
d659fd98d4
wutdevoptab: Reset __wut_fs_initialised and __wut_devoptab_fs_client in __fini_wut_devoptab
2020-06-04 10:29:19 +01:00
Ash Logan
28ffb89c02
Merge 'build-refactor' attempt #1 ; get upstream changes
2019-04-23 18:37:05 +10:00
rw-r-r-0644
6ea6625b78
devoptab: Fix double free in __wut_fs_stat
...
The double free caused apps to crash when attempting to run stat on a directory
2019-02-24 15:48:46 +00:00
fincs
ee3bb10df4
First pass at adopting a devkitPro-style build system, see details:
...
- Added wut_rules and wut/rpx/rpl.specs to share/
- Replaced wut's CMake-based buildsystem with a standard Makefile
- Conflated all wut libraries into a single libwut.a library
- wut's old buildsystems (CMake & plain make) are broken as a result,
this will be fixed in the future
- Docs, tests and samples are not buildable either at the moment
- wutcrt/wutnewlib:
- RPX start function is __rpx_start, while RPL is __rpl_start
- __init/fini_wut_* functions are no longer weak
- __init_wut/__fini_wut are instead weak
- Removed _exit implementation
- exit syscall now points to _Exit instead of pointing to itself
- wutstdc++:
- Renamed .cc files to .cpp
- Temporarily disabled, due to an issue that will be addressed shortly
- wutdevoptab:
- Fixed uninitialized variable warnings in __wut_fs_read/write
2019-02-12 12:46:28 +01:00
James Benton
857fcd8eea
Build libraries with -Wall and -Werror.
2018-10-06 10:50:32 +01:00
James Benton
069e28acec
Make the devoptab code more consistent.
2018-10-06 10:41:24 +01:00
James Benton
690bd6ccbd
Revert "Rename wutdevoptab to wutdevoptab_sd"
...
This reverts commit 865af4609c .
Turns out it is for whole filesystem. oops.
2018-07-19 08:51:40 +01:00