syscalls_rust/
syscalls.rs

1//// This module contains all the syscalls needed with their signatures and data types 
2//// This is not an implementation of syscalls in rust. This is just linking the available syscalls using ffi signatures
3
4
5/// This module supports all the 64 bit arch syscalls
6#[cfg(feature = "arch64")]
7pub mod arch64; // x86 64 bit, x86-64 abi
8
9
10
11// This is a sample documentation for all the function donot change it here
12// copy and change according to functions
13 
14// / read() attempts to read up to count bytes from file descriptor fd
15// / into the buffer starting at buf.<br>
16// / #### RETURN VALUE
17// / On success, the number of bytes read is returned (zero indicates
18// / end of file), and the file position is advanced by this number.
19// / #### ERRORS
20// / EAGAIN(35), EBADF(9), EFAULT(14), EINTR(4), EINVAL(22), EIO(5), EISDIR(21), etc.
21// / #### Link
22// / Read the docs
23// / [here](https://man7.org/linux/man-pages/man2/read.2.html)