in reply to Re: how to close all files
in thread how to close all files

syscall() is one way. See Re: how to close all files where BrowserUk uses the core POSIX module to close by descriptor, though. It's probably the more portable choice for this task.