15 lines
216 B
C
15 lines
216 B
C
|
/* $Source$
|
||
|
* $State$
|
||
|
* $Revision$
|
||
|
*/
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include <errno.h>
|
||
|
#include <unistd.h>
|
||
|
#include "libsys.h"
|
||
|
|
||
|
int creat(const char* path, int mode)
|
||
|
{
|
||
|
return open(path, O_CREAT|O_WRONLY|O_TRUNC, mode);
|
||
|
}
|