/reactos/sdk/lib/3rdparty/libxml2/ |
H A D | buf.c | 61 if (buf->size < INT_MAX) buf->compat_size = buf->size; \ 63 if (buf->use < INT_MAX) buf->compat_use = buf->use; \ 77 buf->use = buf->compat_use; 95 if ((buf) && (buf->error == 0)) in xmlBufMemoryError() 110 if ((buf) && (buf->error == 0)) in xmlBufOverflowError() 404 memmove(buf->contentIO, &buf->content[0], buf->use); in xmlBufShrink() 406 buf->content[buf->use] = 0; in xmlBufShrink() 411 memmove(buf->content, &buf->content[len], buf->use); in xmlBufShrink() 412 buf->content[buf->use] = 0; in xmlBufShrink() 661 return((buf->size > buf->use) ? (buf->size - buf->use - 1) : 0); in xmlBufAvail() [all …]
|
H A D | xmlsave.c | 560 xmlOutputBufferPtr buf = ctxt->buf; in xmlSaveSwitchEncoding() local 584 xmlOutputBufferPtr buf = ctxt->buf; in xmlSaveClearEncoding() local 717 buf = ctxt->buf; in xmlDtdDumpOutput() 769 buf = ctxt->buf; in xmlAttrDumpOutput() 860 buf = ctxt->buf; in xmlNodeDumpOutputInternal() 1360 buf = ctxt->buf; in xhtmlAttrListDumpOutput() 2328 ctxt.buf = buf; in xmlNodeDumpOutput() 2531 ctxt.buf = buf; in xmlDocFormatDump() 2580 ctxt.buf = buf; in xmlSaveFileTo() 2619 ctxt.buf = buf; in xmlSaveFormatFileTo() [all …]
|
H A D | HTMLtree.c | 412 if (buf == NULL) { in htmlBufNodeDumpFormat() 421 outbuf->buffer = buf; in htmlBufNodeDumpFormat() 428 use = xmlBufUse(buf); in htmlBufNodeDumpFormat() 485 xmlOutputBufferPtr buf; in htmlNodeDumpFileFormat() local 548 xmlOutputBufferPtr buf; in htmlDocDumpMemoryFormat() local 585 if (buf == NULL) { in htmlDocDumpMemoryFormat() 593 xmlOutputBufferFlush(buf); in htmlDocDumpMemoryFormat() 594 if (buf->conv != NULL) { in htmlDocDumpMemoryFormat() 1031 xmlOutputBufferPtr buf; in htmlDocDump() local 1082 xmlOutputBufferPtr buf; in htmlSaveFile() local [all …]
|
/reactos/dll/3rdparty/mbedtls/ |
H A D | error.c | 241 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument 249 memset( buf, 0x00, buflen ); in mbedtls_strerror() 604 if( strlen( buf ) == 0 ) in mbedtls_strerror() 616 len = strlen( buf ); in mbedtls_strerror() 623 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror() 625 buf += len + 3; in mbedtls_strerror() 652 mbedtls_snprintf( buf, buflen, "ARIA - Bad input data" ); in mbedtls_strerror() 849 mbedtls_snprintf( buf, buflen, "NET - Input invalid" ); in mbedtls_strerror() 923 if( strlen( buf ) != 0 ) in mbedtls_strerror() 934 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument [all …]
|
H A D | x509write_crt.c | 180 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_basic_constraints() 183 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_basic_constraints() 214 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_subject_key_identifier() 217 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_subject_key_identifier() 222 buf + sizeof( buf ) - 20 ); in mbedtls_x509write_crt_set_subject_key_identifier() 225 c = buf + sizeof( buf ) - 20; in mbedtls_x509write_crt_set_subject_key_identifier() 235 0, buf + sizeof(buf) - len, len ); in mbedtls_x509write_crt_set_subject_key_identifier() 242 unsigned char *c = buf + sizeof( buf ); in mbedtls_x509write_crt_set_authority_key_identifier() 245 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_authority_key_identifier() 253 c = buf + sizeof( buf ) - 20; in mbedtls_x509write_crt_set_authority_key_identifier() [all …]
|
/reactos/dll/directx/wine/d3dxof/ |
H A D | parsing.c | 870 buf->current_token = parse_TOKEN(buf); in get_TOKEN() 880 buf->current_token = parse_TOKEN(buf); in check_TOKEN() 1143 xtemplate* pt = buf->pxt[buf->level]; in parse_object_members_list() 1180 buf->pxt[buf->level] = &buf->pdxf->xtemplates[j]; in parse_object_members_list() 1210 *(WORD *)(buf->pdata + buf->cur_pos_data) = *(DWORD *)buf->value; in parse_object_members_list() 1302 buf->pxo->size = buf->cur_pos_data - buf->pxo->pos_data; in parse_object_parts() 1336 buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects++]; in parse_object_parts() 1351 …buf->pxo = buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects… in parse_object_parts() 1383 buf->pxo->pos_data = buf->cur_pos_data; in parse_object() 1386 buf->pxo->root = buf->pxo_tab; in parse_object() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/api/ |
H A D | netbuf.c | 68 if (buf != NULL) { in netbuf_new() 71 return buf; in netbuf_new() 83 if (buf != NULL) { in netbuf_delete() 86 buf->p = buf->ptr = NULL; in netbuf_delete() 116 buf->ptr = buf->p; in netbuf_alloc() 133 buf->p = buf->ptr = NULL; in netbuf_free() 135 buf->flags = 0; in netbuf_free() 163 buf->p->len = buf->p->tot_len = size; in netbuf_ref() 164 buf->ptr = buf->p; in netbuf_ref() 228 buf->ptr = buf->ptr->next; in netbuf_next() [all …]
|
/reactos/modules/rostests/winetests/winmm/ |
H A D | mci.c | 179 memset(buf, 0, sizeof(buf)); in test_mciParser() 391 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 436 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 448 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 458 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 469 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 480 memset(buf, 0, sizeof(buf)); in test_openCloseWAVE() 500 buf[0] = 'M'; buf[1] = 0; in test_openCloseWAVE() 518 buf[0] = 0; buf[1] = 'A'; buf[2] = 'j'; buf[3] = 0; in test_openCloseWAVE() 528 buf[0] = 'K'; buf[1] = 0; in test_openCloseWAVE() [all …]
|
H A D | mcicda.c | 97 char buf[1024]; in test_play() local 98 memset(buf, 0, sizeof(buf)); in test_play() 131 err = mciSendStringA("capability c", buf, sizeof(buf), NULL); in test_play() 214 err = mciSendStringA("info c upc", buf, sizeof(buf), hwnd); in test_play() 238 …if(!err) todo_wine ok(!strcmp(buf, "00:02:00") || !strcmp(buf, "00:02:33") || !strcmp(buf, "00:03:… in test_play() 244 if(!err) ok(!strcmp(buf, "00:02:00") || !strcmp(buf, "00:02:33") || !strcmp(buf, "00:03:00"), in test_play() 256 err = mciSendStringA("resume c", buf, sizeof(buf), hwnd); in test_play() 261 err = mciSendStringA("seek c wait", buf, sizeof(buf), hwnd); in test_play() 292 memset(buf, 0, sizeof(buf)); in test_play() 438 err = mciSendStringA("pause c", buf, sizeof(buf), hwnd); in test_play() [all …]
|
/reactos/modules/rostests/winetests/kernel32/ |
H A D | profile.c | 273 memset(buf, 0xc, sizeof(buf)); in test_profile_sections_names() 283 memset(buf, 0xc, sizeof(buf)); in test_profile_sections_names() 295 memset(buf, 0xc, sizeof(buf)); in test_profile_sections_names() 306 memset(buf, 0xc, sizeof(buf)); in test_profile_sections_names() 627 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() 635 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() 646 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() 655 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() 666 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() 677 memset(buf, 0xc,sizeof(buf)); in test_GetPrivateProfileString() [all …]
|
/reactos/dll/win32/hhctrl.ocx/ |
H A D | stream.c | 29 buf->len = 0; in strbuf_init() 30 buf->buf = heap_alloc(buf->size); in strbuf_init() 35 buf->len = 0; in strbuf_zero() 40 heap_free(buf->buf); in strbuf_free() 45 if(buf->len+len > buf->size) { in strbuf_append() 46 buf->size = buf->len+len; in strbuf_append() 47 buf->buf = heap_realloc(buf->buf, buf->size); in strbuf_append() 50 memcpy(buf->buf+buf->len, data, len); in strbuf_append() 97 strbuf_append(name, node->buf+1, ptr-node->buf-1); in get_node_name() 124 p = &buf->buf[b]; in find_node_end() [all …]
|
/reactos/modules/rostests/winetests/mshtml/ |
H A D | protocol.c | 438 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol() 444 URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_res_protocol() 471 memset(buf, '?', sizeof(buf)); in test_res_protocol() 478 memset(buf, '?', sizeof(buf)); in test_res_protocol() 489 memset(buf, '?', sizeof(buf)); in test_res_protocol() 750 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_about_protocol() 798 memset(buf, '?', sizeof(buf)); in test_about_protocol() 805 memset(buf, '?', sizeof(buf)); in test_about_protocol() 874 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); in test_javascript_protocol() 895 memset(buf, '?', sizeof(buf)); in test_javascript_protocol() [all …]
|
/reactos/modules/rostests/winetests/wmiutils/ |
H A D | path.c | 194 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 209 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 216 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 231 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 238 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 245 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 252 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 259 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 287 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() 297 memset( buf, 0x55, sizeof(buf) ); in test_IWbemPath_GetText() [all …]
|
/reactos/sdk/lib/3rdparty/stlport/test/eh/ |
H A D | test_algo.cpp | 113 for ( const SortClass* p = buf.begin(); p != buf.end(); p++ ) in operator ()() 160 for ( const SortClass* p = buf.begin(); p != buf.end(); p++ ) in assert_sorted_version() 182 : orig( buf ) { in test_stable_sort_1() 188 EH_STD::stable_sort( buf.begin(), buf.end() ); in operator ()() 199 : orig( buf ) { in test_stable_sort_2() 222 … EH_STD::inplace_merge( buf.begin(), buf.begin() + ( buf.end() - buf.begin() )/2, buf.end() ); in operator ()() 239 EH_STD::inplace_merge( buf.begin(), buf.begin() + ( buf.end() - buf.begin() )/2, buf.end(), in operator ()() 257 SortBuffer buf; in test_algo() local 258 WeakCheck( buf, test_stable_sort_1( buf ) ); in test_algo() 259 WeakCheck( buf, test_stable_sort_2( buf ) ); in test_algo() [all …]
|
/reactos/win32ss/drivers/font/ftfd/ |
H A D | sprintf.c | 136 ++buf; in number() 142 ++buf; in number() 149 ++buf; in number() 152 ++buf; in number() 166 ++buf; in number() 171 ++buf; in number() 176 ++buf; in number() 244 ++buf; in numberf() 270 ++buf; in numberf() 275 ++buf; in numberf() [all …]
|
/reactos/modules/rostests/winetests/reg/ |
H A D | query.c | 35 buf[len] = 0; in read_from_pipe() 204 BYTE buf[512]; in test_query() local 220 read_reg_output("reg query HKCU\\" KEY_BASE, buf, sizeof(buf), &r); in test_query() 240 read_reg_output("reg query HKCU\\" KEY_BASE, buf, sizeof(buf), &r); in test_query() 262 read_reg_output("reg query HKCU\\" KEY_BASE " /s", buf, sizeof(buf), &r); in test_query() 266 read_reg_output("reg query HKCU\\" KEY_BASE "\\ /s", buf, sizeof(buf), &r); in test_query() 297 read_reg_output("reg query HKCU\\" KEY_BASE, buf, sizeof(buf), &r); in test_query() 301 read_reg_output("reg query HKCU\\" KEY_BASE " /s", buf, sizeof(buf), &r); in test_query() 357 BYTE buf[512]; 405 BYTE buf[512]; [all …]
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | netbuf.h | 90 #define netbuf_copy(buf,dataptr,len) netbuf_copy_partial(buf, dataptr, len, 0) argument 91 #define netbuf_take(buf, dataptr, len) pbuf_take((buf)->p, dataptr, len) argument 92 #define netbuf_len(buf) ((buf)->p->tot_len) argument 93 #define netbuf_fromaddr(buf) (&((buf)->addr)) argument 94 #define netbuf_set_fromaddr(buf, fromaddr) ip_addr_set(&((buf)->addr), fromaddr) argument 95 #define netbuf_fromport(buf) ((buf)->port) argument 97 #define netbuf_destaddr(buf) (&((buf)->toaddr)) argument 98 #define netbuf_set_destaddr(buf, destaddr) ip_addr_set(&((buf)->toaddr), destaddr) argument 100 #define netbuf_destport(buf) (((buf)->flags & NETBUF_FLAG_DESTADDR) ? (buf)->toport_chksum … argument 102 #define netbuf_destport(buf) ((buf)->toport_chksum) argument [all …]
|
/reactos/sdk/lib/3rdparty/stlport/src/ |
H A D | num_put_float.cpp | 361 strcpy(buf, _Stl_ecvtR(x, n, pt, sign)); return buf; in _Stl_ecvtR() 365 strcpy(buf, _Stl_fcvtR(x, n, pt, sign)); return buf; in _Stl_fcvtR() 370 strcpy(buf, _Stl_ecvtR(x, n, pt, sign)); return buf; in _Stl_ecvtR() 374 strcpy(buf, _Stl_fcvtR(x, n, pt, sign)); return buf; in _Stl_fcvtR() 417 if (buf[i] >= '0' && buf[i] <= '9') { in _Stl_ecvtR() 420 buf[i - offset] = buf[i]; in _Stl_ecvtR() 433 if (buf[i] >= '0' && buf[i] <= '9') { in _Stl_ecvtR() 438 return buf; in _Stl_ecvtR() 456 if (buf[i] >= '0' && buf[i] <= '9') { in _Stl_fcvtR() 459 buf[i - offset] = buf[i]; in _Stl_fcvtR() [all …]
|
/reactos/sdk/lib/crt/stdio/ |
H A D | stat64.c | 63 buf->st_dev = buf->st_rdev = _getdrive() - 1; in _tstat64() 88 buf->st_nlink = 1; in _tstat64() 93 buf->st_mtime = buf->st_ctime = dw; in _tstat64() 94 TRACE("%d %d 0x%08x%08x %d %d %d\n", buf->st_mode,buf->st_nlink, in _tstat64() 95 (int)(buf->st_size >> 32),(int)buf->st_size, in _tstat64() 96 (int)buf->st_atime,(int)buf->st_mtime,(int)buf->st_ctime); in _tstat64() 116 if (!buf) in _fstat64() 129 buf->st_dev = buf->st_rdev = fd; in _fstat64() 135 buf->st_dev = buf->st_rdev = fd; in _fstat64() 155 buf->st_mtime = buf->st_ctime = dw; in _fstat64() [all …]
|
/reactos/modules/rostests/winetests/wintrust/ |
H A D | asn.c | 39 LPBYTE buf; in test_encodeSPCFinancialCriteria() local 121 LPBYTE buf; in test_encodeSPCLink() local 320 LPBYTE buf; in test_encodeSPCPEImage() local 551 LPBYTE buf; in test_encodeCatMemberInfo() local 600 LPBYTE buf; in test_decodeCatMemberInfo() local 666 LPBYTE buf; in test_encodeCatNameValue() local 722 LPBYTE buf; in test_decodeCatNameValue() local 726 buf = NULL; in test_decodeCatNameValue() 741 buf = NULL; in test_decodeCatNameValue() 757 buf = NULL; in test_decodeCatNameValue() [all …]
|
/reactos/modules/rostests/winetests/gdiplus/ |
H A D | region.c | 135 memset(buf, 0xee, sizeof(buf)); in test_region_data() 177 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 184 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 202 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 220 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 245 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 301 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 364 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 399 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() 444 memset(buf, 0xee, sizeof(buf)); in test_getregiondata() [all …]
|
/reactos/base/applications/network/telnet/src/ |
H A D | tmapldr.cpp | 60 memmove(buf+len, buf+len+1, strlen(buf+len)); in getline() 64 if (buf[0] == ' ') memmove(buf, buf+1, size-1); in getline() 67 if ((buf[0]==0)||(buf[0]==';')) continue; in getline() 72 if ((buf[len] == '/') && (buf[len + 1] == '/')) buf[len] = 0; in getline() 218 if ( buf[0] == '[' && buf[buf.length()-1] == ']' ) { in normalizeSplitter() 226 while ( buf[buf.length()-2] == ' ' ) in normalizeSplitter() 229 buf.erase(buf.length()-2,1); in normalizeSplitter() 231 buf.remove(buf.length()-2,1); in normalizeSplitter() 484 if ( buf[0] == '[' && buf[bufLen-1] == ']' ) { in Load() 554 getline(inpfile, buf, sizeof(buf)); in Load() [all …]
|
/reactos/dll/win32/mshtml/ |
H A D | htmlelemcol.c | 58 buf->buf = heap_realloc(buf->buf, buf->size*sizeof(HTMLElement*)); in elem_vector_add() 61 buf->buf[buf->len++] = elem; in elem_vector_add() 67 heap_free(buf->buf); in elem_vector_normalize() 68 buf->buf = NULL; in elem_vector_normalize() 70 buf->buf = heap_realloc(buf->buf, buf->len*sizeof(HTMLElement*)); in elem_vector_normalize() 73 buf->size = buf->len; in elem_vector_normalize() 699 buf.buf = NULL; in create_collection_from_nodelist() 729 buf.buf = NULL; in create_collection_from_htmlcol() 786 buf.buf = heap_alloc(buf.size*sizeof(*buf.buf)); in get_elem_source_index() 787 if(!buf.buf) { in get_elem_source_index() [all …]
|
/reactos/modules/rostests/winetests/msi/ |
H A D | record.c | 56 char buf[10]; in test_msirecord() local 132 buf[0] = 0; in test_msirecord() 185 buf[0]=0; in test_msirecord() 191 buf[0]=0; in test_msirecord() 199 buf[0]=0; in test_msirecord() 221 memset(buf, 0, sizeof buf); in test_msirecord() 304 buf[0]=0; in test_msirecord() 311 buf[0]=0; in test_msirecord() 320 buf[0]=0; in test_msirecord() 373 memset(buf,0,sizeof buf); in test_msirecord() [all …]
|
/reactos/modules/rostests/apitests/netshell/ |
H A D | NcIsValidConnectionName.c | 37 WCHAR buf[3] = { 0 }; in test_BadLetters() local 42 buf[0] = (WCHAR)i; in test_BadLetters() 43 buf[1] = buf[2] = L'\0'; in test_BadLetters() 47 ret = pNcIsValidConnectionName(buf); in test_BadLetters() 51 buf[1] = (WCHAR)i; in test_BadLetters() 52 ret = pNcIsValidConnectionName(buf); in test_BadLetters() 56 buf[1] = L' '; in test_BadLetters() 62 buf[1] = L'a'; in test_BadLetters() 74 buf[1] = (WCHAR)i; in test_BadLetters() 78 buf[1] = L'a'; in test_BadLetters() [all …]
|