Andrea Ciliberti
0b9bd5e00f
init function removal
2 years ago
Andrea Ciliberti
ef86bbf531
Add error handling
2 years ago
Andrea Ciliberti
c7753eb67a
Fix lints
2 years ago
Andrea Ciliberti
a3aa4423e7
Document init function and add psInit to getrandom
2 years ago
Andrea Ciliberti
03942d0c14
Update for the latest libctru version
2 years ago
Ian Chamberlain
8fc5973eb2
Update to upstream libc and fix some clippy lints
...
I still didn't add any `# Safety` docs which was the last clippy lint
here.
3 years ago
AzureMarker
2a14bddf0d
Implement sysconf to support std threads
...
std checks sysconf for the page size if it gets an error from
pthread_attr_setstacksize (it then rounds the stack size up to a
multiple of the page size).
3 years ago
Ian Chamberlain
7abc5e5366
Fix some accuracy / retval issues with monotonic
3 years ago
Ian Chamberlain
95d9518068
Implement CLOCK_MONOTONIC
3 years ago
Ian Chamberlain
b01d256883
Update getrandom impl based on ctru error codes
3 years ago
Ian Chamberlain
e6a19e9067
Match more typical getrandom semantics
3 years ago
Ian Chamberlain
fe0e7d7639
Add getrandom impl using ctru_sys bindings
3 years ago
Ian Chamberlain
f9db3a9101
Update src/lib.rs
...
Co-authored-by: Mark Drobnak <mark.drobnak@gmail.com>
3 years ago
Ian Chamberlain
a8b7c6804a
Add clock_gettime implementation
3 years ago
AzureMarker
f4443c85e1
Handle the null case in realpath
...
The destination pointer might be null, in which case we are supposed to
malloc some memory for it:
https://man7.org/linux/man-pages/man3/realpath.3.html
3 years ago
AzureMarker
3220e60578
Add init method to force linking
3 years ago
AzureMarker
9069f56e05
Mark the crate as no_std
3 years ago
AzureMarker
409c7a0a17
Format via rustfmt
3 years ago
Meziu
48e3a6b75b
Working condition
3 years ago