#include main() { unsigned long int A; int fd; mkdir("/tmp/RBL", 0750); fd = open("/tmp/RBL/tempfile", O_CREAT | O_RDWR | O_TRUNC, 0640); //fd = opntmp("/tmp/RBL/tempfile", 1234567); printf("%d\n", fd); A = 0x1234567890123456L; }