FreeBSD & Linux disk AIO support

Igor Sysoev is at rambler-co.ru
Wed Aug 26 11:46:13 MSD 2009


On Wed, Aug 26, 2009 at 10:34:20AM +0300, dimkalinux wrote:

> Ядро 2.6.30 eventfd.h находится в linux/ а не sys/ хотя может в разных
> дистрибутивах по разному.

http://www.kernel.org/doc/man-pages/online/pages/man2/eventfd.2.html

> Еще при configure в autoconf.err такое
> 
> /tmp/ccWZqru9.o: In function `main':
> autotest.c:(.text+0x1d): undefined reference to `eventfd'
> collect2: ld returned 1 exit status
> ----------
> 
> #include <sys/types.h>
> #include <unistd.h>
> #include <linux/eventfd.h>
> 
> int main() {
>     int  n = eventfd(0, O_NONBLOCK);
>     return 0;
> }

Скорее всего, glibc старая. Насколько я понимаю, это дистрибутив, где
руками поставили ядро поновее ?


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list