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 funcitons
13
14// / #### DESCRIPTION 
15// / read() attempts to read up to count bytes from file descriptor fd
16// / into the buffer starting at buf.<br>
17// / #### RETURN VALUE
18// / On success, the number of bytes read is returned (zero indicates
19// / end of file), and the file position is advanced by this number.
20// / #### ERRORS
21// / EAGAIN(35), EBADF(9), EFAULT(14), EINTR(4), EINVAL(22), EIO(5), EISDIR(21), etc.
22// / #### Link
23// / Read the docs
24// / [here](https://man7.org/linux/man-pages/man2/read.2.html)