Searched defs:pair (Results 1 - 25 of 83) sorted by relevance

1234

/freebsd-head/contrib/ncurses/ncurses/base/
H A Dlib_slkattr.c51 int pair = GetPair(SP_PARM->_slk->attr); local
53 result |= (attr_t) ColorPair(pair);
H A Dlib_instr.c68 NCURSES_PAIRS_T pair; local
81 if (getcchar(cell, wch, &attrs, &pair, 0) == OK) {
H A Dlib_bkgd.c63 int pair; local
65 if ((pair = GetPair(win->_nc_bkgd)) != 0)
67 if ((pair = GetPair(CHDEREF(ch))) != 0)
68 SET_WINDOW_PAIR(win, pair);
162 T(("... old background char %s, attr %s, pair %d",
177 T(("... new background char %s, attr %s, pair %d",
182 /* SVr4 updates color pair if old/new match, otherwise just attrs */
/freebsd-head/contrib/ntp/sntp/libevent/test/
H A Dtest-closed.c85 evutil_socket_t pair[2]; local
99 /* Create a pair of sockets */
100 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
104 if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
106 shutdown(pair[0], SHUT_WR);
109 ev = event_new(base, pair[1], EV_CLOSED | EV_TIMEOUT, closed_cb, event_self_cbarg());
H A Dtest-weof.c58 evutil_socket_t pair[2]; variable
76 evutil_closesocket(pair[0]);
102 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
109 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev);
H A Dtest-eof.c93 evutil_socket_t pair[2]; local
104 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
108 if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
110 shutdown(pair[0], SHUT_WR);
116 event_set(&ev, pair[1], EV_READ | EV_TIMEOUT, read_cb, &ev);
H A Dregress_et.c86 evutil_socket_t pair[2] = {-1,-1}; local
96 if (evutil_ersatz_socketpair_(AF_INET, SOCK_STREAM, 0, pair) == -1) {
100 if (evutil_socketpair(LOCAL_SOCKETPAIR_AF, SOCK_STREAM, 0, pair) == -1) {
107 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0);
108 shutdown(pair[0], SHUT_WR);
125 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev);
130 * will read a single byte from pair[1] in either case. If we're edge
154 evutil_closesocket(pair[0]);
155 evutil_closesocket(pair[1]);
176 ev_et = event_new(base, data->pair[
[all...]
H A Dregress.h64 extern evutil_socket_t pair[2];
74 evutil_socket_t pair[2]; member in struct:basic_test_data
H A Dtest-changelist.c168 evutil_socket_t pair[2]; local
182 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
192 ev = event_new(base,pair[1],EV_WRITE | EV_PERSIST, write_cb, &ev);
/freebsd-head/sbin/dhclient/
H A Dtree.h46 /* A pair of pointers, suitable for making a linked list. */
50 } *pair; typedef in typeref:struct:_pair
/freebsd-head/contrib/libevent/test/
H A Dtest-closed.c78 evutil_socket_t pair[2]; local
92 /* Create a pair of sockets */
93 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
97 if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
99 shutdown(pair[0], EVUTIL_SHUT_WR);
102 ev = event_new(base, pair[1], EV_CLOSED | EV_TIMEOUT, closed_cb, event_self_cbarg());
H A Dtest-weof.c55 evutil_socket_t pair[2]; variable
73 evutil_closesocket(pair[0]);
99 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
106 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev);
H A Dtest-eof.c86 evutil_socket_t pair[2]; local
97 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
101 if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
103 shutdown(pair[0], EVUTIL_SHUT_WR);
109 event_set(&ev, pair[1], EV_READ | EV_TIMEOUT, read_cb, &ev);
H A Dregress.h64 extern evutil_socket_t pair[2];
74 evutil_socket_t pair[2]; member in struct:basic_test_data
H A Dregress_et.c82 evutil_socket_t pair[2] = {-1,-1}; local
92 if (evutil_ersatz_socketpair_(AF_INET, SOCK_STREAM, 0, pair) == -1) {
96 if (evutil_socketpair(LOCAL_SOCKETPAIR_AF, SOCK_STREAM, 0, pair) == -1) {
103 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0);
104 shutdown(pair[0], EVUTIL_SHUT_WR);
121 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev);
126 * will read a single byte from pair[1] in either case. If we're edge
150 evutil_closesocket(pair[0]);
151 evutil_closesocket(pair[1]);
172 ev_et = event_new(base, data->pair[
[all...]
/freebsd-head/contrib/llvm-project/lldb/include/lldb/Target/
H A DPathMappingList.h111 typedef std::pair<ConstString, ConstString> pair; typedef in class:lldb_private::PathMappingList
112 typedef std::vector<pair> collection;
/freebsd-head/contrib/ncurses/ncurses/trace/
H A Dlib_tracedmp.c140 int pair = GetPair(win->_line[n].text[j]); local
141 if (pair >= 52)
143 else if (pair >= 36)
144 ep[j] = (char) (pair + 'A');
145 else if (pair >= 10)
146 ep[j] = (char) (pair + 'a');
147 else if (pair >= 1)
148 ep[j] = (char) (pair + '0');
/freebsd-head/cddl/contrib/opensolaris/lib/libzfs_core/common/
H A Dlibzfs_core_compat.c36 nvpair_t *pair, *hpair; local
65 pair = nvlist_next_nvpair(nvl, NULL);
66 if (pair != NULL) {
67 buf = nvpair_name(pair);
74 if (!error && nvlist_next_nvpair(nvl, pair) != NULL)
87 pair = nvlist_next_nvpair(nvl, NULL);
88 if (pair != NULL) {
89 buf = nvpair_name(pair);
95 if (!error && nvlist_next_nvpair(nvl, pair) != NULL)
101 pair
[all...]
/freebsd-head/usr.sbin/ctld/
H A Dkeys.c67 char *pair; local
86 pair = keys->keys_data;
91 pair_len = strlen(pair);
93 keys->keys_values[i] = pair;
100 pair += pair_len + 1; /* +1 to skip the terminating '\0'. */
101 if (pair == keys->keys_data + keys->keys_data_len)
103 assert(pair < keys->keys_data + keys->keys_data_len);
/freebsd-head/usr.sbin/iscsid/
H A Dkeys.c67 char *pair; local
86 pair = keys->keys_data;
91 pair_len = strlen(pair);
93 keys->keys_values[i] = pair;
100 pair += pair_len + 1; /* +1 to skip the terminating '\0'. */
101 if (pair == keys->keys_data + keys->keys_data_len)
103 assert(pair < keys->keys_data + keys->keys_data_len);
/freebsd-head/sys/dev/nvram2env/
H A Dnvram2env.c169 char *pair, *value, *assign; local
221 pair = (char*)nv+4;
223 pair = (char*)nv+4;
225 pair = (char*)nv+20;
227 pair = (char*)nv+4;
230 for ( ; pair < (char*)tmp;
231 pair += strlen(pair) + strlen(value) + 2 ) {
233 if (!pair || (strlen(pair)
[all...]
/freebsd-head/contrib/ncurses/ncurses/tty/
H A Dlib_vidattr.c96 TR(TRACE_ATTRS, ("old pair = %d -- new pair = %d", old_pair, pair)); \
97 if ((pair != old_pair) \
98 || (fix_pair0 && (pair == 0)) \
102 (short) pair, \
115 int pair; local
221 pair = PairNumber(newmode);
230 SetColorsIf(((pair == 0) && !fix_pair0), PreviousAttr);
256 SetColorsIf((pair !
[all...]
/freebsd-head/crypto/openssh/
H A Dssh-pkcs11-client.c175 int pair[2]; local
177 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) {
185 if ((dup2(pair[1], STDIN_FILENO) == -1) ||
186 (dup2(pair[1], STDOUT_FILENO) == -1)) {
190 close(pair[0]);
191 close(pair[1]);
198 close(pair[1]);
199 fd = pair[0];
/freebsd-head/contrib/ncurses/ncurses/widechar/
H A Dlib_add_wch.c58 /* Return bit mask for clearing color pair number if given ch has color */
66 int pair = GetPair(ch); local
70 && pair == 0) {
71 /* color/pair in attrs has precedence over bkgrnd */
74 if ((pair = GET_WINDOW_PAIR(win)) == 0)
75 pair = GetPair(win->_nc_bkgd);
76 SetPair(ch, pair);
81 if (pair == 0) {
82 if ((pair = GET_WINDOW_PAIR(win)) == 0)
83 pair
[all...]
/freebsd-head/contrib/ntp/sntp/libevent/
H A Dbufferevent_pair.c116 struct bufferevent *pair[2])
146 pair[0] = downcast(bufev1);
147 pair[1] = downcast(bufev2);
295 * Where bev1 == pair[0], bev2 == pair[1].
115 bufferevent_pair_new(struct event_base *base, int options, struct bufferevent *pair[2]) argument

Completed in 121 milliseconds

1234