creat

Section: User Commands (1)
Index Return to Main Contents
 

Name

creat - create a file with a particular mode  

Syntax

creat filename octalmode  

Description

This creates a file in a single system call, rather than as a create followed by a chmod. In addition to basic function, this may be of use for creating "lock files".  

Arguments

filename - a filename, either relative to the current working directory, or fully specified.

octalmode - The mode that the file will be created in. This is a simple octal number. (Symbolic names such as used by chmod are not supported). The values for this are the same as chmod(1).  

Example

$ creat libcitr.a.lock 000
 

See Also

chmod(1), creat(2), flock(1)  

Environment

PATH=$PATH:/home/joppa/fastpac/bin/{HPPA,RISC}

MANPATH=$MANPATH:/home/joppa/fastpac/release_2/doc/60.Manuals  

Known Bugs

None  

Author

David Horton - CiTR  

Copyright

Centre for Information Technology Research, 1993


 

Index

Name
Syntax
Description
Arguments
Example
See Also
Environment
Known Bugs
Author
Copyright

This document was created by man2html, using the manual pages.
Time: 23:34:46 GMT, September 27, 2019