Article 4YW2Z fstat() on epoll fd returns a value in st_mode which indicates that it is a regular file. Is this file type correct for an epoll fd?

fstat() on epoll fd returns a value in st_mode which indicates that it is a regular file. Is this file type correct for an epoll fd?

by
Bikku
from LinuxQuestions.org on (#4YW2Z)
I am trying to understand file type of an epoll fd returned from epoll_create() system call. When I call fstat() on epoll fd, the value returned in statbuf.st_mode indicates that the epoll fd represents a regular file. Is this a correct behavior?

Thank you in advance.latest?d=yIl2AUoC8zA latest?i=3ur5x1IYsAA:SoNq9aAKoQI:F7zBnMy latest?i=3ur5x1IYsAA:SoNq9aAKoQI:V_sGLiP latest?d=qj6IDK7rITs latest?i=3ur5x1IYsAA:SoNq9aAKoQI:gIN9vFw3ur5x1IYsAA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments