Update syscalls.c
This commit is contained in:
parent
a7e8defc52
commit
299e39aacf
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
void __ctru_exit(int rc);
|
void __ctru_exit(int rc);
|
||||||
int __libctru_gtod(struct _reent *ptr, struct timeval *tp, struct timezone *tz);
|
int __libctru_gtod(struct _reent *ptr, struct timeval *tp, struct timezone *tz);
|
||||||
|
int __libctru_nanosleep(const struct timespec *req, struct timespec *rem);
|
||||||
|
|
||||||
extern const u8 __tdata_lma[];
|
extern const u8 __tdata_lma[];
|
||||||
extern const u8 __tdata_lma_end[];
|
extern const u8 __tdata_lma_end[];
|
||||||
@ -34,6 +35,7 @@ void __system_initSyscalls(void)
|
|||||||
__syscalls.exit = __ctru_exit;
|
__syscalls.exit = __ctru_exit;
|
||||||
__syscalls.gettod_r = __libctru_gtod;
|
__syscalls.gettod_r = __libctru_gtod;
|
||||||
__syscalls.getreent = __ctru_get_reent;
|
__syscalls.getreent = __ctru_get_reent;
|
||||||
|
__syscalls.nanosleep = __libctru_nanosleep;
|
||||||
|
|
||||||
// Register locking syscalls
|
// Register locking syscalls
|
||||||
__syscalls.lock_init = LightLock_Init;
|
__syscalls.lock_init = LightLock_Init;
|
||||||
|
Loading…
Reference in New Issue
Block a user