Skip to content

CMSG_SPACE should be const #2087

Closed
@kalcutter

Description

@kalcutter

It would be useful to be able to do something like this:

const CONTROL_LEN: usize = libc::CMSG_SPACE(mem::size_of::<RawFd>() as _) as _;

This is possible in C/C++.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions