C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
File Permission Setting Constants
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Constant:  _S_IREAD, _S_IWRITE
 
  Include:   <sys\stat.h>
 
  Context:   _open, _sopen, _umask, _stat structure
 
  Summary:   Required when _O_CREAT (_open, _sopen) is specified.
 
     The <pmode> argument specifies the file's permission settings, as
     shown below:
 
     Constant                 Meaning
 
     _S_IREAD                 Reading permitted
     _S_IWRITE                Writing permitted
     _S_IREAD | _S_IWRITE     Both reading and writing permitted
 
     When used as the <pmode> argument for _umask, the manifest
     constant sets the permission setting, as shown below:
 
     Constant                 Meaning
 
     _S_IREAD                 Writing not permitted (file is read-only)
     _S_IWRITE                Reading not permitted (file is
                              write-only)
     _S_IREAD | _S_IWRITE     Neither reading nor writing permitted
                                    -♦-