Dave Murphy
e648524fa5
fix stringop-truncation warnings ( #84 )
...
avoid gcc 8.1.0 diagnostics as per https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/Warning-Options.html#index-Wstringop-truncation
2018-05-08 21:58:38 +02:00
fincs
e001318c42
Fix strncat vulnerabilities in fs_dev.c [reported by @TuxSH]
2018-05-02 16:09:11 +02:00
fincs
2818c99dea
Revise fsdev initialization, see details:
...
- Removed fsdevInit/Exit
- Now automatically initializing fsdev state on first mount
- Added fsdevMountSdmc (replaces fsdevInit)
- Added fsdevUnmountAll (replaces fsdevExit)
2018-05-01 19:06:14 +02:00
yellows8
37bb9a6b7f
Added nacpGetLanguageEntry and SetLanguage_Total.
2018-04-18 23:38:01 -04:00
plutooo
daf819cb75
Stylefixes
2018-04-15 23:28:28 +02:00
yellows8
a3baa0eeb1
Allow using multiple interfaces with usbComms. Added usbComms Ex funcs. Use RwLock with usbComms. Various other usbComms changes.
2018-04-11 17:18:23 -04:00
Dave Murphy
45b36774e0
add socket flags translation
2018-03-25 17:51:09 +02:00
yellows8
51293c7fb0
In socket ioctl(), properly call fcntl-F_SETFL with the new flags.
2018-03-20 22:49:52 -04:00
Dave Murphy
21d27b935e
modularise nxlink code
2018-03-18 20:51:49 +01:00
Dave Murphy
1394891509
better tag for nxlink host ip
2018-03-18 20:51:49 +01:00
Dave Murphy
23f577576c
more checking of NXLINKED arg
2018-03-18 20:51:49 +01:00
Dave Murphy
e8fdd73561
add support for finding nxlink host
2018-03-18 20:51:49 +01:00
yellows8
49bea43cce
Added envGetLastLoadResult().
2018-03-11 17:40:28 -04:00
TuxSH
e0457c4534
Handle bsdInitialize failure codes properly
2018-02-27 19:14:44 +01:00
TuxSH
d33b26016d
Add documentation to bsd.h and sfdnsres.h, etc.
2018-02-27 19:14:44 +01:00
TuxSH
3709ee92a5
Fix netdb functions
2018-02-27 19:14:44 +01:00
TuxSH
888f7e101f
Fix inet_ntop6
2018-02-27 19:14:44 +01:00
TuxSH
472d305883
Move socket.c definitions around, fix bugs
2018-02-27 19:14:44 +01:00
TuxSH
dcf3e56300
Implement netdb.h functions, fix bugs, etc.
2018-02-27 19:14:44 +01:00
TuxSH
4b685d676b
Add basic IPv6 definitions as sfdnsres seems to support it...
...
...also fix a bug in the inet_* functions.
2018-02-27 19:14:44 +01:00
TuxSH
0b92bb76b0
Add newlib wrapper for sockets...
...
... fix several bugs, etc.
2018-02-27 19:14:44 +01:00
yellows8
5664830f35
Fixed args parsing with quotes.
2018-02-27 02:14:23 -05:00
plutoo
d3cc781bf6
Stylefix for nro
2018-02-26 02:10:49 +01:00
Dave Murphy
0bbfbadc39
switch to 16x16 console font
2018-02-25 15:49:25 +01:00
yellows8
e24c20f9e7
Added Nro prefix to Asset in nro.h + updated romfs_dev for this.
2018-02-24 15:39:30 -05:00
yellows8
4c1b09d6b9
Check for invalid handle in fs*Close(). Added fsOpenDataStorageByCurrentProcess(), fsStorageRead(), and fsStorageClose(). Added fsdevGetDefaultFileSystem(). Imported nro.h from nx-hbmenu. Implemented proper RomFS support.
2018-02-23 22:29:43 -05:00
shinyquagsire23
1b255bfe15
Add usleep
2018-02-21 08:28:18 +01:00
plutoo
f8a86bf7b6
Merge branch 'master' of https://github.com/switchbrew/libnx
2018-02-21 08:38:49 +01:00
plutoo
e25aae5a97
Workaround for burn in issue
2018-02-21 08:38:22 +01:00
yellows8
0dcaeec959
In __libnx_gtod() set tv_usec, and moved+updated the timezones comment.
2018-02-20 22:24:35 -05:00
yellows8
14263ddd78
Initial time support, timezones are not handled yet.
2018-02-20 18:17:32 -05:00
yellows8
20cd940095
Implemented arg parsing for NRO env. When args aren't available, set __system_argv to {ptr to NULL} instead of NULL.
2018-02-17 21:25:21 -05:00
yellows8
3c6b8bb6dd
Removed envGetArgc() and the related code, since it was removed from wiki-ABI. Updated a comment in argv.c.
2018-02-16 22:40:53 -05:00
yellows8
67af341594
Fixed romfs_dir struct for the parent field and fixed romfs_dev.h formatting.
2018-02-13 17:50:21 -05:00
yellows8
13b4c74723
Updated gfx API. Replaced gfxSetDoubleBuffering() with gfxSetMode(), and added GfxMode enum. Updated gfx.h comments. Updated gfxGetFramebufferDisplayOffset() for using the aligned width. The new GfxMode_LinearDouble is now used by default, apps must not use gfxGetFramebufferDisplayOffset() with this mode. Apps using gfxGetFramebufferDisplayOffset() must be updated.
2018-02-12 16:08:25 -05:00
yellows8
4137f9aefe
Allocate heap with the size determined via svcGetInfo by default. Updated heap comments.
2018-02-05 22:21:44 -05:00
plutoo
356a06fb94
Fix bug where attempts to parse __argdata__ while running as an NRO
2018-02-04 03:29:59 +01:00
yellows8
2103e40448
Better argdata validation.
2018-02-03 21:06:23 -05:00
TuxSH
e7c57fbd0b
Fix 85d7ac4
2018-01-31 01:44:30 +01:00
TuxSH
85d7ac4da1
Restore initial sp on application exit
2018-01-31 01:14:48 +01:00
yellows8
83ea6fb32e
Imported romfs_dev from libctru with adjustments, this is currently unusable.
2018-01-28 21:18:53 -05:00
Lioncash
b637276c48
Silence a few missing prototype warnings
2018-01-28 01:03:56 +01:00
yellows8
e1347f367c
Enabled code which requires devkitA64 a6.
2018-01-25 22:16:14 -05:00
Dave Murphy
305d4bf3e3
move crt0 to libnx
2018-01-25 01:44:59 +01:00
yellows8
e39dc2baf8
Fixed building when fsdev usage is enabled.
2018-01-24 16:05:47 -05:00
TuxSH
5b0de6c054
Move tmem allocation in bsdInitalize...
...
...add bsdExit, change the default config's "version" field to 1.
2018-01-22 22:11:33 +01:00
plutoo
6fa8370bfb
This looks better
2018-01-22 20:11:55 +01:00
TuxSH
5abc4873d8
Include only what is really necessary...
...
add pragma once in every header, etc.
2018-01-22 18:42:57 +01:00
plutoo
e54bbc54ea
Fix codestyle for results
2018-01-21 18:40:23 +01:00
yellows8
cd881bbc0e
Added envHasNextLoad().
2018-01-20 18:25:35 -05:00