3 ms·
Sure about that? CREAT(2) BSD System Calls Manual CREAT(2) NAME creat -- create a new file LIBRARY
by mpweiher 11y ago
Sure about that?
CREAT(2) BSD System Calls Manual CREAT(2)
NAME
creat -- create a new file
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <fcntl.h>
int
creat(const char *path, mode_t mode);
DESCRIPTION
This interface is made obsolete by: open(2).
The creat() function is the same as:
open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
SEE ALSO
open(2)
HISTORY
The creat() function appeared in Version 6 AT&T UNIX.
BSD June 2, 1993 BSD
- rst 11y agoYou're missing the joke -- the recovered "Unix 0" manual seems to spell it 'create', even though it was 'creat' in subsequent versions.
- ksherlock 11y ago3.5.2 Create To create a new file, the following call is used. filep = create(name, mode) But it's listed correctly as a system call. A1.6 creat To create or recreate a file, sys creat name mode
- lambda 11y agoI think he's saying that in this document, "creat" is sometimes spelled with an "e", indicating that the OCR process overcorrected. 3.5.2 Create To create a new file, the following call is used. filep = create(name, mode)