Home
last modified time | relevance | path

Searched full:pair (Results 1 – 25 of 2514) sorted by relevance

12345678910>>...101

/freebsd/contrib/ncurses/ncurses/base/
H A Dnew_pair.c36 * New color-pair functions, alloc_pair and free_pair
71 prev_len(SCREEN *sp, int pair) in prev_len() argument
74 int base = pair; in prev_len()
76 while (list[pair].prev != base) { in prev_len()
78 pair = list[pair].prev; in prev_len()
84 next_len(SCREEN *sp, int pair) in next_len() argument
87 int base = pair; in next_len()
89 while (list[pair].next != base) { in next_len()
91 pair = list[pair].next; in next_len()
100 dumpit(SCREEN *sp, int pair, const char *tag) in dumpit() argument
[all …]
H A Dlib_color.c304 * Reset the color pair, e.g., to whatever color pair 0 is.
394 * allow for default-color as a component of a color-pair. in NCURSES_SP_NAME()
486 * Change all cells which use(d) a given color pair to force a repaint.
489 _nc_change_pair(SCREEN *sp, int pair) in _nc_change_pair() argument
504 if (GetPair(ptr->text[x]) == pair) { in _nc_change_pair()
559 _nc_init_pair(SCREEN *sp, int pair, int f, int b) in _nc_init_pair() argument
566 T((T_CALLED("init_pair(%p,%d,%d,%d)"), (void *) sp, pair, f, b)); in _nc_init_pair()
568 if (!ValidPair(sp, pair)) in _nc_init_pair()
573 ReservePairs(sp, pair); in _nc_init_pair()
574 previous = sp->_color_pairs[pair]; in _nc_init_pair()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dutility74 struct pair
82 pair(const pair&) = default;
83 pair(pair&&) = default;
84 explicit(see-below) constexpr pair();
85 … explicit(see-below) pair(const T1& x, const T2& y); // constexpr in C++14
86 … template <class U = T1, class V = T2> explicit(see-below) pair(U&&, V&&); // constexpr in C++14
87 template <class U, class V> constexpr explicit(see-below) pair(pair<U, V>&); // since C++23
88 … template <class U, class V> explicit(see-below) pair(const pair<U, V>& p); // constexpr in C++14
89 … template <class U, class V> explicit(see-below) pair(pair<U, V>&& p); // constexpr in C++14
91 constexpr explicit(see-below) pair(const pair<U, V>&&); // since C++23
[all …]
/freebsd/contrib/xz/src/xz/
H A Dfile_io.c127 static bool io_write_buf(file_pair *pair, const uint8_t *buf, size_t size);
206 io_wait(file_pair *pair, int timeout, bool is_reading) in io_wait() argument
211 pfd[0].fd = pair->src_fd; in io_wait()
214 pfd[0].fd = pair->dest_fd; in io_wait()
233 ? pair->src_name in io_wait()
234 : pair->dest_name), in io_wait()
319 io_copy_attrs(const file_pair *pair) in io_copy_attrs() argument
331 if (fchown(pair->dest_fd, pair->src_st.st_uid, (gid_t)(-1)) in io_copy_attrs()
334 tuklib_mask_nonprint(pair->dest_name), in io_copy_attrs()
344 if (pair->dest_st.st_gid != pair->src_st.st_gid in io_copy_attrs()
[all …]
H A Dfile_io.h113 extern bool io_open_dest(file_pair *pair);
123 extern void io_close(file_pair *pair, bool success);
128 /// \param pair File pair having the source file open for reading
133 /// file zero is returned and pair->src_eof set to true.
135 extern size_t io_read(file_pair *pair, io_buf *buf, size_t size);
145 /// \param pair File pair having the source file open for reading
148 extern void io_fix_src_pos(file_pair *pair, size_t rewind_size);
153 /// This calls lseek() and also clears pair->src_eof.
155 /// \param pair Seekable source file
161 extern bool io_seek_src(file_pair *pair, uint64_t pos);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dpair.h17 #include <__fwd/pair.h>
65 struct _LIBCPP_TEMPLATE_VIS pair struct
78 pair, argument
81 _LIBCPP_HIDE_FROM_ABI pair(pair const&) = default;
82 _LIBCPP_HIDE_FROM_ABI pair(pair&&) = default;
84 …// When we are requested for pair to be trivially copyable by the ABI macro, we use defaulted memb…
89 // when printing a pair
94 _LIBCPP_HIDE_FROM_ABI constexpr pair& operator=(const pair&) argument
98 _LIBCPP_HIDE_FROM_ABI constexpr pair& operator=(pair&&) argument
102 _LIBCPP_HIDE_FROM_ABI pair& operator=(const pair&) argument
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_dgram_pair.pod8 BIO_dgram_set0_local_addr - datagram pair BIO
29 BIO_s_dgram_pair() returns the method for a BIO datagram pair. A BIO datagram
30 pair is similar to a BIO pair (see L<BIO_s_bio(3)>) but has datagram semantics.
36 The BIO datagram pair attaches certain metadata to each write, such as source
39 A typical application of a BIO datagram pair is to allow an application to keep
42 The BIO datagram pair is designed to support multithreaded use where certain
45 The BIO datagram pair allows each half of a pair to signal to the other half
50 pair of BIOs B<bio1>, B<bio2> with write buffer sizes B<writebuf1> and
53 L<BIO_make_bio_pair(3)> may be used to join two datagram pair BIOs into a pair.
55 of the BIOs may currently be associated in a pair.
[all …]
H A DBIO_s_bio.pod8 BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO
33 BIO_s_bio() returns the method for a BIO pair. A BIO pair is a pair of source/sink
34 BIOs where data written to either half of the pair is buffered and can be read from
39 one half of a BIO pair and have all the data processed by the chain under application
57 BIO_make_bio_pair() joins two separate BIOs into a connected pair.
60 up any half of the pair will automatically destroy the association.
64 half of the pair will return any pending data or EOF when all pending data has
74 BIO_set_write_buf_size() to create a connected pair of BIOs B<bio1>, B<bio2>
88 last read attempt at the other half of the BIO pair failed due to an
103 Both halves of a BIO pair should be freed. That is even if one half is implicit
[all …]
/freebsd/secure/lib/libcrypto/man/man3/
H A DBIO_s_dgram_pair.367 BIO_dgram_set0_local_addr \- datagram pair BIO
88 \&\fBBIO_s_dgram_pair()\fR returns the method for a BIO datagram pair. A BIO datagram
89 pair is similar to a BIO pair (see \fBBIO_s_bio\fR\|(3)) but has datagram semantics.
95 The BIO datagram pair attaches certain metadata to each write, such as source
98 A typical application of a BIO datagram pair is to allow an application to keep
101 The BIO datagram pair is designed to support multithreaded use where certain
104 The BIO datagram pair allows each half of a pair to signal to the other half
109 pair of BIOs \fBbio1\fR, \fBbio2\fR with write buffer sizes \fBwritebuf1\fR and
112 \&\fBBIO_make_bio_pair\fR\|(3) may be used to join two datagram pair BIOs into a pair.
114 of the BIOs may currently be associated in a pair.
[all …]
H A DBIO_s_bio.367 BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request \- BIO pair BIO
92 \&\fBBIO_s_bio()\fR returns the method for a BIO pair. A BIO pair is a pair of source/sink
93 BIOs where data written to either half of the pair is buffered and can be read from
98 one half of a BIO pair and have all the data processed by the chain under application
116 \&\fBBIO_make_bio_pair()\fR joins two separate BIOs into a connected pair.
119 up any half of the pair will automatically destroy the association.
123 half of the pair will return any pending data or EOF when all pending data has
133 \&\fBBIO_set_write_buf_size()\fR to create a connected pair of BIOs \fBbio1\fR, \fBbio2\fR
147 last read attempt at the other half of the BIO pair failed due to an
161 Both halves of a BIO pair should be freed. That is even if one half is implicit
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_userhold.c100 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_holds, NULL); in dsl_dataset_user_hold_check() local
101 pair != NULL; pair = nvlist_next_nvpair(dduha->dduha_holds, pair)) { in dsl_dataset_user_hold_check()
102 size_t len = strlen(nvpair_name(pair)) + in dsl_dataset_user_hold_check()
103 strlen(fnvpair_value_string(pair)); in dsl_dataset_user_hold_check()
105 (void) strlcpy(nameval, nvpair_name(pair), len + 2); in dsl_dataset_user_hold_check()
107 (void) strlcat(nameval, fnvpair_value_string(pair), len + 2); in dsl_dataset_user_hold_check()
115 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_holds, NULL); in dsl_dataset_user_hold_check() local
116 pair != NULL; pair = nvlist_next_nvpair(dduha->dduha_holds, pair)) { in dsl_dataset_user_hold_check()
122 name = nvpair_name(pair); in dsl_dataset_user_hold_check()
127 error = nvpair_value_string(pair, &htag); in dsl_dataset_user_hold_check()
[all …]
/freebsd/contrib/ncurses/man/
H A Dcurs_color.3x87 \fBint init_pair(short \fIpair\fP, short \fIf\fP, short \fIb\fP);
90 \fBint init_extended_pair(int \fIpair\fP, int \fIf\fP, int \fIb\fP);
94 \fBint pair_content(short \fIpair\fP, short *\fIf\fP, short *\fIb\fP);
97 \fBint extended_pair_content(int \fIpair\fP, int *\fIf\fP, int *\fIb\fP);
114 .I "color pair"
117 \fB\%init_pair\fP initializes a color pair.
118 The macro \fB\%COLOR_PAIR\fP(\fIn\fP) can then convert the pair to a
131 \fB\%pair_content\fP permits discovery of a color pair's current
149 parameter containing attributes including a color pair value.
152 use a separate color pair number parameter.
[all …]
H A Dnew_pair.3x60 \fBint free_pair(int \fIpair\fP);
64 They permit an application to dynamically allocate a color pair using
65 the foreground/background colors rather than assign a fixed color pair number,
66 and return an unused pair to the pool.
75 That is, the foreground and background colors are applied as a pair.
118 checks if that color combination is already associated with a color pair.
121 \fBalloc_pair\fP returns the existing pair.
124 \fBalloc_pair\fP allocates a new color pair and returns that.
127 allocated entry using \fBfree_pair\fP and allocates a new color pair.
138 checks if that color combination is already associated with a color pair,
[all …]
H A Dcurs_attr.3x80 \fBint attr_get(attr_t *\fIattrs\fP, short *\fIpair\fP, void *\fIopts\fP);
81 \fBint wattr_get(WINDOW *\fIwin\fP, attr_t *\fIattrs\fP, short *\fIpair\fP,\fR \fPvoid *\fIopts\fP);
82 \fBint attr_set(attr_t \fIattrs\fP, short \fIpair\fP, void *\fIopts\fP);
83 \fBint wattr_set(WINDOW *\fIwin\fP, attr_t \fIattrs\fP, short \fIpair\fP, void *\fIopts\fP);
97 \fBint chgat(int \fIn\fP, attr_t \fIattr\fP, short \fIpair\fP,\fR \fPconst void *\fIopts\fP);
99 \fBint \fIn\fB, attr_t \fIattr\fB,\fR \fBshort \fIpair\fB, const void *\fIopts\fB);\fR
101 \fBint \fIn\fB, attr_t \fIattr\fB, short \fIpair\fB, const void *\fIopts\fB);\fR
103 \fBint \fIn\fB, attr_t \fIattr\fB, short \fIpair\fB, const void *\fIopts\fB);\fR
105 \fBint color_set(short \fIpair\fB, void* \fIopts\fB);\fR
106 \fBint wcolor_set(WINDOW *\fIwin\fB, short \fIpair\fB,\fR \fBvoid* \fIopts\fP);\fR
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py176 pair = self.avail[mid]
177 if val < pair[0]:
180 elif val > pair[1]:
185 return mid, pair
209 i, pair = self._find_block(val)
210 if pair is None:
224 pair = self.avail[i]
225 val = pair[0]
230 # 1. pair[0] < val < pair[1]: split the pair.
231 # 2. pair[0] == val < pair[1]: increase pair[0].
[all …]
/freebsd/crypto/krb5/src/util/
H A Dt_bimap.pm96 struct <NAME>__pair *pair;
97 pair = <NAME>__pairarray_getaddr (&m->a, i);
98 if ((*fn)(pair->l, pair->r, p) != 0)
113 struct <NAME>__pair *pair;
114 pair = <NAME>__pairarray_getaddr (&m->a, i);
115 assert ((*<LEFTCMP>)(l, pair->l) != 0);
116 if ((*<LEFTCMP>)(l, pair->l) == 0)
118 assert ((*<RIGHTCMP>)(r, pair->r) != 0);
119 if ((*<RIGHTCMP>)(r, pair->r) == 0)
140 struct <NAME>__pair *pair;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DMapVector.h35 typename VectorType = SmallVector<std::pair<KeyT, ValueT>, 0>>
83 std::pair<KeyT, ValueT> &front() { return Vector.front(); } in front()
84 const std::pair<KeyT, ValueT> &front() const { return Vector.front(); } in front()
85 std::pair<KeyT, ValueT> &back() { return Vector.back(); } in back()
86 const std::pair<KeyT, ValueT> &back() const { return Vector.back(); } in back()
99 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(Key, 0); variable
100 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair);
118 std::pair<iterato in insert() local
131 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(KV.first, 0); insert() local
[all...]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DSelectHelper.cpp107 for (auto &pair : m_fd_map) { in Select() local
108 pair.second.PrepareForSelect(); in Select()
109 const lldb::socket_t fd = pair.first; in Select()
117 if (pair.second.read_set) in Select()
119 if (pair.second.write_set) in Select()
121 if (pair.second.error_set) in Select()
178 for (auto &pair : m_fd_map) { in Select() local
179 const lldb::socket_t fd = pair.first; in Select()
181 if (pair.second.read_set) in Select()
184 if (pair.second.write_set) in Select()
[all …]
/freebsd/krb5/lib/gssapi/
H A Derrmap.h175 struct mecherrmap__pair *pair; in mecherrmap_foreach() local
176 pair = mecherrmap__pairarray_getaddr (&m->a, i); in mecherrmap_foreach()
177 if ((*fn)(pair->l, pair->r, p) != 0) in mecherrmap_foreach()
192 struct mecherrmap__pair *pair; in mecherrmap_add() local
193 pair = mecherrmap__pairarray_getaddr (&m->a, i); in mecherrmap_add()
194 assert ((*cmp_OM_uint32)(l, pair->l) != 0); in mecherrmap_add()
195 if ((*cmp_OM_uint32)(l, pair->l) == 0) in mecherrmap_add()
197 assert ((*mecherror_cmp)(r, pair->r) != 0); in mecherrmap_add()
198 if ((*mecherror_cmp)(r, pair->r) == 0) in mecherrmap_add()
219 struct mecherrmap__pair *pair; in mecherrmap_findleft() local
[all …]
/freebsd/lib/libc/aarch64/string/
H A Dtimingsafe_memcmp.S71 cmp x3, x4 // mismatch in first pair?
72 csel x3, x3, x5, ne // use second pair if first pair equal
84 cmp x3, x5 // mismatch in first pair?
85 csel x3, x3, x4, ne // use second pair if first pair equal
92 cmp x4, x6 // mismatch in first pair?
93 csel x4, x4, x7, ne // if not, try second pair
96 csel x3, x3, x4, ne // apply new pair if there was not
105 cmp x4, x6 // mismatch in first pair?
106 csel x4, x4, x7, ne // if not, try second pair
109 csel x3, x3, x4, ne // apply new pair if there was not
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DBlotMapVector.h28 using VectorTy = std::vector<std::pair<KeyT, ValueT>>;
56 std::pair<typename MapTy::iterator, bool> Pair = variable
58 if (Pair.second) {
60 Pair.first->second = Num;
64 return Vector[Pair.first->second].second;
67 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &InsertPair) { in insert()
68 std::pair<typename MapTy::iterator, bool> Pair = in insert() local
70 if (Pair.second) { in insert()
72 Pair.first->second = Num; in insert()
76 return std::make_pair(Vector.begin() + Pair.first->second, false); in insert()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Drsend_008_pos.ksh98 # Define all the POOL/POOL2 datasets pair
100 set -A pair "$POOL" "$dstds" \
108 typeset -i n=${#pair[@]}
109 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
110 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
118 while ((i < ${#pair[@]})); do
119 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
120 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dpair.h23 struct _LIBCPP_TEMPLATE_VIS pair; variable
26 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t…
27 get(pair<_T1, _T2>&) _NOEXCEPT;
30 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2…
31 get(const pair<_T1, _T2>&) _NOEXCEPT;
35 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t…
36 get(pair<_T1, _T2>&&) _NOEXCEPT;
39 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2…
40 get(const pair<_T1, _T2>&&) _NOEXCEPT;
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_011_pos.ksh105 # Define all the POOL/POOL2 datasets pair
107 set -A pair "$POOL" "$dstds" \
115 typeset -i n=${#pair[@]}
116 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
117 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
125 while ((i < ${#pair[@]})); do
126 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
127 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
H A Drsend_008_pos.ksh103 # Define all the POOL/POOL2 datasets pair
105 set -A pair "$POOL" "$dstds" \
113 typeset -i n=${#pair[@]}
114 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
115 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
123 while ((i < ${#pair[@]})); do
124 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
125 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}

12345678910>>...101