Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (a - d) creat(2)
If bits other than the le permission and appropriate le-type ags are set in the mode
parameter, errno is set to [EINVAL].
The O_TRUNC ag is ignored for les other than regular les.
An attempt to open an OSS directory with creat() fails.
HP extensions to the XPG4 Version 2 specication are:
Opening Guardian les (that is, les in the /G le system) is supported, as described
under Opening Guardian Files in DESCRIPTION.
The errno values [EFAULT], [EFILEBAD], [EFSBAD], [EGUARDIANOPEN], [EIO],
[ELOOP], [EOSSNOTRUNNING], and [EPERM] can be returned.
The le type S_NONSTOP is supported.
527186-003 Hewlett-Packard Company 137