Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ creat(2) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(5)

chmod(2)

close(2)

dup(2)

fcntl(2)

lseek(2)

open(2)

read(2)

umask(2)

write(2)



     creat(2)                   DG/UX 4.30                    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;

     PARAMETERS
          path           Address of a pathname.

          mode           Protection mode of the new file.

     DESCRIPTION
          Creat(2) is equivalent to:

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

          See open(2) for more details.

     ACCESS CONTROL
          Same as for the open system call.

     RETURN VALUE
          See open(2).

     EXCEPTIONS
          See open(2).

     SEE ALSO
          The related manual sections:  stat(5), chmod(2), close(2),
          dup(2), fcntl(2), lseek(2), open(2), read(2), umask(2),
          write(2).



















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



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