Top "File-descriptor" questions

Generally, a file descriptor is an index for an entry in a kernel-resident data structure containing the details of all open files.

Get list of open files (descriptors) in OS X

I would like to get a list of open files in a process on os x (10.9.1). In Linux I was …

macos osx-mavericks file-descriptor procfs
How to check if a given file descriptor stored in a variable is still valid?

I have a file descriptor stored in a variable say var. How can I check whether that descriptor is valid …

c linux gcc file-descriptor
Exception when calling setDataSource(FileDescriptor) method (failed.: status=0x80000000)

I'm developing a video streaming application and I'm getting stuck when calling set setDataSource with a FileDescriptor. I want my …

android video-streaming media-player file-descriptor
socket: Too many open files (24) apache bench lighttpd

When I start Apache Bench test: ab -n 10000 -c 1300 http://domain.com/test.php I get error: socket: Too many …

apache scalability lighttpd file-descriptor
Stream live video from phone to phone using socket fd

I am new to android programming and have found myself stuck I have been researching various ways to stream live …

android video-streaming media-player live-streaming file-descriptor
Increasing limit of FD_SETSIZE and select

I want to increase FD_SETSIZE macro value for my system. Is there any way to increase FD_SETSIZE so …

c linux file-descriptor
How to construct a c++ fstream from a POSIX file descriptor?

I'm basically looking for a C++ version of fdopen(). I did a bit of research on this and it is …

c++ posix fstream file-descriptor
how is select() alerted to an fd becoming "ready"?

I don't know why I'm having a hard time finding this, but I'm looking at some linux code where we're …

c linux sockets messaging file-descriptor
Finding open file descriptors for a process linux ( C code )?

I wanted to find all fds opened for a process in linux. Can I do it with glib library functions ?

c linux process file-descriptor
How to close a file descriptor from another process in unix systems

You can use command lsof to get file descriptors for all running processes, but what I would like to do …

bash unix file file-descriptor lsof