creat.c 268 B

12345678910111213
  1. /* $Source: /cvsroot/tack/Ack/plat/linux386/libsys/creat.c,v $
  2. * $State: Exp $
  3. * $Revision: 1.1 $
  4. */
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. #include "libsys.h"
  8. int creat(const char* filename, int mode)
  9. {
  10. return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
  11. }