open (SunOS) open (SunOS)
NAME
open, creat - Open a file for reading or writing
DIGITAL UNIX SYNOPSIS
#include <fcntl.h> #include <sys/stat.h> #include <sys/types.h>
int open (
const char *path,
int oflag [ ,
mode_t mode ] );
int creat (
const char *path,
mode_t mode );
PARAMETERS
Specifies the file to be opened or created. If the path parameter
refers to a symbolic link, the open() function opens the file pointed
to by the symbolic link. Specifies the type of access, special open
processing, the type of update, and the initial state of the open file.
The parameter value is constructed by logically ORing special open pro‐
cessing flags. These flags are defined in the fcntl.h header file and
are described below. Specifies the read, write, and execute permis‐
sions of the file to be created (requested by the O_CREAT flag in the
open() interface). If the file already exists, this parameter is
ignored. This parameter is constructed by logically ORing values
described in the sys/mode.h header file.
DIFFERENCES
Requires the fcntl.h, sys/stat.h, and sys/types.h header files. Changes
the declaration of variable mode to mode_t.
RELATED INFORMATION
Digital UNIX Functions:
open(2) delim off
open (SunOS)