/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/ |
H A D | t_ioctl.c | 56 int kq; local 59 RL(kq = kqueue()); 66 RL(ioctl(kq, KFILTER_BYFILTER, &km)); 71 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYFILTER, &km), -1); 94 int kq; local 96 RL(kq = kqueue()); 102 RL(ioctl(kq, KFILTER_BYNAME, &km)); 107 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYNAME, &km), -1);
|
H A D | t_proc3.c | 60 int kq, status; local 64 RL(kq = kqueue()); 68 RL(kevent(kq, &ke, 1, NULL, 0, NULL)); 86 RL(kevent(kq, NULL, 0, &ke, 1, &timeout)); 87 RL(close(kq));
|
H A D | t_proc2.c | 93 int kq, status; local 97 RL(kq = kqueue()); 112 RL(kevent(kq, &ke, 1, NULL, 0, &timeout)); 120 RL(kevent(kq, NULL, 0, &ke, 1, &timeout)); 121 RL(close(kq));
|
H A D | t_vnode.c | 24 static int kq = -1; variable 47 kq = kqueue(); 48 if (kq < 0) { 55 return kevent(kq, eventlist, 1, NULL, 0, NULL); 80 (void)close(kq); 99 ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1); 123 ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1); 147 ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1); 171 ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1); 194 ATF_REQUIRE(kevent(kq, NUL [all...] |
H A D | t_proc1.c | 102 int kq, status; local 105 RL(kq = kqueue()); 122 RL(kevent(kq, event, 1, NULL, 0, NULL)); 126 RL(kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_sig.c | 71 int kq, n, num, status; local 89 RL(kq = kqueue()); 94 RL(ioctl(kq, KFILTER_BYNAME, &km)); 109 RL(kevent(kq, event, 1, NULL, 0, NULL)); 120 RL(n = kevent(kq, NULL, 0, event, 1, &timeout));
|
/freebsd-10-stable/sys/kern/ |
H A D | kern_event.c | 75 * This lock is used if multiple kq locks are required. This possibly 95 static int kqueue_register(struct kqueue *kq, struct kevent *kev, 98 static void kqueue_release(struct kqueue *kq, int locked); 99 static int kqueue_expand(struct kqueue *kq, struct filterops *fops, 102 static int kqueue_scan(struct kqueue *kq, int maxevents, 106 static void kqueue_wakeup(struct kqueue *kq); 133 static int knote_attach(struct knote *kn, struct kqueue *kq); 204 #define KQ_LOCK(kq) do { \ 205 mtx_lock(&(kq)->kq_lock); \ 207 #define KQ_FLUX_WAKEUP(kq) d 309 struct kqueue *kq = kn->kn_fp->f_data; local 324 struct kqueue *kq = kn->kn_fp->f_data; local 333 struct kqueue *kq = kn->kn_fp->f_data; local 468 struct kqueue *kq; local 800 struct kqueue *kq; local 970 struct kqueue *kq; local 1103 kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int waitok) argument 1342 struct kqueue *kq; local 1362 kqueue_release(struct kqueue *kq, int locked) argument 1376 kqueue_schedtask(struct kqueue *kq) argument 1399 kqueue_expand(struct kqueue *kq, struct filterops *fops, uintptr_t ident, int waitok) argument 1464 struct kqueue *kq; local 1488 kqueue_scan(struct kqueue *kq, int maxevents, struct kevent_copyops *k_ops, const struct timespec *tsp, struct kevent *keva, struct thread *td) argument 1774 struct kqueue *kq; local 1818 struct kqueue *kq = fp->f_data; local 1923 kqueue_wakeup(struct kqueue *kq) argument 1954 struct kqueue *kq; local 2207 struct kqueue *kq; local 2268 struct kqueue *kq; local 2306 knote_attach(struct knote *kn, struct kqueue *kq) argument 2334 struct kqueue *kq; local 2367 struct kqueue *kq = kn->kn_kq; local 2381 struct kqueue *kq = kn->kn_kq; local 2420 struct kqueue *kq; local [all...] |
/freebsd-10-stable/lib/libc/sys/ |
H A D | kevent.c | 45 kevent(int kq, const struct kevent *changelist, int nchanges, argument 51 __libc_interposing[INTERPOS_kevent])(kq, changelist, nchanges,
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_kevent.c | 66 int kq; local 68 ATF_REQUIRE((kq = kqueue()) != -1); 70 ATF_REQUIRE(kevent(kq, &ev, 1, NULL, 0, NULL) != -1); 71 ATF_REQUIRE(kevent(kq, NULL, 0, &ev, 1, NULL) == 1); 84 int s[2], storage, status, kq; local 90 ATF_REQUIRE((kq = kqueue()) != -1); 118 kq = *(int *)CMSG_DATA(msg); 119 printf("child (pid %d): received kq fd %d\n", getpid(), kq); 136 *(int *)CMSG_DATA(msg) = kq; 164 int fd, kq; local [all...] |
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/write/ |
H A D | t_pipe.c | 60 int kq, n; local 63 RL(kq = kqueue()); 67 ATF_REQUIRE_EQ_MSG((n = kevent(kq, event, 1, NULL, 0, NULL)), 84 int kq, n; local 89 RL(kq = kqueue()); 92 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 125 int kq; local 128 RL(kq = kqueue()); 131 RL(kevent(kq, even [all...] |
H A D | t_fifo.c | 63 int kq, n, fd, status; local 67 RL(kq = kqueue()); 79 RL(kevent(kq, event, 1, NULL, 0, NULL)); 82 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_ttypty.c | 60 int status, kq, n; local 84 RL(kq = kqueue()); 87 RL(kevent(kq, event, 1, NULL, 0, NULL)); 89 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
/freebsd-10-stable/tools/regression/sockets/kqueue/ |
H A D | kqueue.c | 104 test_evfilt_read(int kq, int fd[2], const char *socktype) argument 113 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 122 i = kevent(kq, NULL, 0, &ke, 1, &ts); 148 i = kevent(kq, NULL, 0, &ke, 1, &ts); 173 i = kevent(kq, NULL, 0, &ke, 1, &ts); 183 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 189 test_evfilt_write(int kq, int fd[2], const char *socktype) argument 198 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 207 i = kevent(kq, NULL, 0, &ke, 1, &ts); 233 i = kevent(kq, NUL 255 int kq, sv[2]; local [all...] |
/freebsd-10-stable/contrib/openbsm/bin/auditdistd/ |
H A D | subr.c | 190 int error, kq; local 198 kq = kqueue(); 199 if (kq == -1) { 205 if (kevent(kq, &ev, 1, NULL, 0, NULL) == -1) { 208 (void)close(kq); 212 wait_for_dir_kq = kq; 223 int error, kq; local 234 kq = kqueue(); 235 if (kq == -1) { 243 if (kevent(kq, e [all...] |
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/ |
H A D | t_file2.c | 56 int fd1, fd2, kq; local 66 RL(kq = kqueue()); 69 RL(kevent(kq, event, 1, NULL, 0, NULL));
|
H A D | t_fifo.c | 60 int kq, n, fd; local 67 RL(kq = kqueue()); 70 RL(kevent(kq, event, 1, NULL, 0, NULL)); 78 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_pipe.c | 56 int kq, n; local 59 RL(kq = kqueue()); 62 RL(kevent(kq, event, 1, NULL, 0, NULL)); 68 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_ttypty.c | 58 int kq, n, status; local 98 RL(kq = kqueue()); 101 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_file.c | 90 int fd, kq, n, num, status; local 104 RL(kq = kqueue()); 107 RL(kevent(kq, event, 1, NULL, 0, NULL)); 110 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
/freebsd-10-stable/tests/sys/mqueue/ |
H A D | mqtest4.c | 34 int kq, status; local 56 kq = kqueue(); 61 status = kevent(kq, &kev, 1, NULL, 0, NULL); 67 status = kevent(kq, NULL, 0, &kev, 1, NULL); 91 kq = kqueue(); 93 status = kevent(kq, &kev, 1, NULL, 0, NULL); 102 status = kevent(kq, NULL, 0, &kev, 1, NULL);
|
/freebsd-10-stable/bin/pwait/ |
H A D | pwait.c | 66 int kq; local 90 kq = kqueue(); 91 if (kq == -1) 115 if (kevent(kq, e + nleft, 1, NULL, 0, NULL) == -1) 123 n = kevent(kq, NULL, 0, e, nleft, NULL);
|
/freebsd-10-stable/tests/sys/kern/pipe/ |
H A D | pipe_fstat_bug_test.c | 58 int kq; local 124 kq = kqueue(); 125 if (kq == -1) 131 if (kevent(kq, &ke, 1, NULL, 0, NULL) != 0) 139 if (kevent(kq, NULL, 0, &event, 1, NULL) != 1)
|
/freebsd-10-stable/lib/libproc/ |
H A D | _libproc.h | 40 int kq; /* Kernel event queue ID. */ member in struct:proc_handle
|
/freebsd-10-stable/crypto/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 226 BIGNUM k, kq, *K, *kinv = NULL, *r = NULL; local 235 BN_init(&kq); 266 if (!BN_copy(&kq, &k)) 269 BN_set_flags(&kq, BN_FLG_CONSTTIME); 278 if (!BN_add(&kq, &kq, dsa->q)) 280 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q)) { 281 if (!BN_add(&kq, &kq, dsa->q)) 285 K = &kq; [all...] |
/freebsd-10-stable/usr.sbin/autofs/ |
H A D | autounmountd.c | 230 do_wait(int kq, double sleep_time) argument 242 nevents = kevent(kq, NULL, 0, &unused, 1, &timeout); 245 nevents = kevent(kq, NULL, 0, &unused, 1, NULL); 268 int ch, debug = 0, error, kq; local 325 kq = kqueue(); 326 if (kq < 0) 330 error = kevent(kq, &event, 1, NULL, 0, NULL); 350 do_wait(kq, sleep_time);
|