shm_unlink

shm_unlink — removes shared memory objects.

Syntax

shm_unlink (share_name)

		

Arguments

share_name

The name of the shared object to delete.

Returns

t on success, or nil on failure, with errno set.

Description

This function is currently only available in QNX 4. It attempts to remove the shared object, share_name. If more than one process or link into the shared memory area exists the shared object will not be removed.

Possible values of errno are:

    EACCESS Permission to unlink the object is denied

    ENAMETOOLONG The lenght of the name of the object is too long

    ENOENT The named shared memory object does not exist.

    ENOSYS This function is not supported by this implementation.

Example

Gamma> shm_unlink("card_mem");
t
Gamma> 
		

See Also

shm_open, mmap