Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 953) sorted by relevance

12345678910>>...39

/freebsd-9-stable/contrib/xz/src/xz/
Dfile_io.c51 static bool io_write_buf(file_pair *pair, const uint8_t *buf, size_t size);
157 io_copy_attrs(const file_pair *pair) in io_copy_attrs() argument
169 if (fchown(pair->dest_fd, pair->src_st.st_uid, -1) && warn_fchown) in io_copy_attrs()
171 pair->dest_name, strerror(errno)); in io_copy_attrs()
175 if (fchown(pair->dest_fd, -1, pair->src_st.st_gid)) { in io_copy_attrs()
177 pair->dest_name, strerror(errno)); in io_copy_attrs()
186 mode = ((pair->src_st.st_mode & 0070) >> 3) in io_copy_attrs()
187 & (pair->src_st.st_mode & 0007); in io_copy_attrs()
188 mode = (pair->src_st.st_mode & 0700) | (mode << 3) | mode; in io_copy_attrs()
191 mode = pair->src_st.st_mode & 0777; in io_copy_attrs()
[all …]
Dcoder.c355 coder_init(file_pair *pair) in coder_init() argument
454 message_error("%s: %s", pair->src_name, message_strm(ret)); in coder_init()
467 coder_normal(file_pair *pair) in coder_normal() argument
474 lzma_action action = pair->src_eof ? LZMA_FINISH : LZMA_RUN; in coder_normal()
487 if (strm.avail_in == 0 && !pair->src_eof) { in coder_normal()
490 pair, &in_buf, IO_BUFFER_SIZE); in coder_normal()
495 if (pair->src_eof) in coder_normal()
504 if (opt_mode != MODE_TEST && io_write(pair, &out_buf, in coder_normal()
524 if (opt_mode != MODE_TEST && io_write(pair, in coder_normal()
534 if (strm.avail_in == 0 && !pair->src_eof) { in coder_normal()
[all …]
Dlist.c123 parse_indexes(xz_file_info *xfi, file_pair *pair) in parse_indexes() argument
125 if (pair->src_st.st_size <= 0) { in parse_indexes()
126 message_error(_("%s: File is empty"), pair->src_name); in parse_indexes()
130 if (pair->src_st.st_size < 2 * LZMA_STREAM_HEADER_SIZE) { in parse_indexes()
132 pair->src_name); in parse_indexes()
152 off_t pos = pair->src_st.st_size; in parse_indexes()
160 message_error("%s: %s", pair->src_name, in parse_indexes()
172 message_error("%s: %s", pair->src_name, in parse_indexes()
178 if (io_pread(pair, &buf, in parse_indexes()
201 message_error("%s: %s", pair->src_name, in parse_indexes()
[all …]
Dfile_io.h80 extern bool io_open_dest(file_pair *pair);
90 extern void io_close(file_pair *pair, bool success);
102 extern size_t io_read(file_pair *pair, io_buf *buf, size_t size);
118 extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, off_t pos);
129 extern bool io_write(file_pair *pair, const io_buf *buf, size_t size);
/freebsd-9-stable/contrib/libc++/include/
Dutility58 struct pair
66 pair(const pair&) = default;
67 pair(pair&&) = default;
68 constexpr pair();
69 pair(const T1& x, const T2& y); // constexpr in C++14
70 template <class U, class V> pair(U&& x, V&& y); // constexpr in C++14
71 template <class U, class V> pair(const pair<U, V>& p); // constexpr in C++14
72 template <class U, class V> pair(pair<U, V>&& p); // constexpr in C++14
74 pair(piecewise_construct_t, tuple<Args1...> first_args,
77 template <class U, class V> pair& operator=(const pair<U, V>& p);
[all …]
/freebsd-9-stable/contrib/libstdc++/include/bits/
Dstl_pair.h68 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 …]
/freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Ddsl_userhold.c93 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 …]
Ddsl_bookmark.c156 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()
238 nvpair_t *pair; in dsl_bookmark_create() local
[all …]
Dzfs_ioctl.c846 nvpair_t *pair, *nextpair; in zfs_secpolicy_destroy_snaps() local
851 for (pair = nvlist_next_nvpair(snaps, NULL); pair != NULL; in zfs_secpolicy_destroy_snaps()
852 pair = nextpair) { in zfs_secpolicy_destroy_snaps()
853 nextpair = nvlist_next_nvpair(snaps, pair); in zfs_secpolicy_destroy_snaps()
854 error = zfs_secpolicy_destroy_perms(nvpair_name(pair), cr); in zfs_secpolicy_destroy_snaps()
864 fnvlist_remove_nvpair(snaps, pair); in zfs_secpolicy_destroy_snaps()
1011 nvpair_t *pair; in zfs_secpolicy_snapshot() local
1015 for (pair = nvlist_next_nvpair(snaps, NULL); pair != NULL; in zfs_secpolicy_snapshot()
1016 pair = nvlist_next_nvpair(snaps, pair)) { in zfs_secpolicy_snapshot()
1017 char *name = nvpair_name(pair); in zfs_secpolicy_snapshot()
[all …]
/freebsd-9-stable/cddl/contrib/opensolaris/lib/libzfs_core/common/
Dlibzfs_core_compat.c36 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 …]
/freebsd-9-stable/contrib/ncurses/ncurses/widechar/
Dlib_vid_attr.c49 TR(TRACE_ATTRS, ("old pair = %d -- new pair = %d", old_pair, pair)); \
50 if ((pair != old_pair) \
51 || (fix_pair0 && (pair == 0)) \
53 _nc_do_color(old_pair, pair, reverse, outc); \
57 #define set_color(mode, pair) mode &= ALL_BUT_COLOR; mode |= COLOR_PAIR(pair) argument
60 vid_puts(attr_t newmode, short pair, void *opts GCC_UNUSED, int (*outc) (int)) in NCURSES_EXPORT()
76 T((T_CALLED("vid_puts(%s,%d)"), _traceattr(newmode), pair)); in NCURSES_EXPORT()
97 if ((pair != 0 in NCURSES_EXPORT()
126 && pair == previous_pair) in NCURSES_EXPORT()
136 SetColorsIf(((pair == 0) && !fix_pair0), previous_attr, previous_pair); in NCURSES_EXPORT()
[all …]
/freebsd-9-stable/sys/dev/nvram2env/
Dnvram2env.c198 char *pair, *value, *assign; in nvram2env_attach() local
241 pair = (char*)nv+4; in nvram2env_attach()
243 pair = (char*)nv+4; in nvram2env_attach()
245 pair = (char*)nv+20; in nvram2env_attach()
247 pair = (char*)nv+4; in nvram2env_attach()
250 (u_int32_t)pair < ((u_int32_t)nv + size - 4); in nvram2env_attach()
251 pair = pair + strlen(pair) + 1 + strlen(value) + 1 ) { in nvram2env_attach()
253 if (pair && strlen(pair)) { in nvram2env_attach()
256 printf("ENV: %s\n", pair); in nvram2env_attach()
259 assign = strchr(pair,'='); in nvram2env_attach()
[all …]
/freebsd-9-stable/contrib/ncurses/ncurses/base/
Dlib_color.c331 init_pair(short pair, short f, short b) in init_pair() argument
335 T((T_CALLED("init_pair(%d,%d,%d)"), pair, f, b)); in init_pair()
337 if ((pair < 0) || (pair >= COLOR_PAIRS) || SP == 0 || !SP->_coloron) in init_pair()
354 || (pair < 1)) in init_pair()
364 if (SP->_color_pairs[pair] != 0 in init_pair()
365 && SP->_color_pairs[pair] != result) { in init_pair()
372 if (GetPair(ptr->text[x]) == pair) { in init_pair()
384 SP->_color_pairs[pair] = result; in init_pair()
385 if (GET_SCREEN_PAIR(SP) == pair) in init_pair()
393 pair, in init_pair()
[all …]
/freebsd-9-stable/contrib/llvm/include/llvm/ADT/
DMapVector.h32 typename VectorType = std::vector<std::pair<KeyT, ValueT> > >
67 std::pair<KeyT, ValueT> &front() { return Vector.front(); } in front()
68 const std::pair<KeyT, ValueT> &front() const { return Vector.front(); } in front()
69 std::pair<KeyT, ValueT> &back() { return Vector.back(); } in back()
70 const std::pair<KeyT, ValueT> &back() const { return Vector.back(); } in back()
78 std::pair<KeyT, unsigned> Pair = std::make_pair(Key, 0);
79 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair);
93 std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) { in insert()
94 std::pair<KeyT, unsigned> Pair = std::make_pair(KV.first, 0); in insert()
95 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair); in insert()
/freebsd-9-stable/contrib/ntp/sntp/libevent/test/
Dregress_et.c86 evutil_socket_t pair[2] = {-1,-1}; in test_edgetriggered() local
96 if (evutil_ersatz_socketpair_(AF_INET, SOCK_STREAM, 0, pair) == -1) { in test_edgetriggered()
100 if (evutil_socketpair(LOCAL_SOCKETPAIR_AF, SOCK_STREAM, 0, pair) == -1) { in test_edgetriggered()
107 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
108 shutdown(pair[0], SHUT_WR); in test_edgetriggered()
125 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered()
154 evutil_closesocket(pair[0]); in test_edgetriggered()
155 evutil_closesocket(pair[1]); in test_edgetriggered()
176 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
178 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
Dregress_main.c263 data->pair[0] = spair[0]; in basic_test_setup()
264 data->pair[1] = spair[1]; in basic_test_setup()
278 if (data->pair[0] != -1) in basic_test_cleanup()
279 evutil_closesocket(data->pair[0]); in basic_test_cleanup()
280 if (data->pair[1] != -1) in basic_test_cleanup()
281 evutil_closesocket(data->pair[1]); in basic_test_cleanup()
319 pair[0] = data->pair[0]; in legacy_test_setup()
320 pair[1] = data->pair[1]; in legacy_test_setup()
354 pair[0] = pair[1] = -1; in legacy_test_cleanup()
Dregress_zlib.c283 evutil_socket_t pair[2] = {-1, -1}; in test_bufferevent_zlib() local
289 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) { in test_bufferevent_zlib()
293 evutil_make_socket_nonblocking(pair[0]); in test_bufferevent_zlib()
294 evutil_make_socket_nonblocking(pair[1]); in test_bufferevent_zlib()
296 bev1 = bufferevent_socket_new(NULL, pair[0], 0); in test_bufferevent_zlib()
297 bev2 = bufferevent_socket_new(NULL, pair[1], 0); in test_bufferevent_zlib()
344 if (pair[0] >= 0) in test_bufferevent_zlib()
345 evutil_closesocket(pair[0]); in test_bufferevent_zlib()
346 if (pair[1] >= 0) in test_bufferevent_zlib()
347 evutil_closesocket(pair[1]); in test_bufferevent_zlib()
/freebsd-9-stable/crypto/openssl/test/
Dtestssl73 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
103 echo test sslv2/sslv3 w/o DHE via BIO pair
[all …]
Dtestfipsssl56 echo test tls1 via BIO pair
59 echo test tls1 with server authentication via BIO pair
62 echo test tls1 with client authentication via BIO pair
65 echo test tls1 with both client and server authentication via BIO pair
71 echo test sslv2/sslv3 w/o DHE via BIO pair
75 echo test sslv2/sslv3 with 1024bit DHE via BIO pair
81 echo test sslv2/sslv3 with client authentication via BIO pair
84 echo test sslv2/sslv3 with both client and server authentication via BIO pair
87 echo test sslv2/sslv3 with both client and server authentication via BIO pair and app verify
/freebsd-9-stable/contrib/libstdc++/include/tr1/
Dutility46 // 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 …]
Dunordered_map49 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >,
52 : public _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc,
53 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred,
59 typedef _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc,
60 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred,
80 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a)
91 __eql, std::_Select1st<std::pair<const _Key, _Tp> >(), __a)
98 class _Alloc = std::allocator<std::pair<const _Key, _Tp> >,
101 : public _Hashtable<_Key, std::pair<const _Key, _Tp>,
103 std::_Select1st<std::pair<const _Key, _Tp> >, _Pred,
[all …]
/freebsd-9-stable/contrib/llvm/lib/Target/R600/
DR600EmitClauseMarkers.cpp99 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine()
103 return std::pair<unsigned, unsigned>( in getAccessedBankLine()
114 std::vector<std::pair<unsigned, unsigned> > &CachedConsts, in SubstituteKCacheBank()
116 std::vector<std::pair<unsigned, unsigned> > UsedKCache; in SubstituteKCacheBank()
121 const SmallVectorImpl<std::pair<MachineOperand *, int64_t> > &Consts = in SubstituteKCacheBank()
131 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank()
134 UsedKCache.push_back(std::pair<unsigned, unsigned>(0, KCacheIndex)); in SubstituteKCacheBank()
138 UsedKCache.push_back(std::pair<unsigned, unsigned>(0, KCacheIndex)); in SubstituteKCacheBank()
143 UsedKCache.push_back(std::pair<unsigned, unsigned>(1, KCacheIndex)); in SubstituteKCacheBank()
147 UsedKCache.push_back(std::pair<unsigned, unsigned>(1, KCacheIndex)); in SubstituteKCacheBank()
[all …]
/freebsd-9-stable/contrib/ncurses/ncurses/tty/
Dlib_vidattr.c82 TR(TRACE_ATTRS, ("old pair = %d -- new pair = %d", old_pair, pair)); \
83 if ((pair != old_pair) \
84 || (fix_pair0 && (pair == 0)) \
86 _nc_do_color(old_pair, pair, reverse, outc); \
96 int pair; in NCURSES_EXPORT() local
191 pair = PAIR_NUMBER(newmode); in NCURSES_EXPORT()
200 SetColorsIf(((pair == 0) && !fix_pair0), PreviousAttr); in NCURSES_EXPORT()
221 SetColorsIf((pair != 0) || fix_pair0, PreviousAttr); in NCURSES_EXPORT()
237 SetColorsIf((pair != 0) || fix_pair0, PreviousAttr); in NCURSES_EXPORT()
257 SetColorsIf((pair != 0) || fix_pair0, PreviousAttr); in NCURSES_EXPORT()
/freebsd-9-stable/contrib/ncurses/ncurses/trace/
Dlib_tracedmp.c137 int pair = GetPair(win->_line[n].text[j]); in NCURSES_EXPORT() local
138 if (pair >= 52) in NCURSES_EXPORT()
140 else if (pair >= 36) in NCURSES_EXPORT()
141 ep[j] = (char) (pair + 'A'); in NCURSES_EXPORT()
142 else if (pair >= 10) in NCURSES_EXPORT()
143 ep[j] = (char) (pair + 'a'); in NCURSES_EXPORT()
144 else if (pair >= 1) in NCURSES_EXPORT()
145 ep[j] = (char) (pair + '0'); in NCURSES_EXPORT()
/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Lex/
DPreprocessorOptions.h46 std::vector<std::pair<std::string, bool/*isUndef*/> > Macros;
83 std::pair<unsigned, bool> PrecompiledPreambleBytes;
100 std::vector<std::pair<std::string, std::string> > RemappedFiles;
105 std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >
143 typedef std::vector<std::pair<std::string, std::string> >::iterator
145 typedef std::vector<std::pair<std::string, std::string> >::const_iterator
160 typedef std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >::
162 typedef std::vector<std::pair<std::string, const llvm::MemoryBuffer *> >::

12345678910>>...39