creat.2freebsd

Langue: en

Version: 265834 (debian - 07/07/09)

Section: 2 (Appels système)


BSD mandoc

NAME

creat - create a new file

LIBRARY

Lb libc

SYNOPSIS

In fcntl.h Ft int Fn creat const char *path mode_t mode

DESCRIPTION

Bf -symbolic This interface is made obsolete by: Ef open(2).

The Fn creat function is the same as:

 open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
 

SEE ALSO

open(2)

HISTORY

The Fn creat function appeared in AT&T System v6 .