#include "amiga.h"
#include "files.h"
#include <fcntl.h>

#undef creat

int __creat(const char *file, int prot)
{
  chkabort();
  return open(file, O_WRONLY | O_CREAT | O_TRUNC, prot);
}

int creat(const char *file, int prot)
{
  return __creat(file, prot);
}

