1*60986Sbostic.\" Copyright (c) 1989, 1990, 1993 2*60986Sbostic.\" The Regents of the University of California. All rights reserved. 320065Smckusick.\" 443569Strent.\" %sccs.include.redist.man% 520065Smckusick.\" 6*60986Sbostic.\" @(#)creat.2 8.1 (Berkeley) 06/02/93 740105Sbostic.\" 847209Scael.Dd 947209Scael.Dt CREAT 2 1047209Scael.Os BSD 4 1147209Scael.Sh NAME 1247209Scael.Nm creat 1347209Scael.Nd create a new file 1447209Scael.Sh SYNOPSIS 1553066Sbostic.Fd #include <fcntl.h> 1653066Sbostic.Ft int 1747209Scael.Fn creat "char *path" "mode_t mode" 1847209Scael.Sh DESCRIPTION 1947209Scael.Bf -symbolic 2047209ScaelThis interface is made obsolete by: 2147209Scael.Ef 2247209Scael.Xr open 2 . 2347209Scael.Pp 2447209Scael.Fn Creat 2540105Sbosticis the same as: 2647209Scael.Bd -literal -offset indent 2750120Sbosticopen(path, O_CREAT | O_TRUNC | O_WRONLY, mode); 2847209Scael.Ed 2947209Scael.Sh SEE ALSO 3047209Scael.Xr open 2 3147209Scael.Sh HISTORY 3247209ScaelThe 3347209Scael.Nm 3447209Scaelfunction call appeared in Version 6 AT&T UNIX. 35