-- before reading a file, check if it's a symbolic link and if so, read the target
-- cffi foreign import