Tagged Questions
2
votes
1answer
76 views
Max Open Files, clarification needed
On my machine,
ulimit -n returns 2560
Given that -n returns
The maximum number of open file descriptors.
Does it mean that system won't allow more then 2560 open files to be out there at any ...
5
votes
4answers
1k views
How can same fd in different processes point to the same file?
Say I have process 1 and process 2. Both have a file descriptor corresponding to the integer 4.
In each process however the file descriptor 4 points to a totally different file in the Open File Table ...
7
votes
2answers
903 views
What happens when I close() a file descriptor?
I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors:
_process1_
| |
| 0 stdin |
| 1 stdout |
| 2 stderr |
...
5
votes
0answers
88 views
How can different file descriptors point to the same file in open file table? [duplicate]
Possible Duplicate:
How can same fd in different processes point to the same file?
I have a hard time grasping the two ideas of File Descriptor Table and Open File Table.
Open File Table ...
4
votes
2answers
852 views
What is the referent of a file descriptor?
My understanding is that a file descriptor is an integer which is a key in the kernel's per-process mapping to objects such as open()ed files, pipes, sockets, etc.
Is there a proper, short, and ...