| /src/external/bsd/ntp/dist/libntp/lib/isc/ |
| event.c | 1 /* $NetBSD: event.c,v 1.2 2024/08/18 20:47:14 christos Exp $ */ 13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 20 /* Id: event.c,v 1.21 2007/06/19 23:47:17 tbox Exp */ 29 #include <isc/event.h> 38 destroy(isc_event_t *event) { 39 isc_mem_put(event->ev_destroy_arg, event, event->ev_size); 46 isc_event_t *event; local 52 event = isc_mem_get(mctx, size) 78 isc_event_t *event; local [all...] |
| /src/tests/kernel/kqueue/ |
| t_oneshot.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 53 struct kevent event[1]; local 58 EV_SET(&event[0], 1, EVFILT_TIMER, EV_ADD | EV_ONESHOT, 0, 1, MY_UDATA); 60 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 61 memset(event, 0, sizeof(event)); 62 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, NULL) == 1); 63 ATF_REQUIRE(event[0].ident == 1); 64 ATF_REQUIRE(event[0].data == 1) [all...] |
| t_proc1.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 43 #include <sys/event.h> 100 struct kevent event[1]; local 116 event[0].ident = (uintptr_t)pid; 117 event[0].filter = EVFILT_PROC; 118 event[0].flags = EV_ADD | EV_ENABLE; 119 event[0].fflags = NOTE_EXIT | NOTE_FORK | NOTE_EXEC; /* | NOTE_TRACK;*/ 122 RL(kevent(kq, event, 1, NULL, 0, NULL)); 126 RL(kevent(kq, NULL, 0, event, 1, NULL)); 127 printf("%ld:", (long)event[0].ident) [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/python/ |
| py-infevents.c | 20 #include "py-event.h" 29 gdbpy_ref<> event; local 34 event = create_event_object (&inferior_call_pre_event_object_type); 37 event = create_event_object (&inferior_call_post_event_object_type); 47 if (evpy_add_attribute (event.get (), "ptid", ptid_obj.get ()) < 0) 54 if (evpy_add_attribute (event.get (), "address", addr_obj.get ()) < 0) 57 return event; 67 gdbpy_ref<> event = create_event_object (®ister_changed_event_object_type); local 68 if (event == NULL) 75 if (evpy_add_attribute (event.get (), "frame", frame_obj.get ()) < 0 94 gdbpy_ref<> event = create_event_object (&memory_changed_event_object_type); local [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isc/ |
| event.c | 1 /* $NetBSD: event.c,v 1.1 2024/02/18 20:57:49 christos Exp $ */ 20 #include <isc/event.h> 29 destroy(isc_event_t *event) { 30 isc_mem_t *mctx = event->ev_destroy_arg; 32 isc_mem_put(mctx, event, event->ev_size); 38 isc_event_t *event; local 43 event = isc_mem_get(mctx, size); 45 ISC_EVENT_INIT(event, size, 0, NULL, type, action, arg, sender, destroy, 48 return (event); 54 isc_event_t *event; local 84 isc_event_t *event; local [all...] |
| /src/tests/kernel/kqueue/read/ |
| t_file2.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 57 struct kevent event[1]; local 68 EV_SET(&event[0], fd1, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 69 RL(kevent(kq, event, 1, NULL, 0, NULL));
|
| t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local 95 EV_SET(&event[0], rfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 105 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 106 ATF_REQUIRE(event[0].ident == (uintptr_t)rfd); 107 ATF_REQUIRE(event[0].filter == EVFILT_READ); 108 ATF_REQUIRE((event[0].flags & EV_EOF) == 0) [all...] |
| t_file.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 38 #include <sys/event.h> 88 struct kevent event[1]; local 106 EV_SET(&event[0], fd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 107 RL(kevent(kq, event, 1, NULL, 0, NULL)); 110 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 114 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, 115 event[0].data); 117 if (event[0].data < 0 [all...] |
| /src/crypto/external/cpl/trousers/dist/src/include/ |
| biosem.h | 29 BYTE event[0];/* (eventSize) bytes of event data follows */ member in struct:__anon2300
|
| tcsem.h | 22 TSS_PCR_EVENT event; member in struct:event_wrapper
|
| /src/crypto/external/cpl/trousers/dist/src/tspi/ |
| tspi_pcr_events.c | 33 TSS_PCR_EVENT *event = NULL; local 41 if ((result = RPC_GetPcrEvent(tspContext, ulPcrIndex, &ulEventNumber, &event))) 44 memcpy(pPcrEvent, event, sizeof(TSS_PCR_EVENT)); 45 free(event);
|
| /src/external/gpl3/gdb/dist/gdb/python/ |
| py-infevents.c | 20 #include "py-event.h" 29 gdbpy_ref<> event; local 34 event = create_event_object (&inferior_call_pre_event_object_type); 37 event = create_event_object (&inferior_call_post_event_object_type); 47 if (evpy_add_attribute (event.get (), "ptid", ptid_obj.get ()) < 0) 54 if (evpy_add_attribute (event.get (), "address", addr_obj.get ()) < 0) 57 return event; 67 gdbpy_ref<> event = create_event_object (®ister_changed_event_object_type); local 68 if (event == NULL) 75 if (evpy_add_attribute (event.get (), "frame", frame_obj.get ()) < 0 94 gdbpy_ref<> event = create_event_object (&memory_changed_event_object_type); local [all...] |
| /src/regress/sys/kern/kqueue/vnode/ |
| vnode.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 49 struct kevent event[2]; local 75 EV_SET(&event[i], fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, 81 EV_SET(&event[i], fd, EVFILT_READ, EV_ADD | EV_ENABLE, 0, NULL, NULL); 86 n = kevent(kq, event, i, NULL, 0, NULL); 97 n = kevent(kq, NULL, 0, event, 1, &timeout); 112 event[0].filter, event[0].flags, event[0].fflags) [all...] |
| /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/ |
| notify.h | 10 struct nvkm_event *event; member in struct:nvkm_notify
|
| /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/ |
| gpio.h | 7 #include <core/event.h> 28 struct nvkm_event event; member in struct:nvkm_gpio
|
| /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/ |
| nouveau_nvkm_core_notify.c | 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 30 #include <core/event.h> 36 nvkm_event_put(notify->event, notify->types, notify->index); 42 struct nvkm_event *event = notify->event; local 44 if (likely(event) && 46 spin_lock_irqsave(&event->refs_lock, flags); 48 spin_unlock_irqrestore(&event->refs_lock, flags); 58 nvkm_event_get(notify->event, notify->types, notify->index); 64 struct nvkm_event *event = notify->event local 77 struct nvkm_event *event = notify->event; local 98 struct nvkm_event *event = notify->event; local [all...] |
| /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/sw/ |
| chan.h | 8 #include <core/event.h> 19 struct nvkm_event event; member in struct:nvkm_sw_chan
|
| /src/tests/kernel/kqueue/write/ |
| t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local 95 EV_SET(&event[0], wfd, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 100 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd); 101 ATF_REQUIRE(event[0].filter == EVFILT_WRITE); 114 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 124 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0) [all...] |
| /src/usr.sbin/tprof/arch/ |
| tprof_armv7.c | 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 42 uint16_t event; member in struct:pmu_event 54 * Common event numbers, from ARM ARM. 137 param->p_event = tbl->events[n].event; 146 errx(EXIT_FAILURE, "event '%s' unknown", name);
|
| tprof_armv8.c | 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 42 uint16_t event; member in struct:pmu_event 54 * Common event numbers, from ARMv8 ARM. 164 param->p_event = tbl->events[n].event; 173 errx(EXIT_FAILURE, "event '%s' unknown", name);
|
| /src/external/bsd/nsd/dist/dnstap/ |
| dnstap_collector.h | 15 struct event; 36 /* in the collector process, the event base */ 38 /* in the collector process, the cmd handle event */ 39 struct event* cmd_event; 52 /* the event to listen to the datagrams to process for that worker*/ 53 struct event* event; member in struct:dt_collector_input
|
| /src/external/bsd/tmux/dist/ |
| cmd-copy-mode.c | 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 60 struct key_event *event = cmdq_get_event(item); local 73 if ((wp = cmd_mouse_pane(&event->m, &s, NULL)) == NULL) 90 window_copy_start_drag(c, &event->m); 97 window_copy_scroll(wp, c->tty.mouse_slider_mpos, event->m.y,
|
| /src/external/gpl3/gdb.old/dist/gdbserver/ |
| notif.cc | 26 'write' field) each event in the queue into the buffer and send the 33 of 'struct notif_event' or its sub-class EVENT is created for FOO. 35 2. Enque EVENT to the 'queue' field of 'struct notif_server' for 36 FOO and send corresponding notification packet to GDB if EVENT is 40 3. EVENT is not deque'ed until the ack of FOO from GDB arrives. 42 EVENT is created and enque EVENT silently. 57 /* Write another event or an OK, if there are no more left, to 65 struct notif_event *event = notif->queue.front (); local 67 notif->write (event, own_buf) [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/ |
| tcpmsg.h | 38 isc_event_t event; member in struct:dns_tcpmsg 81 * Schedule an event to be delivered when a DNS message is readable, or 97 *\li The event delivered is a fully generic event. It will contain no 106 * Cancel a readmessage() call. The event will still be posted with a
|
| /src/external/gpl3/gdb.old/dist/gdb/ |
| ser-event.c | 1 /* Serial interface for a selectable event. 19 #include "ser-event.h" 28 event object. Because we want to interface with gdb_select, which 29 takes file descriptors, we need to wrap that Windows event object 31 event objects, we instead create a dummy file wrap that in a file 40 /* The Windows event object, created with CreateEvent. */ 41 HANDLE event; member in struct:serial_event_state 49 /* Open a new serial event. */ 64 internal_error ("creating serial event pipe failed."); 79 /* A manual-reset event. * [all...] |