Glenn, have you ever considered putting an openat(), fstatat(),
mkfifoat() emulation into libast, if the base operating system does
not have such calls? I have been trying more tests with the at() apis
but I am not happy to trash much of libshell with lots of #ifdef
AT_CWD tests if there is a better option.

AFAIK a lot of the at() calls can be emulated by using
/dev/fd/${dirfd}/${path} or /proc/${pid}/fd/${dirfd}/${path}. I just
do not know, are there cases where /dev/fd or /proc/${pid}/fd are not
available (chroot environments?)?

Olga
-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanov...@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to