lkml.org 
[lkml]   [2012]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 21/21] posix_types: Remove fd_set macros
Date
H. Peter Anvin <hpa@zytor.com> wrote:

> Anyway, select() paraphernalia goes in <sys/time.h> (as opposed to
> <time.h>), poll() paraphernalia goes in <sys/poll.h>, and the linux/*
> files mimics that.

That doesn't seem to be so - at least not for my copy of glibc:

/usr/include/sys/select.h:/* fd_set for select and pselect. */
/usr/include/sys/select.h: } fd_set;
/usr/include/sys/select.h:#define FD_ISSET(fd, fdsetp) __FD_ISSET (fd, fdsetp)

Besides, this is inside the kernel. The I/O polling architecture definitions
(which includes select) ought to be in one place there, not spread out all
over the place.

David


\
 
 \ /
  Last update: 2012-02-08 22:27    [W:0.298 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site