diff --git a/reference/shmop/functions/shmop-open.xml b/reference/shmop/functions/shmop-open.xml index 377c3a380d..aa257d9c7a 100644 --- a/reference/shmop/functions/shmop-open.xml +++ b/reference/shmop/functions/shmop-open.xml @@ -1,5 +1,5 @@ - + @@ -33,22 +33,22 @@ "c" for create (sets IPC_CREATE) use this flag when you need to create a new shared memory segment or if a - segment with the same key exists, try to open it for read and write + segment with the same key exists, try to open it for read and write "w" for read & write access - use this flag when you need to read and write to a shared memory segment, use this flag - in most cases. + use this flag when you need to read and write to a shared memory segment, use this flag + in most cases. "n" create a new memory segment (sets IPC_CREATE|IPC_EXCL) - use this flag when you want to create a new shared memory segment but if one - already exists with the same flag, fail. This is useful for security purposes, using this you - can prevent race condition exploits. + use this flag when you want to create a new shared memory segment but if one + already exists with the same flag, fail. This is useful for security purposes, using this you + can prevent race condition exploits. @@ -70,14 +70,16 @@ ]]> - This example opened a shared memory block with a system id of 0x0fff. + This example opened a shared memory block with a system id returned by + ftok.