ack/plat/linux/liblinux/creat.c
David Given 8d0261473d Add missing linux68k platform and liblinux support library.
--HG--
branch : dtrg-experimental-powerpc
2013-05-09 00:56:10 +01:00

14 lines
268 B
C

/* $Source: /cvsroot/tack/Ack/plat/linux386/libsys/creat.c,v $
* $State: Exp $
* $Revision: 1.1 $
*/
#include <stdlib.h>
#include <unistd.h>
#include "libsys.h"
int creat(const char* filename, int mode)
{
return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
}