#include <sys/file.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
/*
* Return the (stdio) flags for a given mode. Store the flags