mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-25 13:51:04 +08:00
Fix poll stub implementation.
This commit is contained in:
parent
bd9ffde61a
commit
355f916505
@ -1,5 +1,9 @@
|
|||||||
2013-05-06 Roland McGrath <roland@hack.frob.com>
|
2013-05-06 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* io/poll.c (__poll): Renamed from poll.
|
||||||
|
Add libc_hidden_def.
|
||||||
|
(poll): Define as weak alias.
|
||||||
|
|
||||||
* debug/ptsname_r_chk.c: Moved to ...
|
* debug/ptsname_r_chk.c: Moved to ...
|
||||||
* login/ptsname_r_chk.c: ... here.
|
* login/ptsname_r_chk.c: ... here.
|
||||||
* debug/Makefile (routines): Move ptsname_r_chk to ...
|
* debug/Makefile (routines): Move ptsname_r_chk to ...
|
||||||
|
10
io/poll.c
10
io/poll.c
@ -1,4 +1,5 @@
|
|||||||
/* Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
/* Poll (or wait) for file descriptor I/O availability. Stub version.
|
||||||
|
Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -25,13 +26,12 @@
|
|||||||
or -1 for errors. */
|
or -1 for errors. */
|
||||||
|
|
||||||
int
|
int
|
||||||
poll (fds, nfds, timeout)
|
__poll (struct pollfd *fds, nfds_t nfds, int timeout)
|
||||||
struct pollfd *fds;
|
|
||||||
nfds_t nfds;
|
|
||||||
int timeout;
|
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (__poll)
|
||||||
|
weak_alias (__poll, poll)
|
||||||
|
|
||||||
stub_warning (poll)
|
stub_warning (poll)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user