| 75 | return BAN::Error::from_errno(EINVAL); |
| 76 | |
| 77 | const int flags = |
| 78 | (shmflg & S_IRUSR ? O_RDONLY : 0) | |
| 79 | (shmflg & S_IWUSR ? O_WRONLY : 0); |
| 80 | if (!object->can_current_process_access(flags)) |
| 81 | return BAN::Error::from_errno(EACCES); |
| 82 | |
| 83 | return it->value; |
| 84 | } |
| 85 |
nothing calls this directly
no test coverage detected