[][src]Struct nc::types::ipc64_perm_t

#[repr(C)]pub struct ipc64_perm_t {
    pub key: key_t,
    pub uid: uid_t,
    pub gid: gid_t,
    pub cuid: uid_t,
    pub cgid: gid_t,
    pub mode: mode_t,
    pub seq: u16,
    // some fields omitted
}

The generic ipc64_perm structure: Note extra padding because this structure is passed back and forth between kernel and user space.

ipc64_perm was originally meant to be architecture specific, but everyone just ended up making identical copies without specific optimizations, so we may just as well all use the same one.

Pad space is left for:

  • 32-bit mode_t on architectures that only had 16 bit
  • 32-bit seq
  • 2 miscellaneous 32-bit values

Fields

key: key_tuid: uid_tgid: gid_tcuid: uid_tcgid: gid_tmode: mode_t

pad if mode_t is u16:

seq: u16

Trait Implementations

impl Clone for ipc64_perm_t[src]

impl Copy for ipc64_perm_t[src]

impl Debug for ipc64_perm_t[src]

impl Default for ipc64_perm_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.