convert open_files invocation to use fd_provider struct
convert open_sockets to use fd_provider struct