Skip to content

proposal: x/sys/unix: support for all fields of EpollEvent #32192

@wI2L

Description

@wI2L

Similar to this discussion about kqueue, and related to this closed issue, it would be nice to add the missing fields of the C type epoll_event defined as the following to the equivalent unix.EpollEvent type in Go.

     typedef union epoll_data {
           void    *ptr;
           int      fd;
           uint32_t u32;
           uint64_t u64;
       } epoll_data_t;

       struct epoll_event {
           uint32_t     events;    /* Epoll events */
           epoll_data_t data;      /* User data variable */
       };

/cc @tklauser @bradfitz @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions