Pass the build exam6 in Ubuntu which needs the header file fcntl.h for the O_CREAT