A program executes this:
close(0);
The standard input file descriptor has not changed value, but it is no longer referencing an open file description. It is available for re-allocation. Subsequent attempts to use it in, say, `read()` will result in `EBADF` because whilst _it is still a file descriptor_ it is not an allocated one that references an open file description. It is a _bad_ file descriptor.
# Further reading
* "`close()`". _The Open Group Base Specifications_ Issue 7. IEEE 1003.1:2008. The Open Group. 2018.
* "`read()`". _The Open Group Base Specifications_ Issue 7. IEEE 1003.1:2008. The Open Group. 2018.