Maschell
f4cd99f1b1
libwutsocket: Add __wut_socket_init_devoptab() and __wut_socket_fini_devoptab()
2021-09-17 15:56:19 +02:00
Maschell
912a373b12
libwutsocket: Change ACConnect() to ACConnectAsync(), Add ACClose()
2021-06-08 20:04:34 +02:00
fincs
f78363be81
wutsocket: Revise automatic initialization, see details:
...
- socket_lib_init/exit wrappers are no longer stubs; they now perform
refcounting & automatically register/deregister the socket devoptab
- Similarly, WHBInitialize/DeinitializeSocketLibrary are now aliased
to socket_lib_init/exit
- WHBLogUdp now references socket_lib_init/finish again
- __init/fini_wut_socket have been simplified and are now weak,
this is intended to allow users to customize their behaviour
2021-06-08 20:04:33 +02:00
GaryOderNichts
d0dc9869e5
wutsocket: avoid aliasing issues
2021-03-07 16:40:55 +01:00
GaryOderNichts
174b0c0a86
wutsocket: implement gethostid and gethostname
2021-03-07 16:40:55 +01:00
GaryOderNichts
f1e9cbd58a
wutsocket: implement missing functions
2021-03-07 16:40:55 +01:00
fincs
efc1bd47ff
wutsocket: only link in networking layer if actually used
2021-03-07 13:36:59 +01:00
rw-r-r-0644
c377cffe13
Network socket changes ( #136 )
2021-03-07 13:09:12 +01:00
fincs
6c168606a3
wutstdc++: Remove link-time dependency on libstdc++
2021-03-06 19:31:09 +01:00
fincs
d04f68f8b1
Minor linkscript cleanup
2021-03-04 19:48:45 +01:00
GaryOderNichts
712843cd58
wutnewlib: fix gettod
2021-02-09 20:17:56 +00:00
Maschell
af99d5acbd
libwhb: Use FS_ERROR_FLAG_ALL instead of -1
2021-01-01 17:21:44 +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
Maschell
bc6ee14ca3
WHB: Fix missing FSDelClient ( #158 )
2020-11-28 16:18:34 +00: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
Dave Murphy
b168032339
fix exit sequence
2020-06-07 13:09:11 +01:00
Dave Murphy
e096dad4c5
reworked syscalls interface
2020-06-07 13:09:11 +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
Maschell
aaa045af97
libwhb: Don't add a LogHandler if it's already in the list. ( #140 )
2020-06-03 21:05:08 +01:00
GaryOderNichts
27fbfd55fb
Add WHBLogConsoleSetColor ( #138 )
2020-05-26 09:03:19 +10:00
Ash Logan
1df3d9a40d
whb/gfx: Capitalise v in WHBGfxGetTVColourBuffer
...
All the other public whb/gfx functions capitalise DRC and TV, so do that
here.
2020-02-10 15:12:22 +11:00
James Benton
d39e7cad4a
wutstdc++: Use OSSetThreadRunQuantum in gthread implementation.
...
To emulate pre-emptive scheduling which is what would be expected from
gthread.
2020-01-18 10:58:02 +00:00
James Benton
b895e7b56d
whb: Fix WHB console for foreground releasing and acquire.
2019-11-24 12:25:17 +00:00
James Benton
cd6e74fd17
whb: Fix WHBGfxShutdown when app is in background.
2019-11-24 11:52:47 +00:00
James Benton
ac17c9a885
whb/gfx: Add some functions to access colour / depth / context.
2019-11-23 11:39:43 +00:00
James Benton
e9f8b191e5
whb: Only register home button denied callback when booted from HBL.
2019-11-23 11:32:13 +00:00
James Benton
7d0f02b5e6
whb: Remove useless command server code.
...
Not sure why this was ever in WHB....
2019-11-23 11:31:57 +00:00
Ash Logan
28ffb89c02
Merge 'build-refactor' attempt #1 ; get upstream changes
2019-04-23 18:37:05 +10:00
Ash Logan
f92657e8b5
coreinit: Use rplwrap for exit (__rplwrap_exit)
2019-04-22 12:43:37 +10:00
Ash Logan
fb9b7ab3fb
wutstdc++: remove volatile keyword
...
Who knows? not me. Seems to work okay without it
wut_stdcpp.cpp
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:9: error:
expected '(' before '__volatile__'
__asm__ __volatile__(
^~~~~~~~~~~~
(
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:4:4: error:
expected unqualified-id before string constant
"\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ash/src/wut/libraries/wutstdc++/wut_stdcpp.cpp:3:22: error:
expected ')' before string constant
__asm__ __volatile__(
~^
)
"\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:13: wut_stdcpp.o]
Error 1
2019-04-09 20:41:45 +10:00
Ash Logan
869fe709ea
Revert "wutstdc++: Move __gxx_personality to dedicated Assembly file"
...
This reverts commit 370eeb28e9
.
I didn't know what this did, sorry.
2019-04-09 20:26:35 +10:00
Ash Logan
370eeb28e9
wutstdc++: Move __gxx_personality to dedicated Assembly file
...
I was getting issues with __volatile__ for unknown reason, so moving
this to a dedicated file sidesteps the issue entirely and passes this
straight to GAS.
2019-04-09 16:44:42 +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
0b920cf9b9
Automatically link wutstdc++ when C++ is used
2019-02-12 12:46:34 +01:00
fincs
26ac7b3ff2
wutmalloc: Bugfixes, see details:
...
- Added (dummy) __init/fini_wut_malloc stubs called by wutcrt
in order to ensure that wutmalloc gets linked in
- malloc/realloc/calloc now properly set errno to ENOMEM during failure
- realloc no longer fails if ptr==NULL (in this case it works
like a regular malloc)
- realloc no longer does an out of bounds copy if the new size
is smaller than the old size
- free(NULL) is now supported as per the C standard
- Disabled sbrk/malloc-lock support code in wutnewlib because
newlib's malloc is replaced with wutmalloc
2019-02-12 12:46:34 +01: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
fb4a54fc4c
Rename GX2_SQ_SELMASK macro to GX2_SEL_MASK.
2018-10-21 15:24:25 +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
ea009ce10b
wutcrt: Forward newlib _exit to the coreinit.rpl _Exit
2018-09-30 08:40:38 +01:00
James Benton
400318c3d1
Rename rpl_main to rpl_entry.
2018-09-30 08:40:38 +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
James Benton
6f014e48d2
Remove last usages of GLOB_RECURSE.
2018-06-28 16:01:16 +01:00
James Benton
5f1b1902f6
Prefix structsize macros with WUT_
2018-06-20 11:05:16 +01:00
James Benton
b4619783ca
Remove sized types from wut_types.h
...
stdint.h exists for a reason.
2018-06-20 11:05:16 +01:00
James Benton
39429c0cbc
cmake: Cleanup some CMake stuff.
2018-06-15 13:59:55 +01:00
James Benton
f9799cf3dd
Fix __init_wut_sbrk_heap.
2018-06-15 13:59:30 +01:00