Differences between version 7 and revision by previous author of creat(2).
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 7 | Last edited on Sunday, November 3, 2002 2:31:40 pm | by PerryLorier | Revert |
Older page: | version 4 | Last edited on Thursday, October 31, 2002 10:18:59 pm | by JohnMcPherson | Revert |
@@ -1,9 +1,10 @@
!!NAME
creat - open and possibly create a file or device
!!SYNOPSIS
-
- __#include <unistd
.h>__
+ __#include <sys/types.h>__ /* for mode_t */
+ __#include <sys/stat.h>__ /* for the S_* contants */
+ __#include <fcntl
.h>__ /* for creat() prototype */
__int creat(const char *__''pathname''__, mode_t__ ''mode''__);__
!!DESCRIPTION
creat(2) is a special form of open(2), refer to open(2) for more information.
@@ -18,9 +19,9 @@
The following symbolic constants are provided for ''mode'':
|__S_IRWXU__|00700| user (file owner) has read, write and execute permission
-|__S_IRUSR (S_IREAD)|00400| user has read permission
+|__S_IRUSR (S_IREAD)__
|00400| user has read permission
|__S_IWUSR (S_IWRITE)__|00200| user has write permission
|__S_IXUSR (S_IEXEC)__|00100| user has execute permission
|__S_IRWXG__|00070| group has read, write and execute permission
|__S_IRGRP__|00040| group has read permission