| /freebsd/contrib/xz/src/xz/ |
| H A D | file_io.c | 127 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 D | coder.c | 807 coder_init(file_pair *pair) in coder_init() argument 1004 tuklib_mask_nonprint(pair->src_name), in coder_init() 1021 tuklib_mask_nonprint(pair->src_name), in coder_init() 1113 coder_write_output(file_pair *pair) in coder_write_output() argument 1116 if (io_write(pair, &out_buf, IO_BUFFER_SIZE - strm.avail_out)) in coder_write_output() 1128 coder_normal(file_pair *pair) in coder_normal() argument 1135 lzma_action action = pair->src_eof ? LZMA_FINISH : LZMA_RUN; in coder_normal() 1203 strm.avail_in = io_read(pair, &in_buf, read_size); in coder_normal() 1208 if (pair->src_eof) { in coder_normal() 1220 if (action == LZMA_RUN && pair->flush_needed) in coder_normal() [all …]
|
| H A D | file_io.h | 113 extern bool io_open_dest(file_pair *pair); 123 extern void io_close(file_pair *pair, bool success); 135 extern size_t io_read(file_pair *pair, io_buf *buf, size_t size); 148 extern void io_fix_src_pos(file_pair *pair, size_t rewind_size); 161 extern bool io_seek_src(file_pair *pair, uint64_t pos); 177 extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, uint64_t pos); 188 extern bool io_write(file_pair *pair, const io_buf *buf, size_t size);
|
| /freebsd/contrib/ncurses/ncurses/base/ |
| H A D | new_pair.c | 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 116 n, n == pair ? '@' : ':', list[n].next, list[n].prev); in dumpit() [all …]
|
| H A D | lib_color.c | 491 _nc_change_pair(SCREEN *sp, int pair) in _nc_change_pair() argument 506 if (GetPair(ptr->text[x]) == pair) { in _nc_change_pair() 561 _nc_init_pair(SCREEN *sp, int pair, int f, int b) in _nc_init_pair() argument 568 T((T_CALLED("init_pair(%p,%d,%d,%d)"), (void *) sp, pair, f, b)); in _nc_init_pair() 570 if (!ValidPair(sp, pair)) in _nc_init_pair() 575 ReservePairs(sp, pair); in _nc_init_pair() 576 previous = sp->_color_pairs[pair]; in _nc_init_pair() 628 if (pair > (sp->_pair_count + default_pairs)) { in _nc_init_pair() 637 || (pair < 1)) { in _nc_init_pair() 651 _nc_change_pair(sp, pair); in _nc_init_pair() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__utility/ |
| H A D | pair.h | 60 struct _LIBCPP_TEMPLATE_VIS pair struct 73 pair, argument 76 _LIBCPP_HIDE_FROM_ABI pair(pair const&) = default; 77 _LIBCPP_HIDE_FROM_ABI pair(pair&&) = default; 89 _LIBCPP_HIDE_FROM_ABI pair& operator=(const pair&) argument 92 _LIBCPP_HIDE_FROM_ABI pair& operator=(pair&&) argument 103 _LIBCPP_HIDE_FROM_ABI pair() : first(), second() {} in pair() argument 105 _LIBCPP_HIDE_FROM_ABI pair(_T1 const& __t1, _T2 const& __t2) : first(__t1), second(__t2) {} in pair() function 108 _LIBCPP_HIDE_FROM_ABI pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() function 110 _LIBCPP_HIDE_FROM_ABI pair& operator=(pair const& __p) { [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | utility | 74 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/llvm-project/libcxx/include/__utility/ |
| H A D | pair.h | 90 struct pair struct 103 pair, argument 105 … _LIBCPP_NODEBUG = __conditional_t<__is_replaceable_v<_T1> && __is_replaceable_v<_T2>, pair, void>; argument 107 _LIBCPP_HIDE_FROM_ABI pair(pair const&) = default; 108 _LIBCPP_HIDE_FROM_ABI pair(pair&&) = default; 111 _LIBCPP_HIDE_FROM_ABI pair() : first(), second() {} in pair() argument 113 _LIBCPP_HIDE_FROM_ABI pair(_T1 const& __t1, _T2 const& __t2) : first(__t1), second(__t2) {} in pair() function 116 _LIBCPP_HIDE_FROM_ABI pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() argument 118 _LIBCPP_HIDE_FROM_ABI pair& operator=(pair const& __p) { 132 _LIBCPP_HIDE_FROM_ABI pair& operator=(pair<_U1, _U2> const& __p) { [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | utility | 74 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/sys/contrib/openzfs/module/zfs/ |
| H A D | dsl_userhold.c | 100 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/lib9p/pytest/ |
| H A D | numalloc.py | 176 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] 234 assert pair[0] <= val <= pair[1] 235 if pair[0] == val: [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | SelectHelper.cpp | 108 for (auto &pair : m_fd_map) { in Select() local 109 pair.second.PrepareForSelect(); in Select() 110 const lldb::socket_t fd = pair.first; in Select() 119 if (pair.second.read_set) in Select() 121 if (pair.second.write_set) in Select() 123 if (pair.second.error_set) in Select() 179 for (auto &pair : m_fd_map) { in Select() local 180 lldb::socket_t fd = pair.first; in Select() 182 if (pair.second.read_set) in Select() 185 if (pair.second.write_set) in Select() [all …]
|
| /freebsd/krb5/lib/gssapi/ |
| H A D | errmap.h | 175 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/contrib/llvm-project/libcxx/include/__fwd/ |
| H A D | pair.h | 23 struct pair; 29 inline const bool __is_pair_v<pair<_Type1, _Type2> > = true; 32 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t… 33 get(pair<_T1, _T2>&) _NOEXCEPT; 36 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2… 37 get(const pair<_T1, _T2>&) _NOEXCEPT; 41 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t… 42 get(pair<_T1, _T2>&&) _NOEXCEPT; 45 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2… 46 get(const pair<_T1, _T2>&&) _NOEXCEPT;
|
| /freebsd/crypto/krb5/src/util/ |
| H A D | t_bimap.pm | 96 struct <NAME>__pair *pair; 98 if ((*fn)(pair->l, pair->r, p) != 0) 113 struct <NAME>__pair *pair; 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; 142 if ((*<LEFTCMP>)(l, pair->l) == 0) 143 return &pair->r; [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUSubtarget.h | 91 std::pair<unsigned, unsigned> getDefaultFlatWorkGroupSize(CallingConv::ID CC) const; 100 std::pair<unsigned, unsigned> getFlatWorkGroupSizes(const Function &F) const; 111 std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const; 116 std::pair<unsigned, unsigned> 118 std::pair<unsigned, unsigned> FlatWorkGroupSizes) const; 124 std::pair<unsigned, unsigned> 125 getWavesPerEU(std::pair<unsigned, unsigned> FlatWorkGroupSizes, 132 std::pair<unsigned, unsigned> 133 getEffectiveWavesPerEU(std::pair<unsigned, unsigned> RequestedWavesPerEU, 134 std::pair<unsigned, unsigned> FlatWorkGroupSizes, [all …]
|
| H A D | AMDGPUSubtarget.cpp | 58 std::pair<unsigned, unsigned> AMDGPUSubtarget::getOccupancyWithWorkGroupSizes( in getOccupancyWithWorkGroupSizes() 59 uint32_t LDSBytes, std::pair<unsigned, unsigned> FlatWorkGroupSizes) const { in getOccupancyWithWorkGroupSizes() 138 std::pair<unsigned, unsigned> AMDGPUSubtarget::getOccupancyWithWorkGroupSizes( in getOccupancyWithWorkGroupSizes() 144 std::pair<unsigned, unsigned> 153 return std::pair(1, getWavefrontSize()); in getDefaultFlatWorkGroupSize() 155 return std::pair(1u, getMaxFlatWorkGroupSize()); in getDefaultFlatWorkGroupSize() 159 std::pair<unsigned, unsigned> AMDGPUSubtarget::getFlatWorkGroupSizes( in getFlatWorkGroupSizes() 162 std::pair<unsigned, unsigned> Default = in getFlatWorkGroupSizes() 166 std::pair<unsigned, unsigned> Requested = AMDGPU::getIntegerPairAttribute( in getFlatWorkGroupSizes() 182 std::pair<unsigned, unsigned> AMDGPUSubtarget::getEffectiveWavesPerEU( in getEffectiveWavesPerEU() [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_et.c | 83 evutil_socket_t *pair = data->pair; in test_edgetriggered() local 97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered() 98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered() 106 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered() 153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error() 155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error() 212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events() local 225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events() 227 read_ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events() 229 write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events() [all …]
|
| /freebsd/contrib/libevent/test/ |
| H A D | regress_et.c | 83 evutil_socket_t *pair = data->pair; in test_edgetriggered() local 97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered() 98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered() 106 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered() 153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error() 155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error() 212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events() local 225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events() 227 read_ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events() 229 write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events() [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | BIO_s_dgram_pair.pod | 8 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 …]
|
| /freebsd/tests/sys/cddl/zfs/tests/rsend/ |
| H A D | rsend_011_pos.ksh | 107 set -A pair "$POOL" "$dstds" \ 116 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol" 117 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol" 126 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]} 127 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
|
| H A D | rsend_008_pos.ksh | 105 set -A pair "$POOL" "$dstds" \ 114 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol" 115 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol" 124 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]} 125 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | rsend_008_pos.ksh | 100 set -A pair "$POOL" "$dstds" \ 109 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol" 110 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol" 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/llvm/include/llvm/Testing/Demangle/ |
| H A D | DemangleTestCases.inc | 176 …aderS2_ESaIS3_EED2Ev", "std::_Vector_base<std::pair<ImageLoader*, ImageLoader*>, std::allocator<st… 177 …mageLoaderS2_ESaIS3_EED2Ev", "std::vector<std::pair<ImageLoader*, ImageLoader*>, std::allocator<st… 180 …t4pairIP11ImageLoaderS3_EE8allocateEmPKv", "__gnu_cxx::new_allocator<std::pair<ImageLoader*, Image… 181 …pair<ImageLoader*, ImageLoader*>, std::allocator<std::pair<ImageLoader*, ImageLoader*>>>::_M_inser… 182 …_", "std::vector<std::pair<ImageLoader*, ImageLoader*>, std::allocator<std::pair<ImageLoader*, Ima… 622 … llvm::DenseMapInfo<unsigned int>, llvm::DenseMapInfo<char>>::insert(std::pair<unsigned int, char>… 623 …seMapInfo<char>>::InsertIntoBucket(unsigned int const&, char const&, std::pair<unsigned int, char>… 662 …rISt4pairISsSsESaIS1_EED2Ev", "std::vector<std::pair<std::string, std::string>, std::allocator<std… 740 …pair<clang::QualType const, unsigned int>, std::_Select1st<std::pair<clang::QualType const, unsign… 774 …RefCntPtr<clang::Diagnostic>, clang::FileSystemOptions const&, bool, std::pair<std::string, llvm::… [all …]
|
| /freebsd/contrib/libfido2/src/ |
| H A D | cbor.c | 230 struct cbor_pair pair; in cbor_add_bytestring() local 233 memset(&pair, 0, sizeof(pair)); in cbor_add_bytestring() 235 if ((pair.key = cbor_build_string(key)) == NULL || in cbor_add_bytestring() 236 (pair.value = cbor_build_bytestring(value, value_len)) == NULL) { in cbor_add_bytestring() 241 if (!cbor_map_add(item, pair)) { in cbor_add_bytestring() 248 if (pair.key) in cbor_add_bytestring() 249 cbor_decref(&pair.key); in cbor_add_bytestring() 250 if (pair.value) in cbor_add_bytestring() 251 cbor_decref(&pair.value); in cbor_add_bytestring() 259 struct cbor_pair pair; in cbor_add_string() local [all …]
|