Re: How can I use epoll?
From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 07/18/03
- Next message: Kasper Dupont: "Re: How do I calculate the free memory?"
- Previous message: Kasper Dupont: "Re: select() vs. poll()"
- In reply to: Cho Wooyoung: "How can I use epoll?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jul 2003 09:41:00 +0200
Cho Wooyoung wrote:
>
> I upgraded the kernel to 2.6-test and tried to compile small code following.
> ------------------------
> #include <stdint.h>
> #include <sys/epoll.h>
>
> int main()
> {
> int fd;
> fd = epoll_create(5);
> printf("%d\n",fd);
> }
> -------------------------
>
> But I got error message.
> ----------------------------------------------
> [newhero@retest00 epoll]$ gcc epoll.c
> /tmp/ccCDEU9Q.o(.text+0x16): In function `main':
> : undefined reference to `epoll_create'
> collect2: ld returned 1 exit status
> ----------------------------------------------
>
> How can I use epoll system calls?
Upgrade libc to a version with epoll support.
Or add it to your own code like this:
#include <asm/unistd.h>
static inline _syscall1(int,epoll_create,int);
-- Kasper Dupont -- der bruger for meget tid paa usenet. For sending spam use mailto:aaarep@daimi.au.dk This reply intentionally does not answer the question completely.
- Next message: Kasper Dupont: "Re: How do I calculate the free memory?"
- Previous message: Kasper Dupont: "Re: select() vs. poll()"
- In reply to: Cho Wooyoung: "How can I use epoll?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|