mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Add a note about mode_t and S_I???? macros.
This commit is contained in:
parent
3efe402722
commit
c4ab3629f0
@ -618,6 +618,22 @@ typedef int (some_func_T)(void *);
|
|||||||
typedef long long our_long_T;
|
typedef long long our_long_T;
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Please use mode_t and S_I???? macros instead of numeric modes
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.Use:
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
mode_t mode = S_IRWXU | S_IRGRP | S_IROTH;
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
.Instead of:
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
int mode = 0744;
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Note that S_IREAD, S_IWRITE and S_IEXEC are obsolete, you should use S_IRUSR,
|
||||||
|
S_IWUSR, S_IXUSR instead.
|
||||||
|
|
||||||
|
|
||||||
Patches
|
Patches
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user