| /netbsd-src/external/public-domain/xz/dist/src/xz/ |
| H A D | file_io.c | 91 static bool io_write_buf(file_pair *pair, const uint8_t *buf, size_t size); 237 io_wait(file_pair *pair, int timeout, bool is_reading) in io_wait() argument 242 pfd[0].fd = pair->src_fd; in io_wait() 245 pfd[0].fd = pair->dest_fd; in io_wait() 263 is_reading ? pair->src_name in io_wait() 264 : pair->dest_name, in io_wait() 351 io_copy_attrs(const file_pair *pair) in io_copy_attrs() argument 363 if (fchown(pair->dest_fd, pair->src_st.st_uid, -1) && warn_fchown) in io_copy_attrs() 365 pair->dest_name, strerror(errno)); in io_copy_attrs() 369 if (fchown(pair->dest_fd, -1, pair->src_st.st_gid)) { in io_copy_attrs() [all …]
|
| H A D | list.c | 150 parse_indexes(xz_file_info *xfi, file_pair *pair) in parse_indexes() argument 152 if (pair->src_st.st_size <= 0) { in parse_indexes() 153 message_error(_("%s: File is empty"), pair->src_name); in parse_indexes() 157 if (pair->src_st.st_size < 2 * LZMA_STREAM_HEADER_SIZE) { in parse_indexes() 159 pair->src_name); in parse_indexes() 179 off_t pos = pair->src_st.st_size; in parse_indexes() 187 message_error("%s: %s", pair->src_name, in parse_indexes() 199 message_error("%s: %s", pair->src_name, in parse_indexes() 205 if (io_pread(pair, &buf, in parse_indexes() 228 message_error("%s: %s", pair->src_name, in parse_indexes() [all …]
|
| H A D | coder.c | 435 coder_init(file_pair *pair) in coder_init() argument 554 message_error("%s: %s", pair->src_name, message_strm(ret)); in coder_init() 617 coder_normal(file_pair *pair) in coder_normal() argument 624 lzma_action action = pair->src_eof ? LZMA_FINISH : LZMA_RUN; in coder_normal() 682 strm.avail_in = io_read(pair, &in_buf, in coder_normal() 689 if (pair->src_eof) { in coder_normal() 709 if (opt_mode != MODE_TEST && io_write(pair, &out_buf, in coder_normal() 723 if (io_write(pair, &out_buf, IO_BUFFER_SIZE in coder_normal() 761 if (opt_mode != MODE_TEST && io_write(pair, in coder_normal() 769 io_fix_src_pos(pair, strm.avail_in); in coder_normal() [all …]
|
| H A D | file_io.h | 94 extern bool io_open_dest(file_pair *pair); 104 extern void io_close(file_pair *pair, bool success); 116 extern size_t io_read(file_pair *pair, io_buf *buf, size_t size); 129 extern void io_fix_src_pos(file_pair *pair, size_t rewind_size); 145 extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, off_t pos); 156 extern bool io_write(file_pair *pair, const io_buf *buf, size_t size);
|
| /netbsd-src/external/mit/isl/dist/include/isl/ |
| H A D | typed_cpp.h | 19 struct pair {}; struct 277 …inline typed::multi_aff<pair<Anonymous, Range>> product(const typed::multi_aff<Range> &multi2) con… 279 …inline typed::multi_pw_aff<pair<Anonymous, Range>> product(const typed::multi_pw_aff<Range> &multi… 281 …inline typed::pw_multi_aff<pair<Anonymous, Range>> product(const typed::pw_multi_aff<Range> &pma2)… 489 …inline typed::multi_aff<pair<Domain, Domain2>, pair<Anonymous, Range2>> product(const typed::multi… 491 …inline typed::multi_pw_aff<pair<Domain, Domain2>, pair<Anonymous, Range2>> product(const typed::mu… 493 …inline typed::pw_multi_aff<pair<Domain, Domain2>, pair<Anonymous, Range2>> product(const typed::pw… 513 …inline typed::multi_aff<Domain, pair<Anonymous, Range2>> range_product(const typed::multi_aff<Doma… 515 …inline typed::multi_pw_aff<Domain, pair<Anonymous, Range2>> range_product(const typed::multi_pw_af… 517 …inline typed::multi_union_pw_aff<Domain, pair<Anonymous, Range2>> range_product(const typed::multi… [all …]
|
| H A D | hmap_templ.c | 31 ISL_S(pair) { in ISL_S() argument 56 ISL_S(pair) *pair = *entry; in free_pair() 57 ISL_FN(ISL_KEY,free)(pair->key); in free_pair() 58 ISL_FN(ISL_VAL,free)(pair->val); in free_pair() 59 free(pair); in free_pair() 134 const ISL_S(pair) *pair = entry; in has_key() 137 return ISL_KEY_IS_EQUAL(pair->key, key); in has_key() 151 ISL_S(pair) *pair; in ISL_MAYBE() 167 pair = entry->data; in ISL_MAYBE() 170 res.value = ISL_FN(ISL_VAL,copy)(pair->val); in ISL_MAYBE() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
| H A D | stl_pair.h | 166 template<typename _T1, typename _T2> friend struct pair; in _GLIBCXX_VISIBILITY() 187 struct pair in _GLIBCXX_VISIBILITY() 197 constexpr pair(const pair&) = default; ///< Copy constructor in _GLIBCXX_VISIBILITY() 198 constexpr pair(pair&&) = default; ///< Move constructor in _GLIBCXX_VISIBILITY() 202 pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); in _GLIBCXX_VISIBILITY() 206 swap(pair& __p) in _GLIBCXX_VISIBILITY() 219 pair(tuple<_Args1...>&, tuple<_Args2...>&, in _GLIBCXX_VISIBILITY() 230 pair() in _GLIBCXX_VISIBILITY() 271 pair(const _T1& __x, const _T2& __y) in _GLIBCXX_VISIBILITY() 281 pair(_U1&& __x, _U2&& __y) in _GLIBCXX_VISIBILITY() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
| H A D | stl_pair.h | 192 template<typename _T1, typename _T2> friend struct pair; in _GLIBCXX_VISIBILITY() 211 struct pair in _GLIBCXX_VISIBILITY() 232 _GLIBCXX_CONSTEXPR pair() in _GLIBCXX_VISIBILITY() 245 explicit constexpr pair() in _GLIBCXX_VISIBILITY() 251 pair(const _T1& __a, const _T2& __b) in _GLIBCXX_VISIBILITY() 266 constexpr pair(const _T1& __a, const _T2& __b) in _GLIBCXX_VISIBILITY() 276 explicit constexpr pair(const _T1& __a, const _T2& __b) in _GLIBCXX_VISIBILITY() 283 pair(const pair<_U1, _U2>& __p) in _GLIBCXX_VISIBILITY() 300 constexpr pair(const pair<_U1, _U2>& __p) in _GLIBCXX_VISIBILITY() 309 explicit constexpr pair(const pair<_U1, _U2>& __p) in _GLIBCXX_VISIBILITY() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | dsl_userhold.c | 93 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_holds, NULL); in dsl_dataset_user_hold_check() local 94 pair != NULL; pair = nvlist_next_nvpair(dduha->dduha_holds, pair)) { in dsl_dataset_user_hold_check() 100 name = nvpair_name(pair); in dsl_dataset_user_hold_check() 105 error = nvpair_value_string(pair, &htag); in dsl_dataset_user_hold_check() 263 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_chkholds, NULL); in dsl_dataset_user_hold_sync() local 264 pair != NULL; in dsl_dataset_user_hold_sync() 265 pair = nvlist_next_nvpair(dduha->dduha_chkholds, pair)) { in dsl_dataset_user_hold_sync() 268 VERIFY0(dsl_dataset_hold(dp, nvpair_name(pair), FTAG, &ds)); in dsl_dataset_user_hold_sync() 270 fnvpair_value_string(pair), dduha->dduha_minor, now, tx); in dsl_dataset_user_hold_sync() 307 nvpair_t *pair; in dsl_dataset_user_hold() local [all …]
|
| H A D | dsl_bookmark.c | 156 for (nvpair_t *pair = nvlist_next_nvpair(dbca->dbca_bmarks, NULL); in dsl_bookmark_create_check() local 157 pair != NULL; pair = nvlist_next_nvpair(dbca->dbca_bmarks, pair)) { in dsl_bookmark_create_check() 162 error = dsl_dataset_hold(dp, fnvpair_value_string(pair), in dsl_bookmark_create_check() 166 nvpair_name(pair), tx); in dsl_bookmark_create_check() 171 nvpair_name(pair), error); in dsl_bookmark_create_check() 188 for (nvpair_t *pair = nvlist_next_nvpair(dbca->dbca_bmarks, NULL); in dsl_bookmark_create_sync() local 189 pair != NULL; pair = nvlist_next_nvpair(dbca->dbca_bmarks, pair)) { in dsl_bookmark_create_sync() 194 VERIFY0(dsl_dataset_hold(dp, fnvpair_value_string(pair), in dsl_bookmark_create_sync() 196 VERIFY0(dsl_bookmark_hold_ds(dp, nvpair_name(pair), in dsl_bookmark_create_sync() 239 nvpair_t *pair; in dsl_bookmark_create() local [all …]
|
| H A D | zfs_ioctl.c | 882 nvpair_t *pair, *nextpair; in zfs_secpolicy_destroy_snaps() local 887 for (pair = nvlist_next_nvpair(snaps, NULL); pair != NULL; in zfs_secpolicy_destroy_snaps() 888 pair = nextpair) { in zfs_secpolicy_destroy_snaps() 889 nextpair = nvlist_next_nvpair(snaps, pair); in zfs_secpolicy_destroy_snaps() 890 error = zfs_secpolicy_destroy_perms(nvpair_name(pair), cr); in zfs_secpolicy_destroy_snaps() 900 fnvlist_remove_nvpair(snaps, pair); in zfs_secpolicy_destroy_snaps() 1047 nvpair_t *pair; in zfs_secpolicy_snapshot() local 1051 for (pair = nvlist_next_nvpair(snaps, NULL); pair != NULL; in zfs_secpolicy_snapshot() 1052 pair = nvlist_next_nvpair(snaps, pair)) { in zfs_secpolicy_snapshot() 1053 char *name = nvpair_name(pair); in zfs_secpolicy_snapshot() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/lib/libzfs_core/common/ |
| H A D | libzfs_core_compat.c | 36 nvpair_t *pair, *hpair; in lzc_compat_pre() local 65 pair = nvlist_next_nvpair(nvl, NULL); in lzc_compat_pre() 66 if (pair != NULL) { in lzc_compat_pre() 67 buf = nvpair_name(pair); in lzc_compat_pre() 74 if (!error && nvlist_next_nvpair(nvl, pair) != NULL) in lzc_compat_pre() 87 pair = nvlist_next_nvpair(nvl, NULL); in lzc_compat_pre() 88 if (pair != NULL) { in lzc_compat_pre() 89 buf = nvpair_name(pair); in lzc_compat_pre() 95 if (!error && nvlist_next_nvpair(nvl, pair) != NULL) in lzc_compat_pre() 101 pair = nvlist_next_nvpair(nvl, NULL); in lzc_compat_pre() [all …]
|
| /netbsd-src/lib/libcurses/ |
| H A D | color.c | 274 init_pair(short pair, short fore, short back) in init_pair() argument 278 __CTRACE(__CTRACE_COLOR, "init_pair: %d, %d, %d\n", pair, fore, back); in init_pair() 280 if (pair < 0 || pair >= COLOR_PAIRS) in init_pair() 283 if (pair == 0) /* Ignore request for pair 0, it is default. */ in init_pair() 323 if ((_cursesi_screen->colour_pairs[pair].flags & __USED) && in init_pair() 324 (fore != _cursesi_screen->colour_pairs[pair].fore || in init_pair() 325 back != _cursesi_screen->colour_pairs[pair].back)) in init_pair() 330 _cursesi_screen->colour_pairs[pair].flags |= __USED; in init_pair() 331 _cursesi_screen->colour_pairs[pair].fore = fore; in init_pair() 332 _cursesi_screen->colour_pairs[pair].back = back; in init_pair() [all …]
|
| H A D | attributes.c | 49 * Get wide attributes and color pair from stdscr 53 attr_get(attr_t *attr, short *pair, void *opts) in attr_get() argument 55 return wattr_get(stdscr, attr, pair, opts); in attr_get() 82 * Set wide attributes and color pair on stdscr 86 attr_set(attr_t attr, short pair, void *opts) in attr_set() argument 88 return wattr_set(stdscr, attr, pair, opts); in attr_set() 93 * Set color pair on stdscr 97 color_set(short pair, void *opts) in color_set() argument 99 return wcolor_set(stdscr, pair, opts); in color_set() 139 * Get wide attributes and colour pair fro 144 wattr_get(WINDOW * win,attr_t * attr,short * pair,void * opts) wattr_get() argument 197 wattr_set(WINDOW * win,attr_t attr,short pair,void * opts) wattr_set() argument 221 wcolor_set(WINDOW * win,short pair,void * opts) wcolor_set() argument [all...] |
| /netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
| H A D | utility | 70 struct pair 78 pair(const pair&) = default; 79 pair(pair&&) = default; 80 explicit(see-below) constexpr pair(); 81 … explicit(see-below) pair(const T1& x, const T2& y); // constexpr in C++14 82 … template <class U, class V> explicit(see-below) pair(U&& x, V&& y); // constexpr in C++14 83 … template <class U, class V> explicit(see-below) pair(const pair<U, V>& p); // constexpr in C++14 84 … template <class U, class V> explicit(see-below) pair(pair<U, V>&& p); // constexpr in C++14 86 pair(piecewise_construct_t, tuple<Args1...> first_args, 89 … template <class U, class V> pair& operator=(const pair<U, V>& p); // constexpr in C++20 [all …]
|
| /netbsd-src/external/bsd/libfido2/dist/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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | MapVector.h | 36 typename VectorType = std::vector<std::pair<KeyT, ValueT>>> 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); 100 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair); 117 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) { in insert() 118 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(KV.first, 0); in insert() 119 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair); in insert() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/ |
| H A D | utility | 63 * Components deemed generally useful. Includes pair, tuple, 141 // of tuple_element<pair<T,U>> and tuple_element<array<T,N>> are defined. 148 // Various functions which give std::pair a tuple-like interface. 150 /// Partial specialization for std::pair 152 struct __is_tuple_like_impl<std::pair<_T1, _T2>> : true_type 155 /// Partial specialization for std::pair 157 struct tuple_size<std::pair<_Tp1, _Tp2>> 160 /// Partial specialization for std::pair 162 struct tuple_element<0, std::pair<_Tp1, _Tp2>> 165 /// Partial specialization for std::pair [all …]
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_issuer/ |
| H A D | keypair_generator.c | 106 bi_ptr pair[2] = {NULL, NULL}; in generate_key_pair() local 188 pair[ELEMENT] = bi_new_ptr(); in generate_key_pair() 189 pair[EXPONENT] = bi_new_ptr(); in generate_key_pair() 194 compute_group_element(pair, capital_s, product_PQprime, n); in generate_key_pair() 196 bi_set(capital_z, pair[ELEMENT]); in generate_key_pair() 198 bi_set(xz, pair[EXPONENT]); in generate_key_pair() 201 compute_group_element(pair, capital_s, product_PQprime, n); in generate_key_pair() 203 bi_set(capital_r0, pair[ELEMENT]); in generate_key_pair() 205 bi_set(x0, pair[EXPONENT]); in generate_key_pair() 207 compute_group_element(pair, capital_s, product_PQprime, n); in generate_key_pair() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/tr1/ |
| H A D | utility | 50 // Various functions which give std::pair a tuple-like interface. 52 struct tuple_size<std::pair<_Tp1, _Tp2> > 57 tuple_size<std::pair<_Tp1, _Tp2> >::value; 60 struct tuple_element<0, std::pair<_Tp1, _Tp2> > 64 struct tuple_element<1, std::pair<_Tp1, _Tp2> > 74 static _Tp1& __get(std::pair<_Tp1, _Tp2>& __pair) 78 static const _Tp1& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 86 static _Tp2& __get(std::pair<_Tp1, _Tp2>& __pair) 90 static const _Tp2& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 95 inline typename tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& [all …]
|
| H A D | unordered_map.h | 41 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >, in _GLIBCXX_VISIBILITY() 44 : public _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, in _GLIBCXX_VISIBILITY() 45 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() 51 typedef _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, in _GLIBCXX_VISIBILITY() 52 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() 72 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a) in _GLIBCXX_VISIBILITY() 83 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a) in _GLIBCXX_VISIBILITY() 90 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >, in _GLIBCXX_VISIBILITY() 93 : public _Hashtable<_Key, std::pair<const _Key, _Tp>, in _GLIBCXX_VISIBILITY() 95 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/tr1/ |
| H A D | utility | 50 // Various functions which give std::pair a tuple-like interface. 52 struct tuple_size<std::pair<_Tp1, _Tp2> > 57 tuple_size<std::pair<_Tp1, _Tp2> >::value; 60 struct tuple_element<0, std::pair<_Tp1, _Tp2> > 64 struct tuple_element<1, std::pair<_Tp1, _Tp2> > 74 static _Tp1& __get(std::pair<_Tp1, _Tp2>& __pair) 78 static const _Tp1& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 86 static _Tp2& __get(std::pair<_Tp1, _Tp2>& __pair) 90 static const _Tp2& __const_get(const std::pair<_Tp1, _Tp2>& __pair) 95 inline typename tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& [all …]
|
| H A D | unordered_map.h | 41 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >, in _GLIBCXX_VISIBILITY() 44 : public _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, in _GLIBCXX_VISIBILITY() 45 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() 51 typedef _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, in _GLIBCXX_VISIBILITY() 52 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() 72 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a) in _GLIBCXX_VISIBILITY() 83 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a) in _GLIBCXX_VISIBILITY() 90 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >, in _GLIBCXX_VISIBILITY() 93 : public _Hashtable<_Key, std::pair<const _Key, _Tp>, in _GLIBCXX_VISIBILITY() 95 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred, in _GLIBCXX_VISIBILITY() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | stream_connect.c | 68 int pair[2]; in stream_connect() local 87 if (pipe(pair) < 0) in stream_connect() 89 if (ioctl(fifo, I_SENDFD, pair[1]) < 0) in stream_connect() 91 close(pair[1]); in stream_connect() 97 non_blocking(pair[0], NON_BLOCKING); in stream_connect() 107 return (pair[0]); in stream_connect()
|
| /netbsd-src/external/bsd/libevent/dist/test/ |
| H A D | regress_main.c | 321 data->pair[0] = spair[0]; in basic_test_setup() 322 data->pair[1] = spair[1]; in basic_test_setup() 336 if (data->pair[0] != -1) in basic_test_cleanup() 337 evutil_closesocket(data->pair[0]); in basic_test_cleanup() 338 if (data->pair[1] != -1) in basic_test_cleanup() 339 evutil_closesocket(data->pair[1]); in basic_test_cleanup() 377 pair[0] = data->pair[0]; in legacy_test_setup() 378 pair[1] = data->pair[1]; in legacy_test_setup() 412 pair[0] = pair[1] = -1; in legacy_test_cleanup()
|