xopen() wants 2 arguments unless you're creating a file, in which case you
need 3.  Doing varargs for this doesn't really appeal to me (bugs in waiting)
so I made an xcreate() that takes 3 args, and had xopen() call it with 0 for
the third argument.  That way, if we feed O_CREAT to xopen() the permission
000 result should be easy to spot.
4 files changed
tree: 8cd23c638a6b6aeffa0a761025848e7bce60d4f1
  1. kconfig/
  2. lib/
  3. scripts/
  4. toys/
  5. www/
  6. Config.in
  7. LICENSE
  8. main.c
  9. Makefile
  10. toys.h