| /openbsd-src/lib/libcurses/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 …]
|
| /openbsd-src/gnu/llvm/libcxx/include/__utility/ |
| H A D | pair.h | 63 struct _LIBCPP_TEMPLATE_VIS pair struct 74 pair(pair const&) = default; argument 75 pair(pair&&) = default; 79 pair() : first(), second() {} in pair() argument 82 pair(_T1 const& __t1, _T2 const& __t2) : first(__t1), second(__t2) {} in pair() function 86 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() argument 89 pair& operator=(pair const& __p) { 139 return __tuple_convertible<_Tuple, pair>::value; in __enable_implicit() argument 144 return __tuple_constructible<_Tuple, pair>::value in __enable_explicit() 145 && !__tuple_convertible<_Tuple, pair>::value; in __enable_explicit() [all …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| H A D | stl_pair.h | 69 struct pair { struct 79 pair() : first(), second() {} in pair() argument 81 pair() : first(_T1()), second(_T2()) {} in pair() argument 84 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair() function 88 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() function 93 inline bool operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 100 inline bool operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 108 inline bool operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { 114 inline bool operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { 120 inline bool operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/20_util/ |
| H A D | pairs.cc | 51 std::pair<bool, long> p_bl_1(true, 433); in test01() 52 std::pair<bool, long> p_bl_2 = std::make_pair(true, 433); in test01() 56 std::pair<const char*, float> p_sf_1("total enlightenment", 433.00); in test01() 57 std::pair<const char*, float> p_sf_2 = std::make_pair("total enlightenment", in test01() 62 std::pair<const char*, gnu_obj> p_sg_1("enlightenment", gnu_obj(5)); in test01() 63 std::pair<const char*, gnu_obj> p_sg_2 = std::make_pair("enlightenment", in test01() 68 std::pair<gnu_t<long>, gnu_obj> p_st_1(gnu_t<long>(false), gnu_obj(5)); in test01() 69 std::pair<gnu_t<long>, gnu_obj> p_st_2 = std::make_pair(gnu_t<long>(false), in test01() 80 std::pair<bool, bool> p_bb_1(true, false); in test02() 81 std::pair<bool, bool> p_bb_2 = std::make_pair(true, false); in test02() [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/bits/ |
| H A D | stl_pair.h | 68 struct pair struct 80 pair() in pair() argument 84 pair(const _T1& __a, const _T2& __b) in pair() function 89 pair(const pair<_U1, _U2>& __p) in pair() function 96 operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 102 operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 109 operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 115 operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 121 operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 127 operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | SelectHelper.cpp | 107 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 …]
|
| H A D | StructuredData.cpp | 106 std::pair<llvm::StringRef, llvm::StringRef> match = path.split('.'); in GetObjectForDotSeparatedPath() 122 std::pair<llvm::StringRef, llvm::StringRef> match = path.split('['); in GetObjectForDotSeparatedPath() 168 for (const auto &pair : m_dict) { in Serialize() local 169 s.attributeBegin(pair.first.GetStringRef()); in Serialize() 170 pair.second->Serialize(s); in Serialize() 238 for (const auto &pair : m_dict) { in GetDescription() local 240 if (pair.first.IsNull() || pair.first.IsEmpty() || !pair.second) in GetDescription() 248 s.Printf("%s:", pair.first.AsCString()); in GetDescription() 252 bool should_indent = IsRecordType(pair.second); in GetDescription() 261 pair.second->GetDescription(s); in GetDescription() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Compress/Zlib/ |
| H A D | Extra.pm | 23 my $pair = shift ; 28 unless ref $pair && ref $pair eq 'ARRAY'; 31 unless @$pair == 2 ; 34 if ref $pair->[0] ; 37 if ref $pair->[1] ; 41 unless length $pair->[0] == GZIP_FEXTRA_SUBFIELD_ID_SIZE ; 45 if $strict && $gzipMode && substr($pair->[0], 1, 1) eq "\x00" ; 48 if length $pair->[1] > GZIP_FEXTRA_SUBFIELD_MAX_SIZE ; 183 foreach my $pair ( [all...] |
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/23_containers/ |
| H A D | multiset.cc | 31 operator<<(std::ostream& os, std::pair<int, int> const& p) in operator <<() 36 operator<(std::pair<int, int> const& lhs, std::pair<int, int> const& rhs) in operator <() 41 typedef std::multiset<std::pair<int, int> >::iterator iterator; in main() 42 std::pair<int, int> p(69, 0); in main() 43 std::multiset<std::pair<int, int> > s; in main() 58 std::ostream_iterator<std::pair<int, int> >(std::cout, "\n")); in main()
|
| /openbsd-src/lib/libfido2/src/ |
| H A D | cbor.c | 229 struct cbor_pair pair; in cbor_add_bytestring() local 232 memset(&pair, 0, sizeof(pair)); in cbor_add_bytestring() 234 if ((pair.key = cbor_build_string(key)) == NULL || in cbor_add_bytestring() 235 (pair.value = cbor_build_bytestring(value, value_len)) == NULL) { in cbor_add_bytestring() 240 if (!cbor_map_add(item, pair)) { in cbor_add_bytestring() 247 if (pair.key) in cbor_add_bytestring() 248 cbor_decref(&pair.key); in cbor_add_bytestring() 249 if (pair.value) in cbor_add_bytestring() 250 cbor_decref(&pair.value); in cbor_add_bytestring() 258 struct cbor_pair pair; in cbor_add_string() local [all …]
|
| /openbsd-src/lib/libssl/test/ |
| H A D | testssl | 73 echo test sslv2 via BIO pair 76 echo test sslv2 with server authentication via BIO pair 80 echo test sslv2 with client authentication via BIO pair 83 echo test sslv2 with both client and server authentication via BIO pair 87 echo test sslv3 via BIO pair 90 echo test sslv3 with server authentication via BIO pair 93 echo test sslv3 with client authentication via BIO pair 96 echo test sslv3 with both client and server authentication via BIO pair 99 echo test sslv2/sslv3 via BIO pair 107 echo test sslv2/sslv3 with 1024bit DHE via BIO pair [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUGlobalISelUtils.cpp | 19 std::pair<Register, unsigned> 31 return std::pair(Register(), Offset); in getBaseWithConstantOffset() 38 return std::pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset() 42 return std::pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset() 48 return std::pair(Base, Offset); in getBaseWithConstantOffset() 57 return std::pair(Base->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset() 60 return std::pair(Base->getOperand(0).getReg(), Offset); in getBaseWithConstantOffset() 64 return std::pair(Reg, 0); in getBaseWithConstantOffset()
|
| H A D | R600EmitClauseMarkers.cpp | 99 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine() 103 return std::pair<unsigned, unsigned>( in getAccessedBankLine() 115 std::vector<std::pair<unsigned, unsigned>> &CachedConsts, in SubstituteKCacheBank() 117 std::vector<std::pair<unsigned, unsigned>> UsedKCache; in SubstituteKCacheBank() 122 const SmallVectorImpl<std::pair<MachineOperand *, int64_t>> &Consts = in SubstituteKCacheBank() 133 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank() 136 UsedKCache.push_back(std::pair<unsigned, unsigned>(0, KCacheIndex)); in SubstituteKCacheBank() 140 UsedKCache.push_back(std::pair<unsigned, unsigned>(0, KCacheIndex)); in SubstituteKCacheBank() 145 UsedKCache.push_back(std::pair<unsigned, unsigned>(1, KCacheIndex)); in SubstituteKCacheBank() 149 UsedKCache.push_back(std::pair<unsigned, unsigned>(1, KCacheIndex)); in SubstituteKCacheBank() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | MapVector.h | 36 typename VectorType = std::vector<std::pair<KeyT, ValueT>>> 84 std::pair<KeyT, ValueT> &front() { return Vector.front(); } in front() 85 const std::pair<KeyT, ValueT> &front() const { return Vector.front(); } in front() 86 std::pair<KeyT, ValueT> &back() { return Vector.back(); } in back() 87 const std::pair<KeyT, ValueT> &back() const { return Vector.back(); } in back() 100 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(Key, 0); 101 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair); 118 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) { in insert() 119 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(KV.first, 0); in insert() 120 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair); in insert() [all …]
|
| /openbsd-src/regress/usr.sbin/syslogd/ |
| H A D | logflush.c | 41 int pair[2], klog, val; in main() local 46 if (socketpair(AF_UNIX, SOCK_DGRAM, PF_UNSPEC, pair) == -1) in main() 50 if (setsockopt(pair[0], SOL_SOCKET, SO_RCVBUF, &val, sizeof(val)) == -1) in main() 52 if (setsockopt(pair[1], SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)) == -1) in main() 58 if (ioctl(klog, LIOCSFD, &pair[1]) == -1) in main() 60 close(pair[1]); in main()
|
| /openbsd-src/regress/sys/netinet/carp/ |
| H A D | carp_2.sh | 63 ifconfig pair$IFNO1 rdomain $RD1 192.168.0.2/24 64 ifconfig pair$IFNO2 rdomain $RD2 192.168.0.3/24 patch pair$IFNO1 66 lladdr1=$(ifconfig pair$IFNO1 | sed -n '/^.*lladdr \(.*\)/s//\1/p') 67 lladdr2=$(ifconfig pair$IFNO2 | sed -n '/^.*lladdr \(.*\)/s//\1/p') 73 vhid 251 carpdev pair$IFNO1 -group carp group ${IFGPREFIX}a \ 76 vhid 251 carpdev pair$IFNO2 -group carp group ${IFGPREFIX}b \
|
| H A D | carp_4.sh | 63 ifconfig pair$IFNO1 rdomain $RD1 192.168.0.2/24 64 ifconfig pair$IFNO2 rdomain $RD2 192.168.0.3/24 patch pair$IFNO1 66 lladdr1=$(ifconfig pair$IFNO1 | sed -n '/^.*lladdr \(.*\)/s//\1/p') 67 lladdr2=$(ifconfig pair$IFNO2 | sed -n '/^.*lladdr \(.*\)/s//\1/p') 73 vhid 251 carpdev pair$IFNO1 -group carp group ${IFGPREFIX}a \ 76 vhid 251 carpdev pair$IFNO2 -group carp group ${IFGPREFIX}b \
|
| /openbsd-src/gnu/llvm/libcxx/include/__algorithm/ |
| H A D | minmax.h | 29 pair<const _Tp&, const _Tp&> 32 return __comp(__b, __a) ? pair<const _Tp&, const _Tp&>(__b, __a) : in minmax() 33 pair<const _Tp&, const _Tp&>(__a, __b); in minmax() 39 pair<const _Tp&, const _Tp&> 49 pair<_Tp, _Tp> minmax(initializer_list<_Tp> __t, _Compare __comp) { in minmax() 53 return pair<_Tp, _Tp>(*__ret.first, *__ret.second); in minmax() 59 pair<_Tp, _Tp>
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/tr1/ |
| H A D | utility | 46 // Various functions which give std::pair a tuple-like interface. 48 struct tuple_size<std::pair<_Tp1, _Tp2> > 52 const int tuple_size<std::pair<_Tp1, _Tp2> >::value; 55 struct tuple_element<0, std::pair<_Tp1, _Tp2> > 59 struct tuple_element<1, std::pair<_Tp1, _Tp2> > 69 static _Tp1& __get(std::pair<_Tp1, _Tp2>& __pair) 73 static const _Tp1& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 81 static _Tp2& __get(std::pair<_Tp1, _Tp2>& __pair) 85 static const _Tp2& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 90 inline typename tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& [all …]
|
| /openbsd-src/regress/sys/kern/pledge/filedescriptor/ |
| H A D | pass.c | 39 int pair[2], status; in fdops() local 41 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) == -1) in fdops() 61 if (sendmsg(pair[1], &msg, 0) == -1) in fdops() 70 if (sendmsg(pair[1], &msg, 0) == -1) in fdops() 83 if (recvmsg(pair[0], &msg, 0) == -1) in fdops() 88 if (recvmsg(pair[0], &msg, 0) == -1) in fdops()
|
| /openbsd-src/gnu/llvm/lldb/source/Symbol/ |
| H A D | TypeSystem.cpp | 202 for (auto &pair : map) { in Clear() local 203 if (visited.count(pair.second.get())) in Clear() 205 visited.insert(pair.second.get()); in Clear() 206 if (lldb::TypeSystemSP type_system = pair.second) in Clear() 223 for (auto &pair : m_map) { in ForEach() local 224 TypeSystem *type_system = pair.second.get(); in ForEach() 229 if (!callback(pair.second)) in ForEach() 256 for (const auto &pair : m_map) { in GetTypeSystemForLanguage() local 257 if (pair.second && pair.second->SupportsLanguage(language)) { in GetTypeSystemForLanguage() 260 m_map[language] = pair.second; in GetTypeSystemForLanguage() [all …]
|
| /openbsd-src/regress/lib/libevent/ |
| H A D | event_regress.c | 70 int pair[2]; variable 277 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) { in setup_test() 283 if (fcntl(pair[0], F_SETFL, O_NONBLOCK) == -1) in setup_test() 286 if (fcntl(pair[1], F_SETFL, O_NONBLOCK) == -1) in setup_test() 299 close(pair[0]); in cleanup_test() 300 close(pair[1]); in cleanup_test() 302 CloseHandle((HANDLE)pair[0]); in cleanup_test() 303 CloseHandle((HANDLE)pair[1]); in cleanup_test() 319 int pair[2]; in test_registerfds() local 328 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) { in test_registerfds() [all …]
|
| /openbsd-src/gnu/gcc/libgomp/testsuite/libgomp.c/appendix-a/ |
| H A D | a.40.1.c | 8 } pair; typedef 13 incr_a (pair * p, int a) in incr_a() 20 incr_b (pair * p, int b) in incr_b() 30 incr_pair (pair * p, int a, int b) in incr_pair() 39 a40 (pair * p) in a40()
|