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