Deleted Added
full compact
ppoll.c (281712) ppoll.c (281981)
1/*
2 * Copyright (c) 2015 The FreeBSD Foundation.
3 * All rights reserved.
4 *
5 * Portions of this software were developed by Konstantin Belousov
6 * under sponsorship from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2015 The FreeBSD Foundation.
3 * All rights reserved.
4 *
5 * Portions of this software were developed by Konstantin Belousov
6 * under sponsorship from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/lib/libc/sys/ppoll.c 281712 2015-04-18 21:35:41Z kib $");
34__FBSDID("$FreeBSD: stable/10/lib/libc/sys/ppoll.c 281981 2015-04-25 08:14:08Z kib $");
35
36#include <sys/types.h>
37#include <sys/poll.h>
38#include "libc_private.h"
39
40__weak_reference(__sys_ppoll, __ppoll);
41
42#pragma weak ppoll
43int
44ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *__restrict
45 timeout, const sigset_t *__restrict newsigmask)
46{
47
48 return (((int (*)(struct pollfd *, nfds_t, const struct timespec *,
49 const sigset_t *)) __libc_interposing[INTERPOS_ppoll])(pfd, nfds,
50 timeout, newsigmask));
51}
35
36#include <sys/types.h>
37#include <sys/poll.h>
38#include "libc_private.h"
39
40__weak_reference(__sys_ppoll, __ppoll);
41
42#pragma weak ppoll
43int
44ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *__restrict
45 timeout, const sigset_t *__restrict newsigmask)
46{
47
48 return (((int (*)(struct pollfd *, nfds_t, const struct timespec *,
49 const sigset_t *)) __libc_interposing[INTERPOS_ppoll])(pfd, nfds,
50 timeout, newsigmask));
51}