creat(2freebsd)

creat2freebsd

Create a new file

Usage

#include <fcntl.h>

int

creat(const char *path, mode_t mode);

Library

Standard C Library (libc, -lc)

Overview

This interface is made obsolete by: open(2).

The creat() function is the same as:

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

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

History

The creat() function appeared in Version 6 AT&T UNIX.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.