Deleted Added
full compact
bsd-poll.c (261320) bsd-poll.c (263712)
1/* $Id: bsd-poll.c,v 1.5 2013/11/08 10:12:58 dtucker Exp $ */
1/* $Id: bsd-poll.c,v 1.6 2014/02/05 23:44:13 dtucker Exp $ */
2
3/*
4 * Copyright (c) 2004, 2005, 2007 Darren Tucker (dtucker at zip com au).
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *

--- 94 unchanged lines hidden (view full) ---

104 fds[i].revents |= POLLOUT;
105 }
106 if (FD_ISSET(fd, exceptfds)) {
107 fds[i].revents |= POLLERR;
108 }
109 }
110
111out:
2
3/*
4 * Copyright (c) 2004, 2005, 2007 Darren Tucker (dtucker at zip com au).
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *

--- 94 unchanged lines hidden (view full) ---

104 fds[i].revents |= POLLOUT;
105 }
106 if (FD_ISSET(fd, exceptfds)) {
107 fds[i].revents |= POLLERR;
108 }
109 }
110
111out:
112 if (readfds != NULL)
113 free(readfds);
114 if (writefds != NULL)
115 free(writefds);
116 if (exceptfds != NULL)
117 free(exceptfds);
112 free(readfds);
113 free(writefds);
114 free(exceptfds);
118 if (ret == -1)
119 errno = saved_errno;
120 return ret;
121}
122#endif
115 if (ret == -1)
116 errno = saved_errno;
117 return ret;
118}
119#endif