Searched refs:events (Results 1 - 25 of 405) sorted by relevance

1234567891011>>

/openbsd-current/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_functiontestcase.py23 events = []
24 result = LoggingResult(events)
27 events.append('setUp')
31 events.append('test')
34 events.append('tearDown')
38 self.assertEqual(events, expected)
48 events = []
49 result = LoggingResult(events)
52 events.append('setUp')
55 events
[all...]
H A Dtest_skipping.py13 events = []
14 result = LoggingResult(events)
17 self.assertEqual(events, ['startTest', 'addSkip', 'stopTest'])
27 events = []
28 result = LoggingResult(events)
31 self.assertEqual(events, ['startTest', 'addSkip', 'stopTest'])
52 events = []
53 result = LoggingResult(events)
58 self.assertEqual(events, expected)
85 events
[all...]
H A Dtest_case.py34 def __init__(self, events):
36 self.events = events
39 self.events.append('setUp')
42 self.events.append('test')
45 self.events.append('tearDown')
288 events = []
289 result = LoggingResult(events)
297 Foo(events).run(result)
299 self.assertEqual(events, expecte
[all...]
/openbsd-current/sbin/isakmpd/
H A Dtimer.c41 static TAILQ_HEAD(event_list, event) events;
46 TAILQ_INIT(&events);
54 if (TAILQ_FIRST(&events)) {
56 if (timespeccmp(&now, &TAILQ_FIRST(&events)->expiration, >=))
59 timespecsub(&TAILQ_FIRST(&events)->expiration, &now,
72 for (n = TAILQ_FIRST(&events);
74 n = TAILQ_FIRST(&events)) {
78 TAILQ_REMOVE(&events, n, link);
99 for (n = TAILQ_FIRST(&events);
113 TAILQ_INSERT_TAIL(&events, e
[all...]
/openbsd-current/usr.sbin/sasyncd/
H A Dtimer.c44 * All events have a name, an expiration time and a function to be called
56 static TAILQ_HEAD (event_head, event) events;
62 TAILQ_INIT(&events);
73 struct event *e = TAILQ_FIRST(&events);
89 * routine gets called. Handle and remove all pending events.
98 for (e = TAILQ_FIRST(&events); e && timespeccmp(&now, &e->expire, >=);
99 e = TAILQ_FIRST(&events)) {
100 TAILQ_REMOVE(&events, e, next);
136 for (e = TAILQ_FIRST(&events); e; e = TAILQ_NEXT(e, next)) {
142 TAILQ_INSERT_TAIL(&events, ne
[all...]
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Drun.py7 def run(command, timeout=30, withexitstatus=False, events=None,
32 run('scp foo user@example.com:.', events={'(?i)password': mypassword})
55 events={'(?i)password':'secret\\n'})
64 events={TIMEOUT:print_ticks}, timeout=5)
66 The 'events' argument should be either a dictionary or a tuple list that
72 events=[(TIMEOUT,print_ticks)], timeout=5)
74 Use a tuple list for events if the command output requires a delicate
101 if isinstance(events, list):
102 patterns= [x for x,y in events]
103 responses = [y for x,y in events]
[all...]
/openbsd-current/regress/sys/kern/poll/
H A Dpoll_regevent.c49 pfd[0].events = POLLIN;
53 pfd[1].events = POLLOUT;
H A Dpollnval.c33 fds[0].events = POLLIN | POLLHUP;
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/
H A DInterceptResult.pm102 my $squasher = Test2::API::InterceptResult::Squasher->new(events => \@out);
169 Test2::API::InterceptResult - Representation of a list of events.
173 This class represents a list of events, normally obtained using C<intercept()>
179 This class provides methods to normalize, summarize, or map the list of events.
181 events they generate significantly easier. In most cases this spares you from
192 my $events = intercept {
205 $events->squash_info->flatten(),
255 "Flattened events look like we expect"
269 =item $events = Test2::API::InterceptResult->new(@EVENTS)
271 =item $events
[all...]
/openbsd-current/usr.sbin/ldapd/
H A Dimsgev.c48 iev->events = EV_READ;
49 event_set(&iev->ev, iev->ibuf.fd, iev->events, iev->handler, iev);
84 short events = 0; local
87 events = EV_READ;
89 events |= EV_WRITE;
92 if (events == iev->events)
95 iev->events = events;
97 event_set(&iev->ev, iev->ibuf.fd, iev->events, ie
[all...]
/openbsd-current/usr.bin/sndiod/
H A Dsiofile.h30 int pused, rused, events; member in struct:dev_sio
/openbsd-current/regress/lib/libpthread/poll/
H A Dpoll.c20 printf("{fd=%d, events=< %s%s%s> revents=< %s%s%s%s%s>}",
22 p->events & POLLIN ? "in " : "",
23 p->events & POLLOUT ? "out " : "",
24 p->events & ~(POLLIN|POLLOUT) ? "XXX " : "",
71 p[0].events = POLLIN|POLLOUT;
74 p[1].events = POLLIN|POLLOUT;
91 p[0].events = POLLIN|POLLOUT;
93 p[1].events = POLLIN|POLLOUT;
111 p[0].events = POLLIN;
113 p[1].events
[all...]
/openbsd-current/lib/libevent/
H A Dkqueue.c57 struct kevent *events; member in struct:kqop
112 kqueueop->events = calloc(NEVENT, sizeof(struct kevent));
113 if (kqueueop->events == NULL) {
120 /* we need to keep track of multiple events per signal */
151 newresult = recallocarray(kqop->events,
162 kqop->events = newresult;
188 struct kevent *events = kqop->events; local
199 events, kqop->nevents, ts_p);
215 if (events[
[all...]
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dgdb-events.sh81 /* This file was created with the aid of \`\`gdb-events.sh''.
83 The bourn shell script \`\`gdb-events.sh'' creates the files
84 \`\`new-gdb-events.c'' and \`\`new-gdb-events.h and then compares
85 them against the existing \`\`gdb-events.[hc]''. Any differences
88 If editing this file, please also run gdb-events.sh and merge any
90 to this file, modifying gdb-events.sh and using its output may
100 exec > new-gdb-events.h
112 /* COMPAT: pointer variables for old, unconverted events.
143 /* gdb-events
[all...]
/openbsd-current/gnu/usr.bin/perl/dist/IO/t/
H A Dio_poll.t36 unless $poll->events($stdout) == POLLOUT;
40 if $poll->events($dupout);
64 if $poll->events($stdout);
/openbsd-current/gnu/usr.bin/perl/dist/IO/
H A Dpoll.c64 int events = fds[i].events; local
75 if(events & POLL_CAN_READ)
78 if(events & POLL_CAN_WRITE)
81 if(events & POLL_HAS_EXCP)
111 int revents = (fds[i].events & POLL_EVENTS_MASK);
/openbsd-current/usr.sbin/radiusd/
H A Dimsg_subr.c42 fds[0].events = POLLIN;
68 fds[0].events = POLLOUT;
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/EventFacet/
H A DParent.pm29 Test2::EventFacet::Parent - Facet for events contains other events
33 This facet is used when an event contains other events, such as a subtest.
55 Arrayref containing the facet-data hashes of events nested under this one.
57 I<To get the actual events you need to get them from the parent event directly>
/openbsd-current/lib/libsndio/
H A Dmio_aucat.c38 int events; member in struct:mio_aucat_hdl
151 mio_aucat_pollfd(struct mio_hdl *sh, struct pollfd *pfd, int events) argument
155 hdl->events = events;
157 events &= ~POLLOUT;
158 return _aucat_pollfd(&hdl->aucat, pfd, events);
181 return revents & (hdl->events | POLLHUP);
/openbsd-current/gnu/llvm/lldb/source/Host/windows/
H A DMainLoopWindows.cpp37 std::vector<WSAEVENT> events; local
38 events.reserve(m_read_fds.size() + 1);
44 events.push_back(info.event);
46 events.push_back(m_trigger_event);
48 DWORD result = WSAWaitForMultipleEvents(events.size(), events.data(), FALSE,
57 if (result >= WSA_WAIT_EVENT_0 && result <= WSA_WAIT_EVENT_0 + events.size())
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/progress/
H A Dprogress.py122 """Extends AnimatedProgressBar to allow you to track a set of events that
149 self.events = {}
152 if event in self.events:
153 self.events[event] += 1
155 self.events[event] = 1
164 if len(self.events) == 0:
167 for key in list(self.events.keys()):
168 self.stdout.write(str(key) + ' = ' + str(self.events[key]) + ' ')
/openbsd-current/sys/dev/pci/drm/i915/pxp/
H A Dintel_pxp_session.c151 u32 events = 0; local
154 events = fetch_and_zero(&pxp->session_events);
157 if (!events)
160 if (events & PXP_INVAL_REQUIRED)
171 if (events & PXP_TERMINATION_REQUEST) {
172 events &= ~PXP_TERMINATION_COMPLETE;
176 if (events & PXP_TERMINATION_COMPLETE)
/openbsd-current/sys/dev/pci/drm/amd/amdkfd/
H A Dkfd_smi_events.c37 /* events enabled */
38 uint64_t events; member in struct:kfd_smi_client
129 uint64_t events; local
131 if (!access_ok(user, size) || size < sizeof(events))
133 if (copy_from_user(&events, user, sizeof(events)))
136 WRITE_ONCE(client->events, events);
138 return sizeof(events);
166 uint64_t events local
[all...]
/openbsd-current/regress/lib/libc/sys/
H A Dt_poll.c55 pfd.events = POLLIN | POLLHUP | POLLOUT;
67 pfd.events = POLLIN | POLLHUP | POLLOUT;
82 pfd.events = POLLIN | POLLHUP | POLLOUT;
168 pfds[0].events = POLLIN;
170 pfds[1].events = POLLOUT;
230 pfd.events = POLLIN;
/openbsd-current/usr.bin/sendbug/
H A Datomicio.c47 pfd.events = f == read ? POLLIN : POLLOUT;

Completed in 206 milliseconds

1234567891011>>