Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ creat(2) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(2)

close(2)

dup(2)

fcntl(2)

lseek(2)

open(2)

read(2)

umask(2)

write(2)

stat(5)



creat(2)                         DG/UX 5.4.2                        creat(2)


NAME
       creat - create a new file or rewrite an existing one

SYNOPSIS
       #include <sys/types.h>
       #include <sys/stat.h>

       int  creat (path, mode)
       char * path;
       int  mode;

   where:
       path      Address of a pathname

       mode      Protection mode of the new file

DESCRIPTION
       Creat(2) is equivalent to:

          open(path, OWRONLY | OCREAT | OTRUNC, mode).

       See open(2) for more details.

ACCESS CONTROL
       Same as for the open system call.

RETURN VALUE
       See open(2).

DIAGNOSTICS
       See open(2).

SEE ALSO
       chmod(2), close(2), dup(2), fcntl(2), lseek(2), open(2), read(2),
       umask(2), write(2), stat(5).






















Licensed material--property of copyright holder(s)                         1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026