1/* 2 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. 8 */ 9#include <fcntl.h> 10 11int creat (const char *file, mode_t mode) 12{ 13 return open(file, O_CREAT | O_WRONLY | O_TRUNC, mode); 14} 15