diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-24 23:31:54 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:45 +0200 |
commit | d96d583328f614c658d42f5bb0d2a0f81621327e (patch) | |
tree | 66cacc47d4579dceec618035d3c505d7a3f88dbe /auto | |
parent | 2e2e5d1e8e862c5d55cda0035eef90c5b6596112 (diff) | |
download | unit-d96d583328f614c658d42f5bb0d2a0f81621327e.tar.gz unit-d96d583328f614c658d42f5bb0d2a0f81621327e.tar.bz2 |
Use octal instead of mode macros
They are more readable.
And we had a mix of both styles; there wasn't really a consistent style.
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'auto')
-rw-r--r-- | auto/shmem | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -24,8 +24,7 @@ nxt_feature_test="#include <sys/mman.h> shm_unlink(name); - int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR, - S_IRUSR | S_IWUSR); + int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR, 0600); if (fd == -1) return 1; @@ -68,7 +67,7 @@ if [ $nxt_found = no ]; then shm_unlink(name); int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR, - S_IRUSR | S_IWUSR); + 0600); if (fd == -1) return 1; @@ -95,7 +94,7 @@ nxt_feature_test="#include <sys/mman.h> #include <sys/stat.h> int main(void) { - int fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR); + int fd = shm_open(SHM_ANON, O_RDWR, 0600); if (fd == -1) return 1; |