pub fn remove_queue_c(name: &CStr) -> Result<(), Error>Expand description
Delete a posix message queue, without inspecting name or allocating.
This function is on NetBSD necessary to remove 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::NotFoundErrorKind::PermissionDeniedorErrorKind::InvalidInput - Name is too long (ENAMETOOLONG) =>
ErrorKind::Other - Possibly other