/* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)creat.c 8.1 (Berkeley) 06/02/93"; #endif /* LIBC_SCCS and not lint */ #include #if __STDC__ creat(const char *path, mode_t mode) #else creat(path, mode) char *path; mode_t mode; #endif { return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); }