Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/lib/libnetgraph/
H A Dmsg.c323 int bufSize, errnosv; in NgRecvAsciiMsg() local
327 bufSize = 2 * sizeof(*reply) + replen; in NgRecvAsciiMsg()
328 if ((buf = malloc(bufSize)) == NULL) in NgRecvAsciiMsg()
334 if (NgRecvMsg(cs, msg, bufSize, path) < 0) in NgRecvAsciiMsg()
342 if (NgRecvMsg(cs, msg, bufSize, NULL) < 0) in NgRecvAsciiMsg()
/freebsd-13.1/contrib/opencsd/decoder/source/c_api/
H A Docsd_c_api_custom_obj.cpp285 void CustomDcdMngrWrapper::pktToString(const void *pkt, char *pStrBuffer, int bufSize) in pktToString() argument
288 m_dcd_fact.pktToString(pkt, pStrBuffer, bufSize); in pktToString()
290 …snprintf(pStrBuffer, bufSize, "CUSTOM_PKT[]: print unsupported; protocol(%d).",m_dcd_fact.protocol… in pktToString()
H A Docsd_c_api_custom_obj.h92 void pktToString(const void *pkt, char *pStrBuffer, int bufSize);
/freebsd-13.1/sys/netgraph/
H A Dng_parse.c792 if (slen + 1 > fi->bufSize) { in ng_fixedstring_parse()
799 bzero(buf + slen, fi->bufSize - slen); in ng_fixedstring_parse()
800 *buflen = fi->bufSize; in ng_fixedstring_parse()
813 *off += fi->bufSize; in ng_fixedstring_unparse()
823 if (*buflen < fi->bufSize) in ng_fixedstring_getDefault()
825 bzero(buf, fi->bufSize); in ng_fixedstring_getDefault()
826 *buflen = fi->bufSize; in ng_fixedstring_getDefault()
H A Dng_base.c2777 int bufSize = 1024; in ng_generic_msg() local
2834 ascii->data, bufSize); in ng_generic_msg()
2837 bufSize *= 2; in ng_generic_msg()
2846 bufSize = strlen(ascii->data) + 1; in ng_generic_msg()
2847 ascii->header.arglen = bufSize; in ng_generic_msg()
2848 resp->header.arglen = sizeof(*ascii) + bufSize; in ng_generic_msg()
2854 int bufSize = 20 * 1024; /* XXX hard coded constant */ in ng_generic_msg() local
2909 bufSize = 0; in ng_generic_msg()
2912 (u_char *)binary->data, &bufSize)) != 0) { in ng_generic_msg()
2919 binary->header.arglen = bufSize; in ng_generic_msg()
[all …]
H A Dng_parse.h390 int bufSize; /* size of buffer (including NUL) */ member
/freebsd-13.1/sys/contrib/ncsw/Peripherals/FM/SP/
H A Dfm_sp.c99 uint16_t bufSize = 0; in FmSpSetBufPoolsInAscOrderOfBufSizes() local
106 bufSize = p_FmExtPools->extBufPool[i].size; in FmSpSetBufPoolsInAscOrderOfBufSizes()
109 sizesArray[p_FmExtPools->extBufPool[i].id] = bufSize; in FmSpSetBufPoolsInAscOrderOfBufSizes()
120 if (bufSize < sizesArray[orderedArray[j]]) in FmSpSetBufPoolsInAscOrderOfBufSizes()
/freebsd-13.1/sys/contrib/zstd/programs/
H A Dutil.c367 size_t bufSize; in UTIL_createFileNamesTable_fromFileName() local
377 bufSize = (size_t)(inputFileSize + 1); /* (+1) to add '\0' at the end of last filename */ in UTIL_createFileNamesTable_fromFileName()
380 buf = (char*) malloc(bufSize); in UTIL_createFileNamesTable_fromFileName()
383 { int const ret_nbFiles = readLinesFromFile(buf, bufSize, inputFileName); in UTIL_createFileNamesTable_fromFileName()
400 assert(pos <= bufSize); in UTIL_createFileNamesTable_fromFileName()
/freebsd-13.1/contrib/bmake/
H A Dparse.c331 size_t bufSize; in loadfile() local
334 bufSize = fstat(fd, &st) == 0 && S_ISREG(st.st_mode) && in loadfile()
337 Buf_InitSize(&buf, bufSize); in loadfile()
/freebsd-13.1/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp89 size_t bufSize = mb.getBuffer().size(); in getELFKind() local
90 if ((size == ELFCLASS32 && bufSize < sizeof(Elf32_Ehdr)) || in getELFKind()
91 (size == ELFCLASS64 && bufSize < sizeof(Elf64_Ehdr))) in getELFKind()
/freebsd-13.1/contrib/expat/lib/
H A Dxmlparse.c2564 int bufSize; in storeRawNames() local
2582 bufSize = nameLen + (int)rawNameLen; in storeRawNames()
2583 if (bufSize > tag->bufEnd - tag->buf) { in storeRawNames()
2584 char *temp = (char *)REALLOC(parser, tag->buf, bufSize); in storeRawNames()
2599 tag->bufEnd = temp + bufSize; in storeRawNames()
2927 int bufSize; in doContent() local
2938 bufSize = (int)(tag->bufEnd - tag->buf) << 1; in doContent()
2940 char *temp = (char *)REALLOC(parser, tag->buf, bufSize); in doContent()
2944 tag->bufEnd = temp + bufSize; in doContent()
/freebsd-13.1/contrib/sqlite3/tea/generic/
H A Dtclsqlite3.c273 int bufSize, in incrblobInput() argument
277 int nRead = bufSize; /* Number of bytes to read */ in incrblobInput()
/freebsd-13.1/contrib/bsnmp/tests/
H A Dcatch.hpp13253 int bufSize = WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, NULL, 0, NULL, NULL ); in applyCommandLine() local
13255 utf8Argv[ i ] = new char[ bufSize ]; in applyCommandLine()
13257 WideCharToMultiByte( CP_UTF8, 0, argv[i], -1, utf8Argv[i], bufSize, NULL, NULL ); in applyCommandLine()