ack/plat/cpm/libsys/creat.c

14 lines
196 B
C
Raw Normal View History

2007-04-27 22:42:41 +00:00
/* $Source$
* $State$
* $Revision$
*/
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
int creat(const char* path, int mode)
{
return open(path, O_CREAT|O_WRONLY|O_TRUNC, mode);
}