memobj_share_attr_set_access_mode()

Set the access mode for the shared memory object

Synopsis:

#include <memobj/share.h>
void memobj_share_attr_set_access_mode(struct memobj_share_attr *attr, int mode)

Arguments:

attr
The attribute structure to modify.
mode
The access mode for new object; can be O_RDONLY, O_WRONLY, or O_RDWR.

Library:

libmemobj

Description:

The memobj_share_attr_set_access_mode() function sets the access mode for the shared memory object. The new shared memory object handle can have the same or lower access mode permissions as an original object.

Page updated: