/macosx-10.10/xnu-2782.1.97/bsd/kern/ |
H A D | kern_event.c | 113 static int kqlock2knoteuse(struct kqueue *kq, struct knote *kn); 114 static int kqlock2knoteusewait(struct kqueue *kq, struct knote *kn); 115 static int kqlock2knotedrop(struct kqueue *kq, struct knote *kn); 116 static int knoteuse2kqlock(struct kqueue *kq, struct knote *kn); 128 static int kqueue_kqfilter(struct fileproc *fp, struct knote *kn, 160 static int knote_process(struct knote *kn, kevent_callback_t callback, 162 static void knote_put(struct knote *kn); 163 static int knote_fdpattach(struct knote *kn, struct filedesc *fdp, 165 static void knote_drop(struct knote *kn, struct proc *p); 166 static void knote_activate(struct knote *kn, in 336 kqlock2knoteuse(struct kqueue *kq, struct knote *kn) argument 356 kqlock2knoteusewait(struct kqueue *kq, struct knote *kn) argument 382 knoteuse2kqlock(struct kqueue *kq, struct knote *kn) argument 413 kqlock2knotedrop(struct kqueue *kq, struct knote *kn) argument 437 knote_put(struct knote *kn) argument 453 filt_fileattach(struct knote *kn) argument 466 filt_kqdetach(struct knote *kn) argument 477 filt_kqueue(struct knote *kn, __unused long hint) argument 486 filt_procattach(struct knote *kn) argument 537 filt_procdetach(struct knote *kn) argument 553 filt_proc(struct knote *kn, long hint) argument 669 filt_vmattach(struct knote *kn) argument 680 filt_vmdetach(struct knote *kn) argument 686 filt_vm(struct knote *kn, long hint) argument 721 filt_timervalidate(struct knote *kn) argument 790 filt_timerupdate(struct knote *kn) argument 825 struct knote *kn = knx; local 851 filt_timercancel(struct knote *kn) argument 879 filt_timerattach(struct knote *kn) argument 933 filt_timerdetach(struct knote *kn) argument 950 filt_timer(struct knote *kn, long hint) argument 1007 filt_timertouch(struct knote *kn, struct kevent64_s *kev, long type) argument 1086 filt_userattach(struct knote *kn) argument 1099 filt_userdetach(__unused struct knote *kn) argument 1105 filt_user(struct knote *kn, __unused long hint) argument 1111 filt_usertouch(struct knote *kn, struct kevent64_s *kev, long type) argument 1157 filt_badattach(__unused struct knote *kn) argument 1215 struct knote *kn; local 1648 struct knote *kn = NULL; local 1861 knote_process(struct knote *kn, kevent_callback_t callback, void *data, struct kqtailq *inprocessp, struct proc *p) argument 2077 struct knote *kn; local 2319 struct knote *kn; local 2418 kqueue_kqfilter(__unused struct fileproc *fp, struct knote *kn, __unused vfs_context_t ctx) argument 2542 struct knote *kn; local 2568 knote_attach(struct klist *list, struct knote *kn) argument 2580 knote_detach(struct klist *list, struct knote *kn) argument 2597 knote_link_wait_queue(struct knote *kn, struct wait_queue *wq, wait_queue_link_t wql) argument 2621 knote_unlink_wait_queue(struct knote *kn, struct wait_queue *wq, wait_queue_link_t *wqlp) argument 2648 struct knote *kn; local 2682 knote_fdpattach(struct knote *kn, struct filedesc *fdp, struct proc *p) argument 2734 knote_drop(struct knote *kn, __unused struct proc *ctxp) argument 2767 knote_activate(struct knote *kn, int propagate) argument 2782 knote_deactivate(struct knote *kn) argument 2790 knote_enqueue(struct knote *kn) argument 2805 knote_dequeue(struct knote *kn) argument 2855 knote_free(struct knote *kn) argument 3513 knote_markstayqueued(struct knote *kn) argument [all...] |
H A D | vm_pressure.c | 96 int vm_knote_register(struct knote *kn) { argument 101 if ((kn->kn_sfflags) & (NOTE_VM_PRESSURE)) { 102 KNOTE_ATTACH(&vm_pressure_klist, kn); 112 void vm_knote_unregister(struct knote *kn) { argument 117 VM_PRESSURE_DEBUG(0, "[vm_pressure] process %d cancelling pressure notification\n", kn->kn_kq->kq_p->p_pid); 120 if (kn_temp == kn) { 121 KNOTE_DETACH(&vm_pressure_klist, kn); 128 if (kn_temp == kn) { 129 KNOTE_DETACH(&vm_pressure_klist_dormant, kn); 140 struct knote *kn local 181 struct knote *kn = NULL; local 200 struct knote *kn; local 234 struct knote *kn, *kn_tmp; local 288 struct knote *kn = NULL, *kn_max = NULL; local 427 struct knote *kn = NULL, *kn_max = NULL; local 687 struct knote *kn; local [all...] |
H A D | tty_ptmx.c | 528 ptsd_kqops_detach(struct knote *kn) argument 532 dev_t dev, lockdev = (dev_t)kn->kn_hookid; 536 if ((dev = (dev_t)kn->kn_hookid) != 0) { 540 if (kn->kn_filter == EVFILT_READ) 541 KNOTE_DETACH(&tp->t_rsel.si_note, kn); 543 KNOTE_DETACH(&tp->t_wsel.si_note, kn); 545 kn->kn_hookid = 0; 553 ptsd_kqops_event(struct knote *kn, long hint) argument 557 dev_t dev = (dev_t)kn->kn_hookid; 563 if (kn 611 ptsd_kqfilter(dev_t dev, struct knote *kn) argument 664 struct knote *kn, *tkn; local [all...] |
H A D | sys_pipe.c | 167 static int pipe_kqfilter(struct fileproc *fp, struct knote *kn, 184 static void filt_pipedetach(struct knote *kn); 185 static int filt_piperead(struct knote *kn, long hint); 186 static int filt_pipewrite(struct knote *kn, long hint); 1356 pipe_kqfilter(__unused struct fileproc *fp, struct knote *kn, __unused vfs_context_t ctx) argument 1360 cpipe = (struct pipe *)kn->kn_fp->f_data; 1369 if (mac_pipe_check_kqfilter(vfs_context_ucred(ctx), kn, cpipe) != 0) { 1375 switch (kn->kn_filter) { 1377 kn->kn_fop = &pipe_rfiltops; 1381 kn 1406 filt_pipedetach(struct knote *kn) argument 1428 filt_piperead(struct knote *kn, long hint) argument 1468 filt_pipewrite(struct knote *kn, long hint) argument [all...] |
H A D | uipc_socket.c | 149 static void filt_sordetach(struct knote *kn); 150 static int filt_soread(struct knote *kn, long hint); 151 static void filt_sowdetach(struct knote *kn); 152 static int filt_sowrite(struct knote *kn, long hint); 153 static void filt_sockdetach(struct knote *kn); 154 static int filt_sockev(struct knote *kn, long hint); 5371 soo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) argument 5377 struct socket *so = (struct socket *)kn->kn_fp->f_fglob->fg_data; 5386 kn, so) != 0) { 5392 switch (kn 5431 filt_sordetach(struct knote *kn) argument 5444 filt_soread(struct knote *kn, long hint) argument 5531 filt_sowdetach(struct knote *kn) argument 5556 filt_sowrite(struct knote *kn, long hint) argument 5616 filt_sockdetach(struct knote *kn) argument 5628 filt_sockev(struct knote *kn, long hint) argument [all...] |
H A D | kern_memorystatus.c | 129 static int filt_memorystatusattach(struct knote *kn); 130 static void filt_memorystatusdetach(struct knote *kn); 131 static int filt_memorystatus(struct knote *kn, long hint); 498 struct knote *kn = NULL; variable in typeref:struct:knote 517 kn = vm_find_knote_from_pid(pid, &memorystatus_klist); 518 if (kn) { 522 kn->kn_fflags |= NOTE_MEMORYSTATUS_PRESSURE_WARN; 3003 struct knote *kn = NULL; local 3010 kn = vm_find_knote_from_pid(pid, &memorystatus_klist); 3011 if (kn) { 3047 struct knote *kn = NULL; local 4177 filt_memorystatusattach(struct knote *kn) argument 4184 filt_memorystatusdetach(struct knote *kn) argument 4241 memorystatus_knote_register(struct knote *kn) argument [all...] |
H A D | kern_sig.c | 148 static int filt_sigattach(struct knote *kn); 149 static void filt_sigdetach(struct knote *kn); 150 static int filt_signal(struct knote *kn, long hint); 151 static void filt_signaltouch(struct knote *kn, struct kevent64_s *kev, 2785 filt_sigattach(struct knote *kn) argument 2791 kn->kn_ptr.p_proc = p; 2792 kn->kn_flags |= EV_CLEAR; /* automatically set */ 2794 KNOTE_ATTACH(&p->p_klist, kn); 2807 filt_sigdetach(struct knote *kn) argument 2809 proc_t p = kn 2827 filt_signal(struct knote *kn, long hint) argument 2843 filt_signaltouch(struct knote *kn, struct kevent64_s *kev, long type) argument [all...] |
/macosx-10.10/xnu-2782.1.97/osfmk/ipc/ |
H A D | ipc_pset.c | 320 static int filt_machportattach(struct knote *kn); 321 static void filt_machportdetach(struct knote *kn); 322 static int filt_machport(struct knote *kn, long hint); 323 static void filt_machporttouch(struct knote *kn, struct kevent64_s *kev, long type); 324 static unsigned filt_machportpeek(struct knote *kn); 335 struct knote *kn) 337 mach_port_name_t name = (mach_port_name_t)kn->kn_kevent.ident; 358 result = knote_link_wait_queue(kn, &pset->ips_messages.imq_wait_queue, wql); 361 kn->kn_ptr.p_pset = pset; 374 struct knote *kn) 334 filt_machportattach( struct knote *kn) argument 373 filt_machportdetach( struct knote *kn) argument 393 filt_machport( struct knote *kn, __unused long hint) argument 515 filt_machporttouch(struct knote *kn, struct kevent64_s *kev, long type) argument 555 filt_machportpeek(struct knote *kn) argument [all...] |
/macosx-10.10/bash-94.1.2/bash-3.2/examples/scripts/ |
H A D | adventure.sh | 116 kn=`echo \`ls -a $KNAP | sed -e '/^\.$/d' -e '/^\.\.$/d'\`` 204 else if ash_lk "$kn" "$obj" 234 else if ash_lk "$kn" "$obj" 244 do if ash_lk "$kn" "$it" 249 kn=`ash_rm "$kn" "$it"` 292 else if ash_lk "$kn" "$it" 321 else if ash_lk "$kn" "$obj" 336 then if ash_lk "$kn" "$it" 340 kn [all...] |
/macosx-10.10/Security-57031.1.35/Security/include/security_cryptkit/ |
H A D | ckDES.h | 52 unsigned char kn[16][8]; member in struct:_desInst
|
H A D | ckDES.c | 341 ffree((char *)dinst->kn); 350 dinst->kn = NULL; 371 dinst->kn[i][j] = *key++; 377 dinst->kn[i][j]=0; 391 /* check bit that goes to dinst->kn[j] */ 395 dinst->kn[i][j/6] |= bytebit[l] >> 2; 401 printf("dinst->kn[%d] = ", i); 403 printf("%x ", dinst->kn[i][j]); 454 block[1] ^= f(block[0],dinst->kn[num]); 456 block[0] ^= f(block[1],dinst->kn[nu [all...] |
/macosx-10.10/Security-57031.1.35/Security/libsecurity_cryptkit/lib/ |
H A D | ckDES.h | 52 unsigned char kn[16][8]; member in struct:_desInst
|
H A D | ckDES.c | 341 ffree((char *)dinst->kn); 350 dinst->kn = NULL; 371 dinst->kn[i][j] = *key++; 377 dinst->kn[i][j]=0; 391 /* check bit that goes to dinst->kn[j] */ 395 dinst->kn[i][j/6] |= bytebit[l] >> 2; 401 printf("dinst->kn[%d] = ", i); 403 printf("%x ", dinst->kn[i][j]); 454 block[1] ^= f(block[0],dinst->kn[num]); 456 block[0] ^= f(block[1],dinst->kn[nu [all...] |
/macosx-10.10/xnu-2782.1.97/bsd/sys/ |
H A D | event.h | 449 int (*f_attach)(struct knote *kn); 450 void (*f_detach)(struct knote *kn); 451 int (*f_event)(struct knote *kn, long hint); 453 void (*f_touch)(struct knote *kn, struct kevent64_s *kev, long type); 455 unsigned (*f_peek)(struct knote *kn); 466 #define KNOTE_ATTACH(list, kn) knote_attach(list, kn) 467 #define KNOTE_DETACH(list, kn) knote_detach(list, kn) 471 extern int knote_attach(struct klist *list, struct knote *kn); [all...] |
/macosx-10.10/OpenSSL098-52/src/crypto/evp/ |
H A D | evp_test.c | 136 static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn, argument 148 hexdump(stdout,"Key",key,kn); 154 if(kn != c->key_len) 156 fprintf(stderr,"Key length doesn't match, got %d expected %d\n",kn, 244 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec); 371 int kn,in,pn,cn; local 391 kn=convert(key); 396 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec)
|
/macosx-10.10/OpenSSL098-52/src/test/ |
H A D | evp_test.c | 136 static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn, argument 148 hexdump(stdout,"Key",key,kn); 154 if(kn != c->key_len) 156 fprintf(stderr,"Key length doesn't match, got %d expected %d\n",kn, 244 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec); 371 int kn,in,pn,cn; local 391 kn=convert(key); 396 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec)
|
/macosx-10.10/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_vnops.c | 129 static int vn_kqfilt_add(struct fileproc *fp, struct knote *kn, 131 static void filt_vndetach(struct knote *kn); 132 static int filt_vnode(struct knote *kn, long hint); 1584 vn_kqfilt_add(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) argument 1595 switch (kn->kn_filter) { 1606 (error = spec_kqfilter(vp, kn)) == 0) { 1627 error = mac_vnode_check_kqfilter(ctx, fp->f_fglob->fg_cred, kn, vp); 1634 kn->kn_hook = (void*)vp; 1635 kn->kn_hookid = vnode_vid(vp); 1636 kn 1652 filt_vndetach(struct knote *kn) argument 1753 filt_vnode(struct knote *kn, long hint) argument [all...] |
H A D | vfs_fsevents.c | 1839 filt_fsevent_detach(struct knote *kn) argument 1841 fsevent_handle *fseh = (struct fsevent_handle *)kn->kn_hook; 1845 KNOTE_DETACH(&fseh->knotes, kn); 1860 filt_fsevent(struct knote *kn, long hint) argument 1862 fsevent_handle *fseh = (struct fsevent_handle *)kn->kn_hook; 1867 kn->kn_flags |= (EV_EOF | EV_ONESHOT); 1879 switch(kn->kn_filter) { 1881 kn->kn_data = amt; 1883 if (kn->kn_data != 0) { 1889 if (kn 1914 fseventsf_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) argument [all...] |
/macosx-10.10/xnu-2782.1.97/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 95 extern int bpfkqfilter(dev_t dev, struct knote *kn); 96 extern int ptsd_kqfilter(dev_t dev, struct knote *kn); 718 static int filt_specattach(struct knote *kn); 721 spec_kqfilter(vnode_t vp, struct knote *kn) argument 734 err = filt_specattach(kn); 738 err = bpfkqfilter(dev, kn); 2328 static void filt_specdetach(struct knote *kn); 2329 static int filt_spec(struct knote *kn, long hint); 2330 static unsigned filt_specpeek(struct knote *kn); 2356 filt_specattach(struct knote *kn) argument 2390 filt_specdetach(struct knote *kn) argument 2411 filt_spec(struct knote *kn, long hint) argument 2466 filt_specpeek(struct knote *kn) argument [all...] |
H A D | specdev.h | 138 int spec_kqfilter (vnode_t vp, struct knote *kn);
|
/macosx-10.10/bind9-45.101/bind9/lib/dns/include/dns/ |
H A D | keytable.h | 81 #define VALID_KEYNODE(kn) ISC_MAGIC_VALID(kn, KEYNODE_MAGIC)
|
/macosx-10.10/emacs-93/emacs/src/ |
H A D | getloadavg.c | 529 kstat_named_t *kn; 541 kn = kstat_data_lookup (ksp, "avenrun_1min"); 542 if (kn == 0) 550 loadavg[elem++] = (double) kn->value.ul/FSCALE; 554 kn = kstat_data_lookup (ksp, "avenrun_5min"); 555 if (kn != 0) 557 loadavg[elem++] = (double) kn->value.ul/FSCALE; 561 kn = kstat_data_lookup (ksp, "avenrun_15min"); 562 if (kn != 0) 563 loadavg[elem++] = (double) kn 527 kstat_named_t *kn; local [all...] |
/macosx-10.10/xnu-2782.1.97/security/ |
H A D | mac_pipe.c | 146 mac_pipe_check_kqfilter(kauth_cred_t cred, struct knote *kn, argument 154 MAC_CHECK(pipe_check_kqfilter, cred, kn, cpipe, cpipe->pipe_label);
|
/macosx-10.10/xnu-2782.1.97/bsd/net/ |
H A D | bpf.c | 2048 int bpfkqfilter(dev_t dev, struct knote *kn); 2059 bpfkqfilter(dev_t dev, struct knote *kn) argument 2070 if (kn->kn_filter != EVFILT_READ) { 2087 kn->kn_hook = d; 2088 kn->kn_fop = &bpfread_filtops; 2089 KNOTE_ATTACH(&d->bd_sel.si_note, kn); 2095 filt_bpfdetach(struct knote *kn) argument 2097 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; 2100 KNOTE_DETACH(&d->bd_sel.si_note, kn); 2105 filt_bpfread(struct knote *kn, lon argument [all...] |
/macosx-10.10/ruby-106/ruby/lib/ |
H A D | optparse.rb | 239 kn = nil 242 kn = defined?(k.id2name) ? k.id2name : k 243 pat === kn 246 candidates << [k, v, kn] 257 candidates = candidate(key, icase, pat, &method(:each)).sort_by {|k, v, kn| kn.size} 262 candidates.each do |k, v, kn| 264 if String === cn and String === kn 265 if cn.rindex(kn, 0) 266 canon, sw, cn = k, v, kn [all...] |