SCCS id got lost along the way
[unix-history] / usr / src / lib / libc / compat-43 / creat.2
CommitLineData
931b8415 1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
96117dfd 2.\" All rights reserved.
7d589817 3.\"
91cff1e1 4.\" %sccs.include.redist.man%
96117dfd 5.\"
931b8415 6.\" @(#)creat.2 6.9 (Berkeley) %G%
7d589817 7.\"
931b8415
CL
8.Dd
9.Dt CREAT 2
10.Os BSD 4
11.Sh NAME
12.Nm creat
13.Nd create a new file
14.Sh SYNOPSIS
15.Fn creat "char *path" "mode_t mode"
16.Sh DESCRIPTION
17.Bf -symbolic
18This interface is made obsolete by:
19.Ef
20.Xr open 2 .
21.Pp
22.Fn Creat
96117dfd 23is the same as:
931b8415 24.Bd -literal -offset indent
96117dfd 25open(path, O_WRONLY | O_CREAT | O_WRONLY, mode);
931b8415
CL
26.Ed
27.Sh SEE ALSO
28.Xr open 2
29.Sh HISTORY
30The
31.Nm
32function call appeared in Version 6 AT&T UNIX.