/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
/***********************************************************
* Function File: creat.c
* Note: (1)  Unix system function
* History: created by Harry H. Cheng, 1/5/97
**********************************************************/
#include <fcntl.h>
restrict int creat(const char *path, mode_t mode) {
   return open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
}
