Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 99) sorted by relevance

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpopen2.py40 def __init__(self, cmd, capturestderr=False, bufsize=-1): argument
65 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
67 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
70 self.childerr = os.fdopen(errout, 'r', bufsize)
119 def __init__(self, cmd, bufsize=-1): argument
132 self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
134 self.fromchild = os.fdopen(c2pread, 'r', bufsize)
141 def popen2(cmd, bufsize=-1, mode='t'): argument
148 w, r = os.popen2(cmd, mode, bufsize)
151 def popen3(cmd, bufsize=-1, mode='t'): argument
[all …]
Dsocket.py212 def makefile(self, mode='r', bufsize=-1): argument
217 return _fileobject(self._sock, mode, bufsize)
246 def __init__(self, sock, mode='rb', bufsize=-1, close=False): argument
249 if bufsize < 0:
250 bufsize = self.default_bufsize
251 self.bufsize = bufsize
256 if bufsize == 0:
258 elif bufsize == 1:
261 self._rbufsize = bufsize
262 self._wbufsize = bufsize
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dgetargs.c425 int *levels, char *msgbuf, size_t bufsize, int toplevel, in converttuple() argument
453 PyOS_snprintf(msgbuf, bufsize, in converttuple()
463 PyOS_snprintf(msgbuf, bufsize, in converttuple()
479 strncpy(msgbuf, "is not retrievable", bufsize); in converttuple()
483 msgbuf, bufsize, freelist); in converttuple()
501 int *levels, char *msgbuf, size_t bufsize, PyObject **freelist) in convertitem() argument
509 bufsize, 0, freelist); in convertitem()
515 msgbuf, bufsize, freelist); in convertitem()
532 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) in converterr() argument
536 PyOS_snprintf(msgbuf, bufsize, in converterr()
[all …]
Dpystrtod.c744 Py_ssize_t bufsize; in PyOS_double_to_string() local
827 bufsize = 5; in PyOS_double_to_string()
829 bufsize = 25 + precision; in PyOS_double_to_string()
832 bufsize += exp/3; in PyOS_double_to_string()
836 buf = PyMem_Malloc(bufsize); in PyOS_double_to_string()
860 _PyOS_ascii_formatd(buf, bufsize, format, val, precision); in PyOS_double_to_string()
869 assert((size_t)bufsize >= len+2); in PyOS_double_to_string()
944 Py_ssize_t bufsize = 0; in format_float_short() local
976 bufsize = 5; /* Used later in an assert. */ in format_float_short()
977 buf = (char *)PyMem_Malloc(bufsize); in format_float_short()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dgetargs.c425 int *levels, char *msgbuf, size_t bufsize, int toplevel, in converttuple() argument
453 PyOS_snprintf(msgbuf, bufsize, in converttuple()
463 PyOS_snprintf(msgbuf, bufsize, in converttuple()
479 strncpy(msgbuf, "is not retrievable", bufsize); in converttuple()
483 msgbuf, bufsize, freelist); in converttuple()
501 int *levels, char *msgbuf, size_t bufsize, PyObject **freelist) in convertitem() argument
509 bufsize, 0, freelist); in convertitem()
515 msgbuf, bufsize, freelist); in convertitem()
532 converterr(const char *expected, PyObject *arg, char *msgbuf, size_t bufsize) in converterr() argument
536 PyOS_snprintf(msgbuf, bufsize, in converterr()
[all …]
Ddynload_aix.c41 register int errflag, bufsize = 1024; in aix_getoldmodules() local
48 if ((ldibuf = malloc(bufsize)) == NULL) { in aix_getoldmodules()
52 while ((errflag = loadquery(L_GETINFO, ldibuf, bufsize)) == -1 in aix_getoldmodules()
55 bufsize += 1024; in aix_getoldmodules()
56 if ((ldibuf = malloc(bufsize)) == NULL) { in aix_getoldmodules()
Dpystrtod.c744 Py_ssize_t bufsize; in PyOS_double_to_string() local
827 bufsize = 5; in PyOS_double_to_string()
829 bufsize = 25 + precision; in PyOS_double_to_string()
832 bufsize += exp/3; in PyOS_double_to_string()
836 buf = PyMem_Malloc(bufsize); in PyOS_double_to_string()
860 _PyOS_ascii_formatd(buf, bufsize, format, val, precision); in PyOS_double_to_string()
869 assert((size_t)bufsize >= len+2); in PyOS_double_to_string()
944 Py_ssize_t bufsize = 0; in format_float_short() local
976 bufsize = 5; /* Used later in an assert. */ in format_float_short()
977 buf = (char *)PyMem_Malloc(bufsize); in format_float_short()
[all …]
/device/google/crosshatch/json-c/
Dprintbuf.h42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument
44 if ((p->size - p->bpos) > bufsize) { \
45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \
46 p->bpos += bufsize; \
48 } else { printbuf_memappend(p, (bufptr), bufsize); } \
/device/google/bonito/json-c/
Dprintbuf.h42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument
44 if ((p->size - p->bpos) > bufsize) { \
45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \
46 p->bpos += bufsize; \
48 } else { printbuf_memappend(p, (bufptr), bufsize); } \
/device/linaro/bootloader/arm-trusted-firmware/lib/libfdt/
Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) in fdt_create() argument
92 if (bufsize < sizeof(struct fdt_header)) in fdt_create()
95 memset(buf, 0, bufsize); in fdt_create()
100 fdt_set_totalsize(fdt, bufsize); in fdt_create()
105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create()
110 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument
120 if ((headsize + tailsize) > bufsize) in fdt_resize()
124 newtail = (char *)buf + bufsize - tailsize; in fdt_resize()
136 fdt_set_off_dt_strings(buf, bufsize); in fdt_resize()
137 fdt_set_totalsize(buf, bufsize); in fdt_resize()
Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument
62 err = fdt_create(buf, bufsize); in fdt_create_empty_tree()
82 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dmakebuf.c105 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) in __swhatbuf() argument
110 _DIAGASSERT(bufsize != NULL); in __swhatbuf()
118 *bufsize = BUFSIZ; in __swhatbuf()
125 *bufsize = BUFSIZ; in __swhatbuf()
134 *bufsize = st.st_blksize; in __swhatbuf()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument
62 err = fdt_create(buf, bufsize); in fdt_create_empty_tree()
82 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) in fdt_create() argument
92 if (bufsize < sizeof(struct fdt_header)) in fdt_create()
95 memset(buf, 0, bufsize); in fdt_create()
100 fdt_set_totalsize(fdt, bufsize); in fdt_create()
105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dmd5sum.py7 bufsize = 8096 variable
18 """ % bufsize
59 data = fp.read(bufsize)
70 global fnfilter, rmode, bufsize
84 bufsize = int(a)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dbkfile.py4 def __init__(self, file, mode, bufsize): argument
16 self.__file = _orig_open(file, mode, bufsize)
44 def open(file, mode = 'r', bufsize = -1): argument
46 return _orig_open(file, mode, bufsize)
47 return _BkFile(file, mode, bufsize)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dbz2module.c423 Util_ReadAhead(BZ2FileObject *f, int bufsize) in Util_ReadAhead() argument
439 if ((f->f_buf = PyMem_Malloc(bufsize)) == NULL) { in Util_ReadAhead()
445 bufsize, f); in Util_ReadAhead()
464 Util_ReadAheadGetLineSkip(BZ2FileObject *f, int skip, int bufsize) in Util_ReadAheadGetLineSkip() argument
472 if (Util_ReadAhead(f, bufsize) < 0) in Util_ReadAheadGetLineSkip()
496 bufsize + (bufsize>>2)); in Util_ReadAheadGetLineSkip()
1624 int bufsize = SMALLCHUNK; in BZ2Comp_compress() local
1647 ret = PyString_FromStringAndSize(NULL, bufsize); in BZ2Comp_compress()
1654 bzs->avail_out = bufsize; in BZ2Comp_compress()
1669 bufsize = Util_NewBufferSize(bufsize); in BZ2Comp_compress()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dsocket.py216 def makefile(self, mode='r', bufsize=-1): argument
221 return _fileobject(self._sock, mode, bufsize)
250 def __init__(self, sock, mode='rb', bufsize=-1, close=False): argument
253 if bufsize < 0:
254 bufsize = self.default_bufsize
255 self.bufsize = bufsize
260 if bufsize == 0:
262 elif bufsize == 1:
265 self._rbufsize = bufsize
266 self._wbufsize = bufsize
/device/generic/goldfish-opengl/tests/gles_android_wrapper/
DServerConnection.cpp74 int ServerConnection::create(size_t bufsize, in create() argument
83 QemuPipeStream* pipeStream = new QemuPipeStream(bufsize); in create()
94 TcpStream* tcpStream = new TcpStream(bufsize); in create()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/
Dpulldom.py211 def __init__(self, stream, parser, bufsize): argument
214 self.bufsize = bufsize
261 buf = self.stream.read(self.bufsize)
330 def parse(stream_or_string, parser=None, bufsize=None): argument
331 if bufsize is None:
332 bufsize = default_bufsize
339 return DOMEventStream(stream, parser, bufsize)
347 bufsize = len(string)
351 return DOMEventStream(buf, parser, bufsize)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/
Dpulldom.py211 def __init__(self, stream, parser, bufsize): argument
214 self.bufsize = bufsize
261 buf = self.stream.read(self.bufsize)
330 def parse(stream_or_string, parser=None, bufsize=None): argument
331 if bufsize is None:
332 bufsize = default_bufsize
339 return DOMEventStream(stream, parser, bufsize)
347 bufsize = len(string)
351 return DOMEventStream(buf, parser, bufsize)
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dregerror.c330 onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc, in onig_snprintf_with_pattern() argument
333 onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist) in onig_snprintf_with_pattern()
335 int bufsize;
349 n = xvsnprintf((char* )buf, bufsize, (const char* )fmt, args);
354 if (n + need < bufsize) {
355 strcat_s((char* )buf, bufsize, ": /");
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
DDLexerBase.cpp57 unsigned bufsize, in DLGLexerBase() argument
61 this->_bufsize = bufsize; in DLGLexerBase()
122 state->bufsize = _bufsize; in saveState()
146 _bufsize = state->bufsize; in restoreState()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_fileinput.py50 fi = FileInput(files=(t1, t2, t3, t4), bufsize=bs)
61 fi = FileInput(files=(t1, t2, t3, t4), bufsize=bs)
80 fi = FileInput(files=(t1, t2, t3, t4, '-'), bufsize=bs)
94 fi = FileInput(files=(t1, t2, t3, t4), bufsize=bs)
105 fi = FileInput(files=(t1, t2, t3, t4), inplace=1, bufsize=bs)
113 fi = FileInput(files=(t1, t2, t3, t4), bufsize=bs)
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
DDLexerBase.cpp58 unsigned bufsize, in DLGLexerBase() argument
62 this->_bufsize = bufsize; in DLGLexerBase()
123 state->bufsize = _bufsize; in saveState()
147 _bufsize = state->bufsize; in restoreState()

1234