added facilities for using openat()