RetroArch/wiiu/system
gblues f22c337cfc WIIU: cleanup and build-out of wiiu bootstrap code
I used the code in `wiiu/` to bootstrap my own WiiU homebrew app; this
PR reflects some changes I needed to make, that might be useful upstream.

1. Clean up filesystem initialization

Filesystem driver initialization was lumped in with filesystem mounting;
and that was a problem in my project, because I needed to be able to remount
the SD card on the fly. So, now it's split up.

I've added a callback object named "hooks" that can be used by consuming
applications to handle filesystem mounting and unmounting. If these hooks are
not provided, then the existing default behavior occurs.

2. Expand socket handling

- add `SO_NONBLOCK` flag for non-blocking socket I/O
- add normal errno defines like `EWOULDBLOCK` `EAGAIN`.

3. Remove RetroArch dependencies

- the exception handler protects usage of version_git with
  `#ifdef HAVE_GIT_VERSION` but not the include, so I added that.

  It also technically depends on version.h, but I'm not touching that.
  It's easy enough to implement and I needed the same functionality. I'm
  not sure what the best solution for that dependency is.

- missing_libc_functions.c included features/features_cpu.h which is
  a libretro include. This appears to be a stale include though, because
  everything compiles and works without it.

- an ifdef referencing the RA "WIIU" define, rather than the devkitpro
  "__wiiu__" define
2018-06-05 00:06:40 -07:00
..
atomic.c Add small snippet for atomic value swapping 2018-04-14 01:26:26 -07:00
dynamic.c WiiU: C89 style comments 2018-01-06 09:44:03 -03:00
dynamic.h WiiU: C89 style comments 2018-01-06 09:44:03 -03:00
exception_handler.c WIIU: cleanup and build-out of wiiu bootstrap code 2018-06-05 00:06:40 -07:00
exception_handler.h (wiiu) small style nits; declare variables at top; C comments 2018-01-05 13:09:05 +01:00
imports.h WIIU: cleanup and build-out of wiiu bootstrap code 2018-06-05 00:06:40 -07:00
memory.c (WIIU) add more NULL check to *_free functions. 2018-01-07 03:45:41 +01:00
memory.h (wiiu) small style nits; declare variables at top; C comments 2018-01-05 13:09:05 +01:00
missing_libc_functions.c WIIU: cleanup and build-out of wiiu bootstrap code 2018-06-05 00:06:40 -07:00
stubs_elf.S (WiiU) implement the missing requirement for core loading: exec, 2017-01-25 19:52:31 +01:00
stubs_rpl.S (WiiU) implement the missing requirement for core loading: exec, 2017-01-25 19:52:31 +01:00