140106Sbostic /* 240106Sbostic * Copyright (c) 1989 The Regents of the University of California. 340106Sbostic * All rights reserved. 440106Sbostic * 5*42619Sbostic * %sccs.include.redist.c% 640106Sbostic */ 740106Sbostic 840106Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*42619Sbostic static char sccsid[] = "@(#)creat.c 5.2 (Berkeley) 06/01/90"; 1040106Sbostic #endif /* LIBC_SCCS and not lint */ 1140106Sbostic 1240106Sbostic #include <sys/types.h> 1340106Sbostic #include <sys/file.h> 1440106Sbostic 1540106Sbostic creat(path, mode) 1640106Sbostic char *path; 1740106Sbostic mode_t mode; 1840106Sbostic { 1940106Sbostic return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); 2040106Sbostic } 21