summaryrefslogtreecommitdiffhomepage
path: root/auto/shmem
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-24 23:31:54 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-18 22:59:45 +0200
commitd96d583328f614c658d42f5bb0d2a0f81621327e (patch)
tree66cacc47d4579dceec618035d3c505d7a3f88dbe /auto/shmem
parent2e2e5d1e8e862c5d55cda0035eef90c5b6596112 (diff)
downloadunit-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 '')
-rw-r--r--auto/shmem7
1 files changed, 3 insertions, 4 deletions
diff --git a/auto/shmem b/auto/shmem
index c434a58f..cc85d140 100644
--- a/auto/shmem
+++ b/auto/shmem
@@ -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;