Timeline for Something's special about /dev/fd/3
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 20, 2016 at 10:23 | comment | added | Hauke Laging |
@CMCDragonkai Thy syscall open() uses the first free file descriptor. The calling application should not care about its number; that's why it is returned by the call.
|
|
| Feb 19, 2016 at 11:21 | comment | added | CMCDragonkai | If you already use fd 3, does ls choose a different fd? | |
| May 2, 2013 at 17:08 | comment | added | goldilocks |
^would be^ -> could be, since it's bound to happen if you, eg, close(0).
|
|
| May 2, 2013 at 15:58 | history | edited | Hauke Laging | CC BY-SA 3.0 |
more precise wording
|
| May 2, 2013 at 15:51 | comment | added | goldilocks | Maybe it is slightly misleading to say it is "not a standard descriptor. It is specific to your case..."? 3 is a normal file descriptor exactly like 0, 1, and 2, but 0, 1, and 2 have standard assignments (standard in, standard out, standard error) whereas 3 could be anything. Note it is possible to use 0, 1, and 2 in the same way, but this would be considered a bad practice. | |
| May 2, 2013 at 15:29 | history | answered | Hauke Laging | CC BY-SA 3.0 |