to wait on a particular event based on the file descriptor.
hi: what is the function of a file's poll function ? thanks!