file-descriptor
So sockets generated by socketpair() are availble across different processes?
As we know fd(file descriptor,an int to be exact) is per process,that is,the same file opened in different processes may have different fd.[详细]
2023-03-09 20:02 分类:问答Linux proc/pid/fd for stdout is 11?
Executing a script with stdout redirected to a file. So /proc/$$/fd/1 should point to that file (since stdout fileno is 1). However, actual fd of the file is 11. Please, explain, why.[详细]
2023-03-09 12:45 分类:问答File descriptor - parent and forked child
I\'m writing a cgi program for my small webserver. That program then forks to create a child. As far as I know, parent and its children share the same file descriptor, so I expected to see the child\'[详细]
2023-03-08 19:52 分类:问答Stream live video from phone to phone using socket fd
I am new to android programming and have found myself stuckI have been researching various ways to stream live video from phone to phone and seem to have it mostly functional, except of course the mos[详细]
2023-03-08 15:05 分类:问答Writing to file descriptor
In the following snippet i am redirecting the output of the ls command to input of wc -l which works perfectly .Now i also want to redirect the output of ls command to a file named \"beejoutput.txt\"[详细]
2023-03-05 14:23 分类:问答Writing to child process file descriptor
I have a program \"Sample\" which takes input both from stdin and a non-standard file descriptor (3 or 4) as shown below[详细]
2023-03-05 08:36 分类:问答Redirecting input and output of a child process in C
I want to write a c program in which i create multiple child processes and redirect their inputs and outputs to different file descriptors .I goo开发者_开发知识库gled a lot but couldn\'t find relevant[详细]
2023-03-04 19:42 分类:问答Create a file descriptor
I want to create a file descriptor in C whose value i will specify in code. I have a integer variable which specifies the value of file descriptor to be created. For e开发者_如何学Cxample i may need a[详细]
2023-03-04 03:10 分类:问答exec n<&m versus exec n>&m -- based on Sobell's Linux book
In Mark Sobell\'s A Practical Guide to Linux Commands, Editors, and Shell Programming, Second Edition he writes (p. 432):[详细]
2023-03-02 10:10 分类:问答Help with Select?
So i\'m trying to make a server that listens on multiple ports. I\'m having trouble getting my head around select.[详细]
2023-02-21 15:36 分类:问答