Module wasmer_wasix::fs::fd_list
source · Expand description
A very simple data structure for holding the FDs a WASI process is using. Keeps track of the first unused (i.e. freed) FD, which is slightly faster than doing a linear search of the entire array each time. Note, The Unix spec requires newly allocated FDs to always be the lowest-numbered FD available.