147209Scael.\" Copyright (c) 1989, 1990 The Regents of the University of California. 240105Sbostic.\" All rights reserved. 320065Smckusick.\" 443569Strent.\" %sccs.include.redist.man% 520065Smckusick.\" 6*50120Sbostic.\" @(#)creat.2 6.10 (Berkeley) 06/23/91 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 1547209Scael.Fn creat "char *path" "mode_t mode" 1647209Scael.Sh DESCRIPTION 1747209Scael.Bf -symbolic 1847209ScaelThis interface is made obsolete by: 1947209Scael.Ef 2047209Scael.Xr open 2 . 2147209Scael.Pp 2247209Scael.Fn Creat 2340105Sbosticis the same as: 2447209Scael.Bd -literal -offset indent 25*50120Sbosticopen(path, O_CREAT | O_TRUNC | O_WRONLY, mode); 2647209Scael.Ed 2747209Scael.Sh SEE ALSO 2847209Scael.Xr open 2 2947209Scael.Sh HISTORY 3047209ScaelThe 3147209Scael.Nm 3247209Scaelfunction call appeared in Version 6 AT&T UNIX. 33