/aosp_15_r20/external/python/cpython2/Lib/ctypes/test/ |
D | test_python_api.py | 71 PyOS_snprintf = pythonapi.PyOS_snprintf 72 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p 75 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes") 78 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes", 1, 2, 3) 82 self.assertRaises(TypeError, PyOS_snprintf, buf)
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/ctypes/test/ |
H A D | test_python_api.py | 66 PyOS_snprintf = pythonapi.PyOS_snprintf 67 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p 70 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes") 73 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3) 77 self.assertRaises(TypeError, PyOS_snprintf, buf)
|
/aosp_15_r20/external/python/cpython3/Lib/ctypes/test/ |
D | test_python_api.py | 66 PyOS_snprintf = pythonapi.PyOS_snprintf 67 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p 70 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes") 73 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3) 77 self.assertRaises(TypeError, PyOS_snprintf, buf)
|
/aosp_15_r20/external/python/cpython2/Python/ |
D | dynload_beos.c | 197 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc() 201 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc() 209 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc() 226 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc() 231 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc() 236 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
|
D | dynload_win.c | 172 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); 227 PyOS_snprintf(errBuf, sizeof(errBuf), 252 PyOS_snprintf(buffer, sizeof(buffer), "python%d%d_d.dll", 254 PyOS_snprintf(buffer, sizeof(buffer), "python%d%d.dll", 261 PyOS_snprintf(buffer, sizeof(buffer),
|
D | getargs.c | 286 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1() 295 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1() 326 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1() 379 PyOS_snprintf(p, sizeof(buf), "%.200s() ", fname); in seterror() 383 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror() 388 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror() 395 PyOS_snprintf(p, sizeof(buf) - (p - buf), "argument"); in seterror() 398 PyOS_snprintf(p, sizeof(buf) - (p - buf), " %.256s", msg); in seterror() 453 PyOS_snprintf(msgbuf, bufsize, in converttuple() 463 PyOS_snprintf(msgbuf, bufsize, in converttuple() [all …]
|
D | dynload_shlib.c | 80 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_GetDynLoadFunc() 84 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_GetDynLoadFunc() 125 PyOS_snprintf(pathbuf, sizeof(pathbuf), "python_module_%-.200s", in _PyImport_GetDynLoadFunc()
|
D | dynload_atheos.c | 32 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s: %.200s", in _PyImport_GetDynLoadFunc() 37 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
|
D | dynload_os2.c | 34 PyOS_snprintf(errBuf, sizeof(errBuf), in _PyImport_GetDynLoadFunc() 41 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
|
D | dynload_hpux.c | 42 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_GetDynLoadFunc() 47 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, shortname); in _PyImport_GetDynLoadFunc()
|
D | dynload_next.c | 46 PyOS_snprintf(funcname, sizeof(funcname), "_init%.200s", shortname); in _PyImport_GetDynLoadFunc() 83 PyOS_snprintf(errBuf, 512, "Failure linking new module: %s: %s", in _PyImport_GetDynLoadFunc()
|
D | thread_atheos.h | 109 PyOS_snprintf(name, sizeof(name), "python thread (%d)", this_thread); in PyThread_start_new_thread() 173 PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock); in PyThread_allocate_lock()
|
D | thread_beos.h | 126 PyOS_snprintf(name, sizeof(name), in PyThread_start_new_thread() 187 PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock); in PyThread_allocate_lock()
|
D | symtable.c | 89 PyOS_snprintf(buf, sizeof(buf), in ste_repr() 501 PyOS_snprintf(buf, sizeof(buf), in check_unoptimized() 507 PyOS_snprintf(buf, sizeof(buf), in check_unoptimized() 513 PyOS_snprintf(buf, sizeof(buf), in check_unoptimized() 1155 PyOS_snprintf(buf, sizeof(buf), in symtable_visit_stmt() 1159 PyOS_snprintf(buf, sizeof(buf), in symtable_visit_stmt() 1490 PyOS_snprintf(tmpname, sizeof(tmpname), "_[%d]", in symtable_new_tmpname()
|
/aosp_15_r20/external/python/cpython2/Objects/ |
D | exceptions.c | 1181 PyOS_snprintf(buffer, bufsize, "%s (%s, line %ld)", in SyntaxError_str() 1186 PyOS_snprintf(buffer, bufsize, "%s (%s)", in SyntaxError_str() 1190 PyOS_snprintf(buffer, bufsize, "%s (line %ld)", in SyntaxError_str() 1651 PyOS_snprintf(badchar_str, sizeof(badchar_str), "x%02x", badchar); in UnicodeEncodeError_str() 1653 PyOS_snprintf(badchar_str, sizeof(badchar_str), "u%04x", badchar); in UnicodeEncodeError_str() 1655 PyOS_snprintf(badchar_str, sizeof(badchar_str), "U%08x", badchar); in UnicodeEncodeError_str() 1738 PyOS_snprintf(byte, sizeof(byte), "%02x", in UnicodeDecodeError_str() 1836 PyOS_snprintf(badchar_str, sizeof(badchar_str), "x%02x", badchar); in UnicodeTranslateError_str() 1838 PyOS_snprintf(badchar_str, sizeof(badchar_str), "u%04x", badchar); in UnicodeTranslateError_str() 1840 PyOS_snprintf(badchar_str, sizeof(badchar_str), "U%08x", badchar); in UnicodeTranslateError_str()
|
D | weakrefobject.c | 162 PyOS_snprintf(buffer, sizeof(buffer), "<weakref at %p; dead>", self); in weakref_repr() 173 PyOS_snprintf(buffer, sizeof(buffer), in weakref_repr() 181 PyOS_snprintf(buffer, sizeof(buffer), in weakref_repr() 469 PyOS_snprintf(buf, sizeof(buf), in WRAP_BINARY()
|
/aosp_15_r20/external/python/cpython2/Parser/ |
D | grammar1.c | 42 PyOS_snprintf(buf, sizeof(buf), "NT%d", lb->lb_type); in PyGrammar_LabelRepr() 52 PyOS_snprintf(buf, sizeof(buf), "%.32s(%.32s)", in PyGrammar_LabelRepr()
|
/aosp_15_r20/external/python/cpython3/Python/ |
D | dynload_hpux.c | 37 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_FindSharedFuncptr() 61 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, in _PyImport_FindSharedFuncptr()
|
D | dynload_shlib.c | 65 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr() 69 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_FindSharedFuncptr()
|
D | getargs.c | 451 PyOS_snprintf(p, sizeof(buf), "%.200s() ", fname); in seterror() 455 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror() 460 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror() 467 PyOS_snprintf(p, sizeof(buf) - (p - buf), "argument"); in seterror() 470 PyOS_snprintf(p, sizeof(buf) - (p - buf), " %.256s", msg); in seterror() 531 PyOS_snprintf(msgbuf, bufsize, in converttuple() 543 PyOS_snprintf(msgbuf, bufsize, in converttuple() 550 PyOS_snprintf(msgbuf, bufsize, in converttuple() 633 PyOS_snprintf(msgbuf, bufsize, in converterr() 637 PyOS_snprintf(msgbuf, bufsize, in converterr()
|
D | dynload_win.c | 237 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); 318 PyOS_snprintf(buffer, sizeof(buffer),
|
D | pystrtod.c | 680 written = PyOS_snprintf(p, buf_avail, "e%+.02d", digit_count-1); in ensure_decimal_point() 767 PyOS_snprintf(buffer, buf_size, format, d); in _PyOS_ascii_formatd() 915 PyOS_snprintf(format, sizeof(format), "%%%s.%i%c", in PyOS_double_to_string()
|
/aosp_15_r20/external/python/cpython2/Modules/ |
D | datetimemodule.c | 1094 PyOS_snprintf(buffer, sizeof(buffer), "%s %s %2d %02d:%02d:%02d %04d", in format_ctime() 1136 PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes); in format_utcoffset() 1365 x = PyOS_snprintf(buffer, bufflen, in isoformat_date() 1378 x = PyOS_snprintf(buffer, bufflen, in isoformat_time() 1385 x += PyOS_snprintf(buffer + x, bufflen - x, ".%06d", us); in isoformat_time() 2065 n = PyOS_snprintf(pbuf, buflen, "%d day%s, ", days, in delta_str() 2073 n = PyOS_snprintf(pbuf, buflen, "%d:%02d:%02d", in delta_str() 2081 n = PyOS_snprintf(pbuf, buflen, ".%06d", us); in delta_str() 2495 PyOS_snprintf(buffer, sizeof(buffer), "%s(%d, %d, %d)", in date_repr() 3255 PyOS_snprintf(buffer, sizeof(buffer), in time_repr() [all …]
|
/aosp_15_r20/external/python/cpython3/Doc/c-api/ |
D | conversion.rst | 11 .. c:function:: int PyOS_snprintf(char *str, size_t size, const char *format, ...) 23 :c:func:`PyOS_snprintf` and :c:func:`PyOS_vsnprintf` wrap the Standard C library 105 documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for
|
/aosp_15_r20/external/python/cpython2/Doc/c-api/ |
D | conversion.rst | 11 .. c:function:: int PyOS_snprintf(char *str, size_t size, const char *format, ...) 23 :c:func:`PyOS_snprintf` and :c:func:`PyOS_vsnprintf` wrap the Standard C library 142 documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for
|