(C) 1998 AROS - The Amiga Research OS


NAME
#include <unistd.h>
#include <fcntl.h>

int creat ()

SYNOPSIS
const char * pathname
int mode

FUNCTION
Creates a file with the specified mode and name.

INPUTS
pathname
Path and filename of the file you want to open.
mode
The access flags.

RESULT
-1 for error or a file descriptor for use with write().

EXAMPLE

SEE ALSO
open(), close(), write(), fopen()

NOTES
If the filesystem doesn't allow to specify different access modes for users, groups and others, then the user modes are used.

This is the same as open (pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
15.01.1997 digulla
Added functions for basic I/O (open, creat, close, read, write). Untested.