Solved

Open File vs Open file descriptiors

Posted on 2011-03-22
4
257 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 167 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 167 total points
ID: 35191381
This could also explain you.

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

Assisted Solution

by:roemelboemel
roemelboemel earned 166 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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