Deleted Added
full compact
kern_event.c (101987) kern_event.c (102003)
1/*-
2 * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/kern/kern_event.c 101987 2002-08-16 14:12:40Z rwatson $
26 * $FreeBSD: head/sys/kern/kern_event.c 102003 2002-08-17 02:36:16Z rwatson $
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>
33#include <sys/mutex.h>
34#include <sys/proc.h>

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

56static int kqueue_scan(struct file *fp, int maxevents,
57 struct kevent *ulistp, const struct timespec *timeout,
58 struct thread *td);
59static int kqueue_read(struct file *fp, struct uio *uio,
60 struct ucred *active_cred, int flags, struct thread *td);
61static int kqueue_write(struct file *fp, struct uio *uio,
62 struct ucred *active_cred, int flags, struct thread *td);
63static int kqueue_ioctl(struct file *fp, u_long com, void *data,
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32#include <sys/lock.h>
33#include <sys/mutex.h>
34#include <sys/proc.h>

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

56static int kqueue_scan(struct file *fp, int maxevents,
57 struct kevent *ulistp, const struct timespec *timeout,
58 struct thread *td);
59static int kqueue_read(struct file *fp, struct uio *uio,
60 struct ucred *active_cred, int flags, struct thread *td);
61static int kqueue_write(struct file *fp, struct uio *uio,
62 struct ucred *active_cred, int flags, struct thread *td);
63static int kqueue_ioctl(struct file *fp, u_long com, void *data,
64 struct thread *td);
64 struct ucred *active_cred, struct thread *td);
65static int kqueue_poll(struct file *fp, int events,
66 struct ucred *active_cred, struct thread *td);
67static int kqueue_kqfilter(struct file *fp, struct knote *kn);
68static int kqueue_stat(struct file *fp, struct stat *st,
69 struct ucred *active_cred, struct thread *td);
70static int kqueue_close(struct file *fp, struct thread *td);
71static void kqueue_wakeup(struct kqueue *kq);
72

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

789kqueue_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
790 int flags, struct thread *td)
791{
792 return (ENXIO);
793}
794
795/*ARGSUSED*/
796static int
65static int kqueue_poll(struct file *fp, int events,
66 struct ucred *active_cred, struct thread *td);
67static int kqueue_kqfilter(struct file *fp, struct knote *kn);
68static int kqueue_stat(struct file *fp, struct stat *st,
69 struct ucred *active_cred, struct thread *td);
70static int kqueue_close(struct file *fp, struct thread *td);
71static void kqueue_wakeup(struct kqueue *kq);
72

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

789kqueue_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
790 int flags, struct thread *td)
791{
792 return (ENXIO);
793}
794
795/*ARGSUSED*/
796static int
797kqueue_ioctl(struct file *fp, u_long com, void *data, struct thread *td)
797kqueue_ioctl(struct file *fp, u_long com, void *data,
798 struct ucred *active_cred, struct thread *td)
798{
799 return (ENOTTY);
800}
801
802/*ARGSUSED*/
803static int
804kqueue_poll(struct file *fp, int events, struct ucred *active_cred,
805 struct thread *td)

--- 280 unchanged lines hidden ---
799{
800 return (ENOTTY);
801}
802
803/*ARGSUSED*/
804static int
805kqueue_poll(struct file *fp, int events, struct ucred *active_cred,
806 struct thread *td)

--- 280 unchanged lines hidden ---