diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-11-16 20:31:31 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-11-16 20:31:31 +0000 |
commit | 7aaf40b4d8200f8ac3ee222799656e02f24e27e1 (patch) | |
tree | d70cdb5839e9b5a631fb6904fb5b7a20d6691e1f /sys | |
parent | 6b686151bd6a49dcfe690616da7d375cd50c90a5 (diff) |
rcsid; lots of bad tabs and spaces
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/event.h | 14 | ||||
-rw-r--r-- | sys/sys/eventvar.h | 4 |
2 files changed, 11 insertions, 7 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 7ed150fa4fd..3f63627c1f1 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,3 +1,5 @@ +/* $OpenBSD: event.h,v 1.2 2000/11/16 20:31:29 mickey Exp $ */ + /*- * Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org> * All rights reserved. @@ -92,7 +94,7 @@ struct kevent { * This is currently visible to userland to work around broken * programs which pull in <sys/proc.h> or <sys/select.h>. */ -#include <sys/queue.h> +#include <sys/queue.h> struct knote; SLIST_HEAD(klist, knote); @@ -118,7 +120,7 @@ struct knote { SLIST_ENTRY(knote) kn_selnext; /* for struct selinfo */ TAILQ_ENTRY(knote) kn_tqe; struct kqueue *kn_kq; /* which queue we are on */ - struct kevent kn_kevent; + struct kevent kn_kevent; int kn_status; int kn_sfflags; /* saved filter flags */ int kn_sdata; /* saved data field */ @@ -145,17 +147,17 @@ struct proc; extern void knote(struct klist *list, long hint); extern void knote_remove(struct proc *p, struct klist *list); extern void knote_fdclose(struct proc *p, int fd); -extern int kqueue_register(struct kqueue *kq, +extern int kqueue_register(struct kqueue *kq, struct kevent *kev, struct proc *p); -#else /* !_KERNEL */ +#else /* !_KERNEL */ #include <sys/cdefs.h> struct timespec; __BEGIN_DECLS -int kqueue __P((void)); -int kevent __P((int kq, const struct kevent *changelist, int nchanges, +int kqueue __P((void)); +int kevent __P((int kq, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout)); __END_DECLS diff --git a/sys/sys/eventvar.h b/sys/sys/eventvar.h index e927b7abd18..b7d1633fdd5 100644 --- a/sys/sys/eventvar.h +++ b/sys/sys/eventvar.h @@ -1,3 +1,5 @@ +/* $OpenBSD: eventvar.h,v 1.2 2000/11/16 20:31:30 mickey Exp $ */ + /*- * Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org> * All rights reserved. @@ -35,7 +37,7 @@ struct kqueue { TAILQ_HEAD(kqlist, knote) kq_head; /* list of pending event */ int kq_count; /* number of pending events */ - struct selinfo kq_sel; + struct selinfo kq_sel; struct filedesc *kq_fdp; int kq_state; #define KQ_SEL 0x01 |