What is fildes and in linux, what is the difference between file descriptor and fildes. For example, the below write deals with file descriptor
ssize_t write(int fd, const void *buf, size_t count);
Where as the below pwrite deals with fildes
ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
These are just parameter names. They both refer to file descriptor.
Read manual for those functions
man 2 write
man pwrite
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With