Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 48) sorted by relevance

12

/reactos/drivers/network/tcpip/lwip/src/netif/ppp/
H A Dpppos.c204 struct pbuf *nb; in pppos_write() local
213 if (nb == NULL) { in pppos_write()
223 nb->len = 0; in pppos_write()
265 if (nb == NULL) { in pppos_netif_output()
274 nb->len = 0; in pppos_netif_output()
882 nb->len = 0; in pppos_output_append()
892 *((u8_t*)nb->payload + nb->len++) = PPP_ESCAPE; in pppos_output_append()
893 *((u8_t*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppos_output_append()
895 *((u8_t*)nb->payload + nb->len++) = c; in pppos_output_append()
928 pbuf_free(nb); in pppos_output_last()
[all …]
H A Dvj.c459 vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp) in vj_uncompress_uncomp() argument
465 ip = (struct ip_hdr *)nb->payload; in vj_uncompress_uncomp()
468 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
470 > nb->len in vj_uncompress_uncomp()
473 IPH_PROTO(ip), hlen, nb->len)); in vj_uncompress_uncomp()
482 MEMCPY(&cs->cs_hdr, nb->payload, hlen); in vj_uncompress_uncomp()
497 vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp) in vj_uncompress_tcp() argument
503 struct pbuf *n0 = *nb; in vj_uncompress_tcp()
676 *nb = n0; in vj_uncompress_tcp()
H A Dccp.c1112 int nb; in ccp_reqci() local
1242 ho->deflate_size = nb = DEFLATE_SIZE(p[2]); in ccp_reqci()
1245 || nb > ao->deflate_size || nb < DEFLATE_MIN_WORKS) { in ccp_reqci()
1266 if (res < 0 || nb == DEFLATE_MIN_WORKS || dont_nak) { in ccp_reqci()
1272 --nb; in ccp_reqci()
1273 p[2] = DEFLATE_MAKE_OPT(nb); in ccp_reqci()
1286 ho->bsd_bits = nb = BSD_NBITS(p[2]); in ccp_reqci()
1288 || nb > ao->bsd_bits || nb < BSD_MIN_BITS) { in ccp_reqci()
1308 if (res < 0 || nb == BSD_MIN_BITS || dont_nak) { in ccp_reqci()
1315 --nb; in ccp_reqci()
[all …]
H A Dutils.c741 ssize_t nb;
745 nb = read(fd, ptr, count - done);
746 if (nb < 0) {
751 if (nb == 0)
753 done += nb;
754 ptr += nb;
/reactos/sdk/lib/rossym_new/
H A Ddwarfget.c193 int nb, c; in dwarfget128s() local
198 nb = 0; in dwarfget128s()
203 v |= (c & 0x7F)<<nb; in dwarfget128s()
204 nb += 7; in dwarfget128s()
208 if(v&(1<<(nb-1))) in dwarfget128s()
209 v |= ~(((ulong)1<<nb)-1); in dwarfget128s()
210 if(nb > 8*sizeof(ulong)){ in dwarfget128s()
213 werrstr("dwarf: overflow during parsing of sleb128 integer: got %d bits", nb); in dwarfget128s()
/reactos/sdk/lib/rossym/
H A Ddwarfget.c199 int nb, c; in dwarfget128s() local
204 nb = 0; in dwarfget128s()
209 v |= (c & 0x7F)<<nb; in dwarfget128s()
210 nb += 7; in dwarfget128s()
214 if(v&(1<<(nb-1))) in dwarfget128s()
215 v |= ~(((ulong)1<<nb)-1); in dwarfget128s()
216 if(nb > 8*sizeof(ulong)){ in dwarfget128s()
219 werrstr("dwarf: overflow during parsing of sleb128 integer: got %d bits", nb); in dwarfget128s()
/reactos/modules/rosapps/applications/net/ncftp/ncftp/
H A Dbookmark.c526 int i, nb; in LoadBookmarkTable() local
529 infp = OpenBookmarkFile(&nb); in LoadBookmarkTable()
531 nb = 0; in LoadBookmarkTable()
533 if ((nb != gNumBookmarks) && (gBookmarkTable != NULL)) { in LoadBookmarkTable()
546 for (i=0; i<nb; i++) { in LoadBookmarkTable()
666 OpenTmpBookmarkFile(int nb) in OpenTmpBookmarkFile() argument
687 if (nb > 0) { in OpenTmpBookmarkFile()
714 int nb; in SaveBookmarkTable() local
720 for (i=0, nb=0; i<gNumBookmarks; i++) { in SaveBookmarkTable()
722 nb++; in SaveBookmarkTable()
[all …]
/reactos/dll/3rdparty/libtiff/
H A Dtif_dirwrite.c868 for (na=0, nb=dir; ; na++, nb++) in TIFFWriteDirectorySec()
1221 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1273 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1322 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++) in TIFFWriteDirectoryTagShortPerSample()
1373 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1423 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1475 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1605 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1654 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
2579 nb=(uint32)nb; in TIFFWriteDirectoryTagData()
[all …]
H A Dtif_ojpeg.c1469 uint8* nb; in OJPEGReadHeaderInfoSecStreamDqt() local
1493 if (nb==0) in OJPEGReadHeaderInfoSecStreamDqt()
1498 *(uint32*)nb=na; in OJPEGReadHeaderInfoSecStreamDqt()
1504 _TIFFfree(nb); in OJPEGReadHeaderInfoSecStreamDqt()
1511 _TIFFfree(nb); in OJPEGReadHeaderInfoSecStreamDqt()
1516 sp->qtable[o]=nb; in OJPEGReadHeaderInfoSecStreamDqt()
1532 uint8* nb; in OJPEGReadHeaderInfoSecStreamDht() local
1549 nb=_TIFFmalloc(na); in OJPEGReadHeaderInfoSecStreamDht()
1550 if (nb==0) in OJPEGReadHeaderInfoSecStreamDht()
1555 *(uint32*)nb=na; in OJPEGReadHeaderInfoSecStreamDht()
[all …]
/reactos/sdk/lib/3rdparty/adns/src/
H A Dgeneral.c117 void *nb; in adns__vbuf_ensure() local
120 nb= realloc(vb->buf, (size_t) want); if (!nb) return 0; in adns__vbuf_ensure()
121 vb->buf= nb; in adns__vbuf_ensure()
133 void *nb; in adns__vbuf_append() local
139 nb= realloc(vb->buf,(size_t) newlen); in adns__vbuf_append()
140 if (!nb) { newlen= vb->used+len; nb= realloc(vb->buf, (size_t) newlen); } in adns__vbuf_append()
141 if (!nb) return 0; in adns__vbuf_append()
142 vb->buf= nb; in adns__vbuf_append()
/reactos/dll/3rdparty/libtirpc/src/
H A Drpc_generic.c951 __rpc_set_netbuf(struct netbuf *nb, const void *ptr, size_t len) argument
953 if (nb->len != len) {
954 if (nb->len)
955 mem_free(nb->buf, nb->len);
956 nb->buf = mem_alloc(len);
957 if (nb->buf == NULL)
960 nb->maxlen = nb->len = len;
962 memcpy(nb->buf, ptr, len);
963 return nb;
/reactos/dll/3rdparty/libxslt/
H A Dxsltutils.c1987 int nb, i,j,k,l; in xsltSaveProfiling() local
2001 nb = 0; in xsltSaveProfiling()
2011 if (nb >= max) in xsltSaveProfiling()
2015 templates[nb++] = templ1; in xsltSaveProfiling()
2041 for (i = 0;i < nb;i++) { in xsltSaveProfiling()
2084 for (i = 0; i < nb; i++) { in xsltSaveProfiling()
2101 for (i = 0; i < nb; i++) { in xsltSaveProfiling()
2165 for (i = 0; i < nb; i++) { in xsltSaveProfiling()
2215 int nb = 0, max = 0, i, j; in xsltGetProfileInformation() local
2223 nb = 0; in xsltGetProfileInformation()
[all …]
/reactos/drivers/network/tcpip/lwip/src/include/netif/ppp/
H A Dvj.h160 extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp);
161 extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp);
/reactos/sdk/lib/3rdparty/stlport/test/unit/
H A Dfstream_test.cpp740 streamoff nb = 1; in big_file() local
744 CPPUNIT_ASSERT( (nb << 1) > nb ); in big_file()
745 nb <<= 1; in big_file()
747 CPPUNIT_ASSERT( nb * CHECK_BIG_FILE >= nb ); in big_file()
748 nb *= CHECK_BIG_FILE; in big_file()
752 for (streamoff index = 0; index < nb; ++index) { in big_file()
/reactos/dll/win32/kernel32/winnls/nls/
H A Dnor.nls109 LOCALE_SISO639LANGNAME "nb"
130 LOCALE_SNAME "nb-NO"
145 LOCALE_SPARENT "nb"
/reactos/sdk/lib/3rdparty/libxml2/
H A Dxmlmemory.c673 int nb = 0; in xmlMemDisplayLast() local
712 nb++; in xmlMemDisplayLast()
713 if (nb < 100) in xmlMemDisplayLast()
744 int nb = 0; in xmlMemDisplay() local
789 nb++; in xmlMemDisplay()
790 if (nb < 100) in xmlMemDisplay()
H A Dxmlregexp.c4288 int nb = 0; in xmlRegExecGetValues() local
4321 values[nb++] = comp->stringMap[i]; in xmlRegExecGetValues()
4330 values[nb++] = comp->stringMap[i]; in xmlRegExecGetValues()
4489 int nb = 5; in testerr() local
7112 for (tmp = 0;tmp < nb;tmp++) in xmlExpGetLanguageInt()
7115 if (nb >= len) in xmlExpGetLanguageInt()
7117 list[nb] = exp->exp_str; in xmlExpGetLanguageInt()
7167 for (tmp = 0;tmp < nb;tmp++) in xmlExpGetStartInt()
7170 if (nb >= len) in xmlExpGetStartInt()
7172 list[nb] = exp->exp_str; in xmlExpGetStartInt()
[all …]
/reactos/drivers/filesystems/btrfs/
H A Dcreate.c325 name_bit* nb; in split_path() local
357 if (!nb) { in split_path()
363 nb->us.Buffer = buf; in split_path()
372 if (!nb) { in split_path()
378 nb->us.Buffer = buf; in split_path()
379 nb->us.Length = nb->us.MaximumLength = (USHORT)(&path->Buffer[i] - buf) * sizeof(WCHAR); in split_path()
411 nb->us.MaximumLength = nb->us.Length; in split_path()
413 nb = nb2; in split_path()
421 …if (nb->us.Length >= dsus.Length && RtlCompareMemory(&nb->us.Buffer[(nb->us.Length - dsus.Length)/… in split_path()
424 if (nb->us.Length == 0) { in split_path()
[all …]
/reactos/modules/rostests/winetests/usp10/
H A Dusp10.c1367 int nb, outnItems; in test_ScriptShapeOpenType() local
1844 int nb, i, j; in test_ScriptShape() local
1880 ok(nb == 4, "Wrong number of items\n"); in test_ScriptShape()
2020 ok(nb == 1, "%s: expected 1, got %d\n", lf.lfFaceName, nb); in test_ScriptShape()
2033 lf.lfFaceName, c, nb); in test_ScriptShape()
2040 ok(nb == 3, "%s: [%02x] expected 3, got %d\n", lf.lfFaceName, c, nb); in test_ScriptShape()
2053 ok(nb == 3, "%s: [%02x] expected 1, got %d\n", lf.lfFaceName, c, nb); in test_ScriptShape()
2077 nb = 0; in test_ScriptShape()
2084 nb = 0; in test_ScriptShape()
2088 ok(nb == 1, "Unexpected glyph count %u\n", nb); in test_ScriptShape()
[all …]
/reactos/dll/3rdparty/libjpeg/
H A Djdhuff.c169 { register int nb, look; \
174 nb = 1; goto slowlabel; \
178 if ((nb = htbl->look_nbits[look]) != 0) { \
179 DROP_BITS(nb); \
182 nb = HUFF_LOOKAHEAD+1; \
184 if ((result=jpeg_huff_decode(&state,get_buffer,bits_left,htbl,nb)) < 0) \
/reactos/sdk/lib/3rdparty/libmpg123/
H A Dparse.c287 char nb[10]; in check_lame_tag() local
290 memcpy(nb, fr->bsbuf+lame_offset, 9); in check_lame_tag()
291 nb[9] = 0; in check_lame_tag()
292 if(VERBOSE3) fprintf(stderr, "Note: Info: Encoder: %s\n", nb); in check_lame_tag()
293 if(!strncmp("LAME", nb, 4)) in check_lame_tag()
301 if(sscanf(nb+4, "%u.%u%s", &major, &minor, rest) >= 2) in check_lame_tag()
/reactos/dll/win32/ole32/
H A Dfilemoniker.c1346 int nb=0,i; in FileMonikerImpl_Construct() local
1368 nb=FileMonikerImpl_DecomposePath(This->filePathName,&tabStr); in FileMonikerImpl_Construct()
1370 if (nb > 0 ){ in FileMonikerImpl_Construct()
1376 for(i=0;i<nb;i++){ in FileMonikerImpl_Construct()
1384 if (wcscmp(tabStr[i],bkSlash)==0 && i<nb-1 && wcscmp(tabStr[i+1],bkSlash)==0){ in FileMonikerImpl_Construct()
1392 if (wcscmp(tabStr[nb-1],bkSlash)==0) in FileMonikerImpl_Construct()
/reactos/dll/shellext/shellbtrfs/
H A Dmain.cpp66 wstring t, bytes, kb, nb; in format_size() local
77 nb = to_wstring(size); in format_size()
80 nb = wstring(buffer); in format_size()
113 GetNumberFormatW(LOCALE_USER_DEFAULT, 0, nb.c_str(), &fmt, nb2, sizeof(nb2) / sizeof(WCHAR)); in format_size()
/reactos/dll/directx/wine/d3dxof/
H A Dmszip.c425 cab_ULONG nb; /* number of bit length codes */ in fdi_Zipinflate_dynamic() local
444 nb = 4 + (b & 0xf); /* number of bit length codes */ in fdi_Zipinflate_dynamic()
450 for(j = 0; j < nb; j++) in fdi_Zipinflate_dynamic()
/reactos/dll/directx/wine/quartz/
H A Dfiltergraph.c834 ULONG nb = 0; in GetInternalConnections() local
879 nb = i; in GetInternalConnections()
889 *pnb = nb; in GetInternalConnections()
904 ULONG nb = 0; in FilterGraph2_Connect() local
1124 if (nb == 0) { in FilterGraph2_Connect()
1129 TRACE("pins to consider: %d\n", nb); in FilterGraph2_Connect()
1130 for(i = 0; i < nb; i++) in FilterGraph2_Connect()
1277 ULONG nb; in FilterGraph2_Render() local
1922 ULONG nb; in ExploreGraph() local
1941 if (nb == 0) in ExploreGraph()
[all …]

12