/*
 * Creat(2) UNIX system call simulation
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 1995 by Ralf Baechle
 */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int
creat(char *pathname, mode_t mode)
{
  return open(pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
}
