Lines Matching refs:buf
36 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 = NULL
70 buf = buf2
72 buf = buf1
76 if buf == NULL:
81 buf = force_text(ffi.string(ffi.cast("char *", buf)))
82 robj = [buf]
89 buf = _get_sysinfo(lib.SI_RELEASE)
90 if buf == NULL:
93 return force_text(ffi.string(ffi.cast("char *", buf)))
98 buf = _get_sysinfo(lib.SI_PLATFORM)
99 if buf == NULL:
102 return force_text(ffi.string(ffi.cast("char *", buf)))