use O_RDWR for syscalls_test fd