[−][src]Function posixmq::unlink_c
pub fn unlink_c(name: &CStr) -> Result<(), Error>
Delete a posix message queue, without inspecting name
or allocating.
This can on NetBSD be used to access message queues with names that doesn't start with a '/'.
Errors
- Queue doesn't exist (ENOENT) =>
ErrorKind::NotFound
- Not permitted to delete the queue (EACCES) =>
ErrorKind::PermissionDenied
- Posix message queues are disabled (ENOSYS) =>
ErrorKind::Other
- More than one '/' in name (EACCESS) =>
ErrorKind::PermissionDenied
- Name is empty (EINVAL) =>
ErrorKind::InvalidInput
- Name is invalid (ENOENT, EACCESS or EINVAL) =>
ErrorKind::NotFound
,ErrorKind::PermissionDenied
orErrorKind::InvalidInput
- Name is too long (ENAMETOOLONG) =>
ErrorKind::Other
- Possibly other