Commit Graph

91 Commits

Author SHA1 Message Date
yellows8
49959e4e37 FS adjustments + fixed fsFsGetFreeSpace/fsFsGetTotalSpace. In fs_dev: fixed cwd handling, unmounting adjustments, use fsFsGetEntryType(), updated fsdev_dirnext(), and properly handle fsdev_statvfs(). 2017-11-29 01:47:11 -05:00
yellows8
02526c920e Updated comments for fsdevWriteSafe(). 2017-11-27 18:43:02 -05:00
yellows8
59880e9488 Removed output bytes_written for fsFileWrite() since the command doesn't actually return that. In fsdev_open(), set the FS_OPEN_APPEND flag when opening for writing. Adjusted file-creation handling in fsdev_open(). 2017-11-27 17:40:49 -05:00
plutoo
40dd1adc23 Mutex fix 2017-11-26 20:45:55 +01:00
plutoo
de52de8e88 Fixes for 1.0.0 2017-11-26 20:44:42 +01:00
yellows8
96010d3c75 Use a global field for default fsdev device. Added 'id' to fsdev_fsdevice struct. Adjusted fsdev mounting handling, and verify that the specified device name isn't already used. In _fsdevUnmountDeviceStruct(), call RemoveDevice() with ':' appended to name. Adjusted fsdevInit(). Adjusted comments for fsdevWriteSafe(). In fsdev_rename(), throw an error if the two paths don't use the same device. 2017-11-26 00:55:10 -05:00
yellows8
9703ddbf3e Fixed the stack_sz used for stack_top in threadCreate(). t->stack_sz is uninitialized at the time stack_top is set, hence this was causing memory corruption in some cases. 2017-11-25 12:54:42 -05:00
yellows8
cca73c47fa __thread fix by fincs. 2017-11-25 12:02:25 -05:00
yellows8
d7e611f9f4 fs_dev adjustments: disabled broken __thread, handle default device in fsdevFindDevice(), and check for fsdevFindDevice() failure in fsdev_fixpath(). Added a comment in _fsdevUnmountDeviceStruct(). Removed the return at the start of fsdev_open(). 2017-11-24 22:30:44 -05:00
yellows8
25f2839c75 Imported util/utf from libctru. Updated appInit/appExit. Fs adjustments + implemented IDirectory. Imported a modified version of sdmc_dev from libctru as fs_dev, this currently isn't usable. 2017-11-23 15:00:56 -05:00
yellows8
0bc5be0708 Fixed session-close error when using APPLET_TYPE_LibraryApplet. 2017-11-23 01:53:45 -05:00
yellows8
9c5afe8302 Added svcOutputDebugString. 2017-11-21 00:35:08 -05:00
shinyquagsire23
3db154a8f0 Add bsdSendTo and bsdSetSockOpt 2017-11-19 01:45:15 -07:00
plutoo
c252b0a9d3 Until newlib gets updated 2017-11-18 01:29:08 +01:00
plutoo
69ce83479a Mutex bringup 2017-11-17 16:15:28 +01:00
yellows8
42fbabe9d1 Added nvQueryEvent(). 2017-11-15 22:34:07 -05:00
plutoo
61ff5bd9a1
Merge pull request #18 from devkitPro/dka64-a5-updates
devkitA64 alpha 5 updates (locks, TLS, etc) {TEST BEFORE MERGE}
2017-11-16 01:36:39 +01:00
fincs
00b5758912 Fix whitespace in fatal.c 2017-11-14 19:33:29 +01:00
yellows8
567e8ed6e1 Imported more defines from linux ioctl.h. In nvIoctl(), only set the addr/size for send/recv buffers when the associated direction bit is set. 2017-11-14 12:15:23 -05:00
fincs
5e0b10db70 Page-align stack size in threadCreate 2017-11-14 01:14:36 +01:00
fincs
508a87ea5d Mark fatalSimple with __attribute__((noreturn)) 2017-11-14 01:14:23 +01:00
fincs
e836ee7bb9 Implement TLS/newlib reent support (untested) 2017-11-14 00:31:47 +01:00
fincs
03674bba85 Implement lock_init{_recursive} newlib syscalls 2017-11-14 00:31:47 +01:00
fincs
f27685b7b3 Integrate newlib locks with libnx (R)Mutex (untested, incomplete) 2017-11-14 00:31:47 +01:00
yellows8
9377851197 Imported usbComms from elsewhere. Removed usb_dev.h since the .c for it was previously removed. In usbDsInitialize(), skip calling _usbDsSetVidPidBcd() when deviceinfo is NULL. 2017-11-13 17:18:07 -05:00
yellows8
38cc12f02c Moved ioctl defines into a dedicated header, with some additional defines. Load the output error field for nv cmds. 2017-11-12 23:27:42 -05:00
yellows8
caa06c4d6c Implemented nv. Use TransactParcelAuto instead of TransactParcel when running on >=3.0.0. Added ipcQueryPointerBufferSize(). Minor other change. 2017-11-12 20:34:30 -05:00
plutoo
4543558cd3 Add moar syscalls 2017-11-12 03:57:49 +01:00
yellows8
41303238e2 Added svcGetProcessId. Fixed pid type for svcDebugActiveProcess. 2017-11-09 15:49:41 -05:00
yellows8
80890a3b8e Fixed gfx and parcel issues. Parcel logging adjustments, etc. Changed out_parcel to parcel_reply. 2017-11-08 22:36:30 -05:00
yellows8
1d8c51f6fa Added svcGetSystemTick. Added LIBNX_PARCEL_ERRBASE to result.h. Added BINDER_FIRST_CALL_TRANSACTION. Added gfxproducer and parcel. Use gfxproducer in gfx and added gfxSwapBuffers(). 2017-11-07 13:56:57 -05:00
yellows8
b5abd52b8b Implemented viSetLayerScalingMode(). Implemented vsync handling. Minor other change. 2017-11-05 00:50:58 -04:00
plutoo
d0c9d8294d Don't mind this 2017-11-05 04:02:00 +01:00
plutoo
9a67c39fd0 Moved cache.s to arm/, implemented kernel/version.c, get rid of broken uart driver [for now] 2017-11-05 03:58:54 +01:00
plutoo
fd128b0ae2 Random shit 2017-11-05 03:58:54 +01:00
yellows8
9866f8e8b2 Implemented binder. Added error LIBNX_BADINPUT. Set StrayLayer in viOpenLayer properly. 2017-11-04 18:28:13 -04:00
yellows8
224f7151b3 Fixed vi issues. 2017-11-03 16:24:00 -04:00
yellows8
c5e6783870 Return _gfxInit() retval properly. _viOpenLayer and _viCreateStrayLayer are broken. 2017-11-03 13:30:35 -04:00
yellows8
ec1faa34ef Added display+layer support. Started 'gfx'. 2017-11-03 12:33:33 -04:00
yellows8
d62b909757 Added hid. 2017-10-27 17:10:48 -04:00
yellows8
557d68139a Implemented applet. 2017-10-27 12:20:52 -04:00
yellows8
ff80e7e668 Added svcGetProcessList. 2017-10-21 11:31:23 -04:00
yellows8
5fbf234afa Allow overriding the heaps. 2017-10-16 20:56:07 -04:00
yellows8
68dbb72b04 Added fsExit and fsGetServiceSession. Check whether initialization was already done in fsInitialize, etc. Added fs to __appInit/__appExit. 2017-10-14 21:45:59 -04:00
plutoo
6280e1ba58 Introducing shmem 2017-10-14 15:00:52 +02:00
yellows8
96dc3a4ff0 Added usbdev under new directory 'devices'. Added more libnx errors to result.h. Added usbDsParseReportData() and the structs for it. Changed the post-buffer funcs 'out' field to 'urbId'. Updated the get-report funcs for using the report-data structure. 2017-10-12 18:20:31 -04:00
yellows8
6aa7ac0ec8 Fixed name for endpoint get-report cmd. 2017-10-12 02:08:25 -04:00
yellows8
7333864957 Added usbDsGetState() and usbDsWaitReady(). 2017-10-10 11:48:39 -04:00
yellows8
d1ba4d4e2b Added osDCacheFlush() for use by usbds. 2017-10-10 00:44:00 -04:00
yellows8
6cea85f338 Added usbds. The post-buffer cmds require dcache-flush for the specified buffer, this isn't included yet. 2017-10-09 21:05:53 -04:00