/third_party/boost/libs/process/example/ |
D | io.cpp | 13 namespace bp = boost::process; 18 bp::system( in main() 20 bp::std_out > stdout, //forward in main() 21 bp::std_err.close(), //close in main() 22 bp::std_in < bp::null //null in in main() 27 bp::system( in main() 29 (bp::std_out & bp::std_err) > "output.txt", //redirect both to one file in main() 30 bp::std_in < p //read input from file in main() 34 bp::opstream p1; in main() 35 bp::ipstream p2; in main() [all …]
|
D | posix.cpp | 18 namespace bp = boost::process; 24 bp::pipe p; in main() 25 bp::system("test", bp::posix::fd.bind(4, p.native_sink())); in main() 29 bp::system("test", bp::posix::fd.close(STDIN_FILENO)); in main() 32 bp::system("test", bp::posix::fd.close({STDIN_FILENO, STDOUT_FILENO})); in main() 37 bp::system("test", in main() 38 bp::extend::on_setup([env](auto &e) { e.env = const_cast<char**>(env); }), in main() 39 bp::extend::on_fork_error([](auto&, const std::error_code & ec) in main() 41 bp::extend::on_exec_setup([](auto&) in main() 43 bp::extend::on_exec_error([](auto&, const std::error_code & ec) in main()
|
/third_party/openssl/crypto/ocsp/ |
D | ocsp_prn.c | 17 static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent) in ocsp_certid_print() argument 19 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); in ocsp_certid_print() 21 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); in ocsp_certid_print() 22 i2a_ASN1_OBJECT(bp, a->hashAlgorithm.algorithm); in ocsp_certid_print() 23 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); in ocsp_certid_print() 24 i2a_ASN1_STRING(bp, &a->issuerNameHash, 0); in ocsp_certid_print() 25 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); in ocsp_certid_print() 26 i2a_ASN1_STRING(bp, &a->issuerKeyHash, 0); in ocsp_certid_print() 27 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); in ocsp_certid_print() 28 i2a_ASN1_INTEGER(bp, &a->serialNumber); in ocsp_certid_print() [all …]
|
D | v3_ocsp.c | 42 BIO *bp, int ind); 110 static int i2r_ocsp_crlid(const X509V3_EXT_METHOD *method, void *in, BIO *bp, in i2r_ocsp_crlid() argument 115 if (BIO_printf(bp, "%*scrlUrl: ", ind, "") <= 0) in i2r_ocsp_crlid() 117 if (!ASN1_STRING_print(bp, (ASN1_STRING *)a->crlUrl)) in i2r_ocsp_crlid() 119 if (BIO_write(bp, "\n", 1) <= 0) in i2r_ocsp_crlid() 123 if (BIO_printf(bp, "%*scrlNum: ", ind, "") <= 0) in i2r_ocsp_crlid() 125 if (i2a_ASN1_INTEGER(bp, a->crlNum) <= 0) in i2r_ocsp_crlid() 127 if (BIO_write(bp, "\n", 1) <= 0) in i2r_ocsp_crlid() 131 if (BIO_printf(bp, "%*scrlTime: ", ind, "") <= 0) in i2r_ocsp_crlid() 133 if (!ASN1_GENERALIZEDTIME_print(bp, a->crlTime)) in i2r_ocsp_crlid() [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | xg-mixed-string.c | 399 mixed_string_buffer_init (struct mixed_string_buffer *bp, in mixed_string_buffer_init() argument 404 bp->segments = NULL; in mixed_string_buffer_init() 405 bp->nsegments = 0; in mixed_string_buffer_init() 406 bp->nsegments_allocated = 0; in mixed_string_buffer_init() 407 bp->curr_type = -1; in mixed_string_buffer_init() 408 bp->curr_buffer = NULL; in mixed_string_buffer_init() 409 bp->curr_buflen = 0; in mixed_string_buffer_init() 410 bp->curr_allocated = 0; in mixed_string_buffer_init() 411 bp->utf16_surr = 0; in mixed_string_buffer_init() 412 bp->lcontext = lcontext; in mixed_string_buffer_init() [all …]
|
/third_party/openssl/ssl/ |
D | ssl_txt.c | 32 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) in SSL_SESSION_print() argument 41 if (BIO_puts(bp, "SSL-Session:\n") <= 0) in SSL_SESSION_print() 44 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0) in SSL_SESSION_print() 49 if (BIO_printf(bp, " Cipher : %06lX\n", in SSL_SESSION_print() 53 if (BIO_printf(bp, " Cipher : %04lX\n", in SSL_SESSION_print() 58 if (BIO_printf(bp, " Cipher : %s\n", in SSL_SESSION_print() 63 if (BIO_puts(bp, " Session-ID: ") <= 0) in SSL_SESSION_print() 66 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0) in SSL_SESSION_print() 69 if (BIO_puts(bp, "\n Session-ID-ctx: ") <= 0) in SSL_SESSION_print() 72 if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0) in SSL_SESSION_print() [all …]
|
/third_party/openssl/crypto/bn/ |
D | bn_nist.c | 365 const unsigned int *bp = (const unsigned int *)buf.ui; in BN_nist_mod_192() local 368 acc += bp[3 * 2 - 6]; in BN_nist_mod_192() 369 acc += bp[5 * 2 - 6]; in BN_nist_mod_192() 374 acc += bp[3 * 2 - 5]; in BN_nist_mod_192() 375 acc += bp[5 * 2 - 5]; in BN_nist_mod_192() 380 acc += bp[3 * 2 - 6]; in BN_nist_mod_192() 381 acc += bp[4 * 2 - 6]; in BN_nist_mod_192() 382 acc += bp[5 * 2 - 6]; in BN_nist_mod_192() 387 acc += bp[3 * 2 - 5]; in BN_nist_mod_192() 388 acc += bp[4 * 2 - 5]; in BN_nist_mod_192() [all …]
|
/third_party/openssl/crypto/x509/ |
D | t_x509.c | 42 int X509_print(BIO *bp, X509 *x) in X509_print() argument 44 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print() 47 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, in X509_print_ex() argument 67 if (BIO_write(bp, "Certificate:\n", 13) <= 0) in X509_print_ex() 69 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_print_ex() 75 if (BIO_printf(bp, "%8sVersion: %ld (0x%lx)\n", "", l + 1, (unsigned long)l) <= 0) in X509_print_ex() 78 if (BIO_printf(bp, "%8sVersion: Unknown (%ld)\n", "", l) <= 0) in X509_print_ex() 84 if (BIO_write(bp, " Serial Number:", 22) <= 0) in X509_print_ex() 104 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, ul, neg, ul) <= 0) in X509_print_ex() 108 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0) in X509_print_ex() [all …]
|
D | t_req.c | 37 int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, in X509_REQ_print_ex() argument 56 if (BIO_write(bp, "Certificate Request:\n", 21) <= 0) in X509_REQ_print_ex() 58 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_REQ_print_ex() 64 if (BIO_printf(bp, "%8sVersion: %ld (0x%lx)\n", "", l + 1, (unsigned long)l) <= 0) in X509_REQ_print_ex() 67 if (BIO_printf(bp, "%8sVersion: Unknown (%ld)\n", "", l) <= 0) in X509_REQ_print_ex() 72 if (BIO_printf(bp, " Subject:%c", mlch) <= 0) in X509_REQ_print_ex() 74 if (X509_NAME_print_ex(bp, X509_REQ_get_subject_name(x), in X509_REQ_print_ex() 77 if (BIO_write(bp, "\n", 1) <= 0) in X509_REQ_print_ex() 83 if (BIO_write(bp, " Subject Public Key Info:\n", 33) <= 0) in X509_REQ_print_ex() 85 if (BIO_printf(bp, "%12sPublic Key Algorithm: ", "") <= 0) in X509_REQ_print_ex() [all …]
|
D | x_all.c | 121 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument 123 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio() 126 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio() argument 128 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); in i2d_X509_bio() 143 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio() argument 145 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in d2i_X509_CRL_bio() 148 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio() argument 150 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in i2d_X509_CRL_bio() 165 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio() argument 167 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); in d2i_PKCS7_bio() [all …]
|
/third_party/openssl/crypto/asn1/ |
D | asn1_par.c | 20 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, 22 static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, 24 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, in asn1_print_info() argument 35 if (BIO_write(bp, p, 6) < 6) in asn1_print_info() 37 BIO_indent(bp, indent, 128); in asn1_print_info() 51 if (BIO_printf(bp, fmt, p) <= 0) in asn1_print_info() 58 int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent) in ASN1_parse() argument 60 return asn1_parse2(bp, &pp, len, 0, 0, indent, 0); in ASN1_parse() 63 int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, in ASN1_parse_dump() argument 66 return asn1_parse2(bp, &pp, len, 0, 0, indent, dump); in ASN1_parse_dump() [all …]
|
/third_party/boost/libs/process/test/ |
D | pipe.cpp | 17 namespace bp = boost::process; 24 bp::pipe pipe; 40 bp::pipe pipe("\\\\.\\pipe\\pipe_name"); 43 bp::pipe pipe(home_path + "/.boost_process_test_pipe"); 60 bp::pipe pipe; 75 bp::pipe pipe; 91 bp::pipe pipe; 93 bp::pstream os(pipe); 94 bp::ipstream is(pipe); 108 bp::pipe pipe; [all …]
|
D | bind_stdout_stderr.cpp | 36 namespace bp = boost::process; 45 bp::pipe p1; 46 bp::pipe p2; 48 bp::ipstream is1; 49 bp::ipstream is2; 52 bp::child c( 55 bp::std_out>is1, 56 bp::std_err>is2, 93 bp::async_pipe p1(io_context); 94 bp::async_pipe p2(io_context); [all …]
|
D | bind_stdin.cpp | 45 namespace bp = boost::process; 52 bp::opstream os; 53 bp::ipstream is; 57 bp::child c( 59 bp::args+={"test", "--prefix", "abc"}, 60 bp::std_in <os, 61 bp::std_out>is, 97 bp::ipstream &is_; 99 write_handler(bp::ipstream &is) : is_(is) {} in write_handler() 117 bp::async_pipe p1(io_context); [all …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | blkmap64_rb.c | 175 static void rb_free_extent(struct ext2fs_rb_private *bp, in rb_free_extent() argument 178 if (bp->wcursor == ext) in rb_free_extent() 179 bp->wcursor = NULL; in rb_free_extent() 180 if (bp->rcursor == ext) in rb_free_extent() 181 bp->rcursor = NULL; in rb_free_extent() 182 if (bp->rcursor_next == ext) in rb_free_extent() 183 bp->rcursor_next = NULL; in rb_free_extent() 189 struct ext2fs_rb_private *bp; in rb_alloc_private_data() local 192 retval = ext2fs_get_mem(sizeof (struct ext2fs_rb_private), &bp); in rb_alloc_private_data() 196 bp->root = RB_ROOT; in rb_alloc_private_data() [all …]
|
D | blkmap64_ba.c | 45 ext2fs_ba_private bp; in ba_alloc_private_data() local 55 retval = ext2fs_get_mem(sizeof (ext2fs_ba_private), &bp); in ba_alloc_private_data() 61 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data() 63 ext2fs_free_mem(&bp); in ba_alloc_private_data() 64 bp = 0; in ba_alloc_private_data() 67 bitmap->private = (void *) bp; in ba_alloc_private_data() 74 ext2fs_ba_private bp; in ba_new_bmap() local 82 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap() 84 memset(bp->bitarray, 0, size); in ba_new_bmap() 91 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() local [all …]
|
/third_party/libwebsockets/lib/misc/fts/ |
D | trie-fd.c | 90 int ra, bp = 0; in lws_fts_filepath() local 120 bp += rq32(&buf[bp], ofs_linetable); in lws_fts_filepath() 122 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 124 bp += rq32(&buf[bp], lines); in lws_fts_filepath() 126 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 127 bp += rq32(&buf[bp], &flen); in lws_fts_filepath() 133 strncpy(result, (char *)&buf[bp], m); in lws_fts_filepath() 226 bp = 0; \ 244 int line = 1, bp, ra; in lws_fts_cache_chunktable() local 264 lt->chunk_line_number_count = b16(&buf[bp + 2]); in lws_fts_cache_chunktable() [all …]
|
D | trie.c | 171 if (bp && ((uint32_t)bp >= (sizeof(buf) - (size_t)(margin)) || (force))) { \ 172 if ((int)write(t->fd, buf, (size_t)bp) != bp) { \ 174 bp, errno); \ 177 t->c += (unsigned int)bp; \ 178 bp = 0; \ 401 int bp = 0; in finalize_per_input() local 403 bp += g16(&buf[bp], 0); in finalize_per_input() 404 bp += g16(&buf[bp], 0); in finalize_per_input() 405 bp += g32(&buf[bp], 0); in finalize_per_input() 406 if ((int)write(t->fd, buf, (size_t)bp) != bp) in finalize_per_input() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | mqcenc.c | 34 if (*mqc->bp == 0xff){ in byteout() 35 mqc->bp++; in byteout() 36 *mqc->bp = mqc->c >> 20; in byteout() 40 (*mqc->bp)++; in byteout() 44 mqc->bp++; in byteout() 45 *mqc->bp = mqc->c >> 19; in byteout() 69 void ff_mqc_initenc(MqcState *mqc, uint8_t *bp) in ff_mqc_initenc() argument 74 mqc->bp = bp-1; in ff_mqc_initenc() 75 mqc->bpstart = bp; in ff_mqc_initenc() 76 mqc->ct = 12 + (*mqc->bp == 0xff); in ff_mqc_initenc() [all …]
|
/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format.cc | 247 if (const char* const bp = dp) { in ParseInt() local 264 if (dp != bp && !erange && (neg || value != kmin)) { in ParseInt() 343 char* bp; // works back from ep in format() local 393 bp = Format64(ep, 0, al.cs.year()); in format() 394 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() 397 bp = Format02d(ep, al.cs.month()); in format() 398 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() 402 bp = Format02d(ep, al.cs.day()); in format() 403 if (*cur == 'e' && *bp == '0') *bp = ' '; // for Windows in format() 404 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format.cc | 247 if (const char* const bp = dp) { in ParseInt() local 264 if (dp != bp && !erange && (neg || value != kmin)) { in ParseInt() 343 char* bp; // works back from ep in format() local 393 bp = Format64(ep, 0, al.cs.year()); in format() 394 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() 397 bp = Format02d(ep, al.cs.month()); in format() 398 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() 402 bp = Format02d(ep, al.cs.day()); in format() 403 if (*cur == 'e' && *bp == '0') *bp = ' '; // for Windows in format() 404 result.append(bp, static_cast<std::size_t>(ep - bp)); in format() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_nl80211_android.c | 81 int ret = 0, i = 0, bp; in android_pno_start() local 84 bp = WEXT_PNOSETUP_HEADER_SIZE; in android_pno_start() 85 os_memcpy(buf, WEXT_PNOSETUP_HEADER, bp); in android_pno_start() 86 buf[bp++] = WEXT_PNO_TLV_PREFIX; in android_pno_start() 87 buf[bp++] = WEXT_PNO_TLV_VERSION; in android_pno_start() 88 buf[bp++] = WEXT_PNO_TLV_SUBVERSION; in android_pno_start() 89 buf[bp++] = WEXT_PNO_TLV_RESERVED; in android_pno_start() 94 if ((bp + WEXT_PNO_SSID_HEADER_SIZE + MAX_SSID_LEN + in android_pno_start() 100 buf[bp++] = WEXT_PNO_SSID_SECTION; in android_pno_start() 101 buf[bp++] = params->ssids[i].ssid_len; in android_pno_start() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_nl80211_android.c | 81 int ret = 0, i = 0, bp; in android_pno_start() local 84 bp = WEXT_PNOSETUP_HEADER_SIZE; in android_pno_start() 85 os_memcpy(buf, WEXT_PNOSETUP_HEADER, bp); in android_pno_start() 86 buf[bp++] = WEXT_PNO_TLV_PREFIX; in android_pno_start() 87 buf[bp++] = WEXT_PNO_TLV_VERSION; in android_pno_start() 88 buf[bp++] = WEXT_PNO_TLV_SUBVERSION; in android_pno_start() 89 buf[bp++] = WEXT_PNO_TLV_RESERVED; in android_pno_start() 94 if ((bp + WEXT_PNO_SSID_HEADER_SIZE + MAX_SSID_LEN + in android_pno_start() 100 buf[bp++] = WEXT_PNO_SSID_SECTION; in android_pno_start() 101 buf[bp++] = params->ssids[i].ssid_len; in android_pno_start() [all …]
|
/third_party/boost/boost/geometry/geometries/adapted/boost_polygon/ |
D | holes_proxy.hpp | 25 namespace adapt { namespace bp namespace 101 inline typename boost::geometry::adapt::bp::holes_proxy<Polygon const>::iterator_type 102 range_begin(boost::geometry::adapt::bp::holes_proxy<Polygon const> const& proxy) in range_begin() 104 typename boost::geometry::adapt::bp::holes_proxy<Polygon const>::iterator_type in range_begin() 110 inline typename boost::geometry::adapt::bp::holes_proxy<Polygon const>::iterator_type 111 range_end(boost::geometry::adapt::bp::holes_proxy<Polygon const> const& proxy) in range_end() 113 typename boost::geometry::adapt::bp::holes_proxy<Polygon const>::iterator_type in range_end() 120 inline typename boost::geometry::adapt::bp::holes_proxy<Polygon>::iterator_type 121 range_begin(boost::geometry::adapt::bp::holes_proxy<Polygon>& proxy) in range_begin() 123 typename boost::geometry::adapt::bp::holes_proxy<Polygon>::iterator_type in range_begin() [all …]
|
/third_party/openssl/crypto/x509v3/ |
D | v3_admis.c | 55 BIO *bp, int ind); 73 BIO *bp, int ind) in i2r_NAMING_AUTHORITY() argument 85 if (BIO_printf(bp, "%*snamingAuthority: ", ind, "") <= 0) in i2r_NAMING_AUTHORITY() 92 if (BIO_printf(bp, "%*s admissionAuthorityId: ", ind, "") <= 0) in i2r_NAMING_AUTHORITY() 97 if (BIO_printf(bp, "%s%s%s%s\n", ln ? ln : "", in i2r_NAMING_AUTHORITY() 102 if (BIO_printf(bp, "%*s namingAuthorityText: ", ind, "") <= 0 in i2r_NAMING_AUTHORITY() 103 || ASN1_STRING_print(bp, namingAuthority->namingAuthorityText) <= 0 in i2r_NAMING_AUTHORITY() 104 || BIO_printf(bp, "\n") <= 0) in i2r_NAMING_AUTHORITY() 108 if (BIO_printf(bp, "%*s namingAuthorityUrl: ", ind, "") <= 0 in i2r_NAMING_AUTHORITY() 109 || ASN1_STRING_print(bp, namingAuthority->namingAuthorityUrl) <= 0 in i2r_NAMING_AUTHORITY() [all …]
|