use gnulib's "open" module