Function posixmq::remove_queue_c[][src]

pub fn remove_queue_c(name: &CStr) -> Result<(), Error>

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::NotFound ErrorKind::PermissionDenied or ErrorKind::InvalidInput
  • Name is too long (ENAMETOOLONG) => ErrorKind::Other
  • Possibly other