/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)
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_python_api.py | 70 PyOS_snprintf = pythonapi.PyOS_snprintf 71 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p 74 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes") 77 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3) 81 self.assertRaises(TypeError, PyOS_snprintf, buf)
|
/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 | 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 | 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 | 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 | 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 | getversion.c | 12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", in Py_GetVersion()
|
D | dynload_dl.c | 24 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
|
/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()
|
/external/python/cpython3/Parser/ |
D | grammar1.c | 41 PyOS_snprintf(buf, sizeof(buf), "NT%d", lb->lb_type); in PyGrammar_LabelRepr() 51 PyOS_snprintf(buf, sizeof(buf), "%.32s(%.32s)", in PyGrammar_LabelRepr()
|
/external/python/cpython3/Python/ |
D | dynload_hpux.c | 43 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_FindSharedFuncptr() 54 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, in _PyImport_FindSharedFuncptr()
|
D | dynload_shlib.c | 68 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr() 72 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_FindSharedFuncptr()
|
D | dynload_win.c | 203 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); 286 PyOS_snprintf(buffer, sizeof(buffer),
|
D | getversion.c | 12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", in Py_GetVersion()
|
D | dynload_dl.c | 21 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); in _PyImport_FindSharedFuncptr()
|
/external/python/cpython2/RISCOS/Python/ |
D | dynload_riscos.c | 59 PyOS_snprintf(errstr, sizeof(errstr), "dlk failure %d", err); in _PyImport_GetDynLoadFunc()
|
/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()
|
/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 108 documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for
|
/external/python/cpython2/Modules/ |
D | getbuildinfo.c | 45 PyOS_snprintf(buildinfo, sizeof(buildinfo), in Py_GetBuildInfo()
|