Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix poll stub implementation.
  • Loading branch information
Roland McGrath committed May 6, 2013
1 parent bd9ffde commit 355f916
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,5 +1,9 @@
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 ...
* login/ptsname_r_chk.c: ... here.
* debug/Makefile (routines): Move ptsname_r_chk to ...
Expand Down
10 changes: 5 additions & 5 deletions 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.
The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -25,13 +26,12 @@
or -1 for errors. */

int
poll (fds, nfds, timeout)
struct pollfd *fds;
nfds_t nfds;
int timeout;
__poll (struct pollfd *fds, nfds_t nfds, int timeout)
{
__set_errno (ENOSYS);
return -1;
}
libc_hidden_def (__poll)
weak_alias (__poll, poll)

stub_warning (poll)

0 comments on commit 355f916

Please sign in to comment.