Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2011 00:15:56 -0400
From: Rich Felker <>
Subject: Re: [PATCH] add eventfd syscall wrapper and helper
 abstractions as in glibc

On Wed, May 04, 2011 at 10:59:45PM +0300, Serge Ziryukin wrote:
> abstractions are:
> typedef uint64_t eventfd_t;
> int eventfd_read(int fd, eventfd_t *value);
> int eventfd_write(int fd, eventfd_t value);
> these are trying to hide the details of reading and writing
> on an eventfd descriptor.

Seems silly, but if that's the usual API I have no objections. It's
small anyway.

> +int eventfd(unsigned int count, int flags)
> +{
> +	return syscall(SYS_eventfd, count, flags);
> +}

Shouldn't this be flags ? SYS_eventfd2 : SYS_eventfd...? The old
SYS_eventfd supposedly does not support flags.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.