poll.c (d7847a8d351436a4654bd2c746bc9c04401160ee) poll.c (7dd9070e4425a1c2e2418694fd632425a283d558)
1/*
2 * Copyright (c) 2014 The FreeBSD Foundation.
3 *
4 * Portions of this software were developed by Konstantin Belousov
5 * under sponsorship from the FreeBSD Foundation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

34#include "libc_private.h"
35
36__weak_reference(__sys_poll, __poll);
37
38#pragma weak poll
39int
40poll(struct pollfd pfd[], nfds_t nfds, int timeout)
41{
1/*
2 * Copyright (c) 2014 The FreeBSD Foundation.
3 *
4 * Portions of this software were developed by Konstantin Belousov
5 * under sponsorship from the FreeBSD Foundation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

34#include "libc_private.h"
35
36__weak_reference(__sys_poll, __poll);
37
38#pragma weak poll
39int
40poll(struct pollfd pfd[], nfds_t nfds, int timeout)
41{
42 return (((int (*)(struct pollfd *, nfds_t, int))
43 *(__libc_interposing_slot(INTERPOS_poll)))(pfd, nfds, timeout));
42 return (INTERPOS_SYS(poll, pfd, nfds, timeout));
44}
43}