Searched refs:buf (Results 1 - 15 of 15) sorted by relevance

/pkg/src/modules/
H A Darch.py36 buf = lib.malloc(bufsz)
37 buf = ffi.gc(buf, lib.free)
38 if buf == NULL:
42 ret = lib.sysinfo(sicmd, buf, bufsz)
47 tmp = lib.realloc(buf, bufsz)
51 buf = tmp
54 if buf == NULL:
57 return buf
63 buf
[all...]
H A Dcpiofile.py129 self.buf = ""
185 self.buf += s
186 while len(self.buf) > self.bufsize:
187 self.fileobj.write(self.buf[:self.bufsize])
188 self.buf = self.buf[self.bufsize:]
198 self.buf += self.cmp.flush()
199 if self.mode == "w" and self.buf:
200 self.fileobj.write(self.buf)
201 self.buf
[all...]
H A Dsmf.py89 buf = [misc.force_str(l) for l in proc.stdout.readlines()]
95 raise NonzeroExitException(args, ret, buf)
96 return buf
167 buf = __call(args, zone=zone)
173 for l in buf
183 buf = __call(args, zone=zone)
184 assert len(buf) == 1, "Was expecting one entry, got:{0}".format(buf)
185 buf = buf[
[all...]
H A Delfextract.c408 char *buf = NULL, *cp = NULL; local
535 buf = data_verneed->d_buf;
536 cp = buf;
548 buf = cp;
569 cp = buf;
586 buf = data_verdef->d_buf;
587 cp = buf;
595 buf = cp;
610 cp = buf;
H A Dp5p.py570 buf = ti.tobuf(tfile.format, tfile.encoding, tfile.errors)
574 entry_sz = len(buf)
H A Dmisc.py416 buf = gz.read(64 * 1024)
417 if buf == b"":
428 ubuf = dcobj.decompress(buf)
/pkg/src/modules/client/
H A Dfirmware.py64 buf = ""
80 buf = [misc.force_str(l) for l in
92 buf = (_("Firmware dependency error:"
96 return (ret, buf, args)
104 (ret, buf, args) = self._check(dep_action, which="cpu")
140 format("".join(buf).rstrip(),
158 (ret, buf, args) = self._check(dep_action, which=which)
166 if ret == 1 and len(buf) > 0:
190 " ".join(buf), misc.signame(-ret))))
196 " ".join(buf),
[all...]
/pkg/src/tests/api/
H A Dt_pkgtarfile.py53 buf = os.urandom(8192)
54 wfp.write(buf)
/pkg/src/util/apache2/sysrepo/
H A Dsysrepo_p5p.py317 buf = []
350 buf = self._file_response(path, pub)
352 buf = self._catalog_response(path, pub, hsh)
354 buf = self._manifest_response(path, pub)
370 return buf
/pkg/src/modules/client/transport/
H A Drepo.py1476 buf = cStringIO()
1477 p5i.write(buf, pubs)
1485 buf.seek(0)
1486 return buf
1491 buf = cStringIO()
1494 json.dump(rstatus, buf, ensure_ascii=False, indent=2,
1496 buf.write("\n")
1503 buf.seek(0)
1504 return buf
1682 buf
[all...]
H A Dtransport.py3637 buf = src.read(64 * 1024)
3638 if buf == b"":
3640 outfile.write(buf)
/pkg/src/
H A Dsetup.py890 buf = sfp.read(buffer_size)
891 if not buf:
894 match = cddl_re.search(buf)
900 substr = buf[
905 buf = cddl_re.sub(b"\n" + blanks,
906 buf)
909 dfp.write(buf)
912 fl = buf[:buf.find(os.linesep) + 1]
915 buf
[all...]
/pkg/src/modules/server/
H A Ddepot.py1310 buf = cStringIO()
1312 p5i.write(buf, pubs)
1318 buf.seek(0)
1321 return misc.force_bytes(buf.getvalue())
1347 buf = cStringIO()
1349 p5i.write(buf, pubs)
1355 buf.seek(0)
1357 return buf.getvalue()
1398 buf = cStringIO()
1400 p5i.write(buf, [pu
[all...]
/pkg/src/modules/actions/
H A Ddriver.py123 buf = proc.stdout.read()
135 print(buf, end=" ")
/pkg/src/tests/
H A Dpkg5unittest.py1584 buf = six.StringIO()
1589 result = q_makeResult(buf, o, b, bail_on_fail,
1600 otw.text = buf.getvalue()
2211 buf = test.get_debugbuf()
2216 rtest.set_debugbuf(buf)
2570 for buf in (self.errout, self.output):
2571 self.assertTrue("No solution" not in buf,

Completed in 228 milliseconds