Deleted Added
full compact
kevent.c (280818) kevent.c (281454)
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/kevent.c 280818 2015-03-29 19:14:41Z kib $");
34__FBSDID("$FreeBSD: stable/10/lib/libc/sys/kevent.c 281454 2015-04-12 06:52:43Z kib $");
35
36#include <sys/types.h>
37#include <sys/event.h>
38#include <sys/time.h>
39#include "libc_private.h"
40
41__weak_reference(__sys_kevent, __kevent);
42
43#pragma weak kevent
44int
45kevent(int kq, const struct kevent *changelist, int nchanges,
46 struct kevent *eventlist, int nevents, const struct timespec *timeout)
47{
48
49 return (((int (*)(int, const struct kevent *, int,
50 struct kevent *, int, const struct timespec *))
51 __libc_interposing[INTERPOS_kevent])(kq, changelist, nchanges,
52 eventlist, nevents, timeout));
53}
35
36#include <sys/types.h>
37#include <sys/event.h>
38#include <sys/time.h>
39#include "libc_private.h"
40
41__weak_reference(__sys_kevent, __kevent);
42
43#pragma weak kevent
44int
45kevent(int kq, const struct kevent *changelist, int nchanges,
46 struct kevent *eventlist, int nevents, const struct timespec *timeout)
47{
48
49 return (((int (*)(int, const struct kevent *, int,
50 struct kevent *, int, const struct timespec *))
51 __libc_interposing[INTERPOS_kevent])(kq, changelist, nchanges,
52 eventlist, nevents, timeout));
53}