140106Sbostic /* 2*60986Sbostic * Copyright (c) 1989, 1993 3*60986Sbostic * The Regents of the University of California. All rights reserved. 440106Sbostic * 542619Sbostic * %sccs.include.redist.c% 640106Sbostic */ 740106Sbostic 840106Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*60986Sbostic static char sccsid[] = "@(#)creat.c 8.1 (Berkeley) 06/02/93"; 1040106Sbostic #endif /* LIBC_SCCS and not lint */ 1140106Sbostic 1246600Sbostic #include <fcntl.h> 1340106Sbostic 1446600Sbostic #if __STDC__ creat(const char * path,mode_t mode)1546600Sbosticcreat(const char *path, mode_t mode) 1646600Sbostic #else 1740106Sbostic creat(path, mode) 1840106Sbostic char *path; 1940106Sbostic mode_t mode; 2046600Sbostic #endif 2140106Sbostic { 2240106Sbostic return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); 2340106Sbostic } 24