The proposed Dir api must provide a way to open both files and directories in order to be useful. New proposal: d1 = Dir.open('d1') => aDir d2 = d1.open('subdir') => aDir relative to d1 file = d2.open_file('file') => aFile relati...technorama (Technorama Ltd.)
The purpose of the openat() function is to enable opening files in directories other than the current working directory without exposure to race conditions. Any part of the path of a file could be changed in parallel to a call to open(),...technorama (Technorama Ltd.)