140106Sbostic /* 240106Sbostic * Copyright (c) 1989 The Regents of the University of California. 340106Sbostic * All rights reserved. 440106Sbostic * 542619Sbostic * %sccs.include.redist.c% 640106Sbostic */ 740106Sbostic 840106Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*46600Sbostic static char sccsid[] = "@(#)creat.c 5.3 (Berkeley) 02/24/91"; 1040106Sbostic #endif /* LIBC_SCCS and not lint */ 1140106Sbostic 12*46600Sbostic #include <fcntl.h> 1340106Sbostic 14*46600Sbostic #if __STDC__ 15*46600Sbostic creat(const char *path, mode_t mode) 16*46600Sbostic #else 1740106Sbostic creat(path, mode) 1840106Sbostic char *path; 1940106Sbostic mode_t mode; 20*46600Sbostic #endif 2140106Sbostic { 2240106Sbostic return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); 2340106Sbostic } 24