mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Fix prototype of eventfd.
This commit is contained in:
committed by
Ondřej Bílka
parent
20e5a5f773
commit
69eb9a183c
@@ -1,3 +1,10 @@
|
|||||||
|
2014-09-20 Rasmus Villemoes <rv@rasmusvillemoes.dk>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/eventfd.c:
|
||||||
|
Make first argument unsigned.
|
||||||
|
* sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
|
||||||
|
|
||||||
2014-09-20 Ondřej Bílka <neleai@seznam.cz>
|
2014-09-20 Ondřej Bílka <neleai@seznam.cz>
|
||||||
|
|
||||||
* socket/recvmmsg.c (recvmmsg): Drop const argument.
|
* socket/recvmmsg.c (recvmmsg): Drop const argument.
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
eventfd (int count, int flags)
|
eventfd (unsigned int count, int flags)
|
||||||
{
|
{
|
||||||
#ifdef __NR_eventfd2
|
#ifdef __NR_eventfd2
|
||||||
int res = INLINE_SYSCALL (eventfd2, 2, count, flags);
|
int res = INLINE_SYSCALL (eventfd2, 2, count, flags);
|
||||||
|
@@ -40,7 +40,7 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
/* Return file descriptor for generic event channel. Set initial
|
/* Return file descriptor for generic event channel. Set initial
|
||||||
value to COUNT. */
|
value to COUNT. */
|
||||||
extern int eventfd (int __count, int __flags) __THROW;
|
extern int eventfd (unsigned int __count, int __flags) __THROW;
|
||||||
|
|
||||||
/* Read event counter and possibly wait for events. */
|
/* Read event counter and possibly wait for events. */
|
||||||
extern int eventfd_read (int __fd, eventfd_t *__value);
|
extern int eventfd_read (int __fd, eventfd_t *__value);
|
||||||
|
@@ -31,7 +31,7 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
/* Return file descriptor for generic event channel. Set initial
|
/* Return file descriptor for generic event channel. Set initial
|
||||||
value to COUNT. */
|
value to COUNT. */
|
||||||
extern int eventfd (int __count, int __flags) __THROW;
|
extern int eventfd (unsigned int __count, int __flags) __THROW;
|
||||||
|
|
||||||
/* Read event counter and possibly wait for events. */
|
/* Read event counter and possibly wait for events. */
|
||||||
extern int eventfd_read (int __fd, eventfd_t *__value);
|
extern int eventfd_read (int __fd, eventfd_t *__value);
|
||||||
|
Reference in New Issue
Block a user