xref: /original-bsd/lib/libc/compat-43/creat.2 (revision 6884d44a)
1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)creat.2	6.9 (Berkeley) 03/10/91
7.\"
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
23is the same as:
24.Bd -literal -offset indent
25open(path, O_WRONLY | O_CREAT | O_WRONLY, mode);
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.
33