os_open: add unit tests

This commit is contained in:
Justin M. Keyes
2014-06-30 02:23:41 -04:00
parent 180c84ed37
commit 0ceebc2c91
4 changed files with 77 additions and 14 deletions

View File

@@ -0,0 +1,4 @@
#include <sys/errno.h>
static const int kENOENT = ENOENT;
static const int kEEXIST = EEXIST;

View File

@@ -0,0 +1,7 @@
#include <sys/fcntl.h>
static const mode_t kO_RDONLY = O_RDONLY;
static const mode_t kO_WRONLY = O_WRONLY;
static const mode_t kO_RDWR = O_RDWR;
static const mode_t kO_CREAT = O_CREAT;
static const mode_t kO_EXCL = O_EXCL;