file-descriptor
can a process create extra shell-redirectable file descriptors?
C开发者_如何学Can a process \'foo\' write to file descriptor 3, for example, in such a way that inside a bash shell one can do[详细]
2023-01-10 09:06 分类:问答ftell on a file descriptor?
Is there a way to do what ftell() does (return the current position in the file) on a raw file descriptor instead of a FILE*? I think there ought to be, since you can seek on a raw file descriptor usi[详细]
2023-01-10 05:57 分类:问答Ensure a file is not changed while trying to remove it
开发者_如何学GoIn a POSIX environment, I want to remove a file from disk, but calculate its checksum before removing it, to make sure it was not changed. Is locking enough? Should I open it, unlink, c[详细]
2023-01-07 03:18 分类:问答How to check the number of open connections in node.js?
I have a machine running node.js (v0.1.32) with a tcp server (tcp.createServer) and a http server (http.createServer开发者_如何学运维). The http server is hit by long polling requests (lasting 50 sec[详细]
2023-01-06 19:29 分类:问答fopen problem - too many open files
I have a multithreaded application running开发者_如何学Python on Win XP. At a certain stage one of a threads is failing to open an existing file using fopen function. _get_errno function returns EMFIL[详细]
2023-01-06 00:50 分类:问答How to pass file descriptors from parent to child in python?
I am using multiprocessing module, and using pools to start multiple workers. But the file descriptors which are opened at the parent process are clo开发者_如何学Pythonsed in the worker processes. I w[详细]
2023-01-02 18:55 分类:问答change file descriptor for socket in python
I\'m trying to manually create the file descriptor associated with a socket in python and then loaded directly into memory with mmap. Create a file into memory with mmap is simple,开发者_开发百科 but[详细]
2023-01-01 11:34 分类:问答Force blocking read after EAGAIN?
I have a file descriptor that is open for reading which may be non-blocking. What I need to do is simply read all data until reaching EOF and write that data to a writable file descriptor. As the proc[详细]
2022-12-31 11:58 分类:问答How to execute a program from file descriptor?
I need to execute a file when I only know开发者_JAVA技巧 the descriptor. It is also possible that there are no links to the file so finding out the name somehow is not an option. All the execve(), exe[详细]
2022-12-31 03:05 分类:问答Is O_NONBLOCK being set a property of the file descriptor or underlying file?
From what I have been reading on The Open Group website on fcntl, open, read, and write, I get the impression that whether O_NONBLOCK is set on a file descriptor, and hence whether non-blocking I/O is[详细]
2022-12-31 02:03 分类:问答