Forum > Unix
rtl/linux/ostypes.inc
Чебурашка:
I rephrase the question:
Since we already have S_IRWXU, S_IRWXG, S_IRWXO which are compositions of the basic bits,
would it make sense adding the following constants (also other names, but with these values)?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- S_IRWU = S_IRUSR or S_IWUSR; S_IRWG = S_IRGRP or S_IWGRP; S_IRWUG_RO = S_IRWU or S_IRWG or S_IROTH; S_IRXO = S_IROTH or S_IXOTH; S_IRWXUG_RXO = S_IRWXU or S_IRWXG or S_IRXO;
In most cases non exes are S_IRWUG_RO, and exes S_IRWXUG_RXO.
Thaddy:
No.
MarkMLl:
--- Quote from: tt on December 30, 2022, 10:03:56 am ---Would it make sense adding the following constants (also other names, but with these values)?
--- End quote ---
Applicable to what part of the rather large Linux API?
Tell us what you're proposing and why and you might get more than a single-word response out of Thaddy :-)
MarkMLl
Thaddy:
Such proposal duplicates functionalty already present, so hence NO.
Чебурашка:
--- Quote from: MarkMLl on December 30, 2022, 10:39:06 am ---
--- Quote from: tt on December 30, 2022, 10:03:56 am ---Would it make sense adding the following constants (also other names, but with these values)?
--- End quote ---
Applicable to what part of the rather large Linux API?
Tell us what you're proposing and why and you might get more than a single-word response out of Thaddy :-)
MarkMLl
--- End quote ---
I was thinking to the situations in which you create a file and you want to impose the permissions, in many cases is either 664 or 775.
Since there are already the S_IRWXU, S_IRWXG, S_IRWXO, I was wondering if also this constants can be useful, otherwise one needs always creating a local composition. If so, one could do also for the S_IRWXU, S_IRWXG, S_IRWXO and not have them in the rtl.
I rephrased the question becuase I forgot to mention the existence of S_IRWXU, S_IRWXG, S_IRWXO (sorry Thaddy)
Navigation
[0] Message Index
[#] Next page