Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open File vs Open file descriptiors

Posted on 2011-03-22
4
Medium Priority
?
281 Views
Last Modified: 2012-05-11
Hi,

What is the difference between open file descriptors and open files? I'm  using  linux centOS.

0
Comment
Question by:mokkan
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 668 total points
ID: 35190727
An "open file" is represented by an entry in a kernel table (one per process), and a file descriptor is an index to this table.

The application doesn't access a file directly but passes this descriptor to the kernel which uses it as a key to access the file "on behalf" of the application.

So an "open file descriptor" is an index to a table of "open files".

wmp
0
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 668 total points
ID: 35191381
This could also explain you.

http://www.netadmintools.com/art295.html
0
 
LVL 4

Assisted Solution

by:roemelboemel
roemelboemel earned 664 total points
ID: 35193025
short - and not 100% accurate - answer:

"everything is a file"
an open file descriptor is a "thing" which represents an open file
long answer:
http://en.wikipedia.org/wiki/File_descriptor
0
 

Author Closing Comment

by:mokkan
ID: 35385702
should be fixed.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question