/* Test 5 -> Checks open on an existent
 * file of size zero
**/

#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>

int main()
{
   int fd1 = -1;
   int err;

   fd1 = open("file2", O_RDONLY);
   if(fd1 == -1) {
         return -1;
   }
 
   err = close(fd1);
   if(err == -1)
        return -1;

   return 0;  
}
