Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is difference between file descriptor and fildes [closed]

Tags:

c

linux

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); 
like image 271
Jimm Avatar asked Feb 18 '23 08:02

Jimm


1 Answers

These are just parameter names. They both refer to file descriptor.

Read manual for those functions

man 2 write
man pwrite
like image 52
Kylo Avatar answered Feb 22 '23 23:02

Kylo