Home
last modified time | relevance | path

Searched refs:ctypes (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/qemu/scripts/
H A Ddump-guest-memory.py16 import ctypes
134 ctypes.memmove(note.n_desc, n_desc.encode(), len(n_desc))
137 self.segments[0].p_filesz += ctypes.sizeof(note)
138 self.segments[0].p_memsz += ctypes.sizeof(note)
145 ctypes.memmove(ctypes.pointer(header),
146 vmcoreinfo, ctypes.sizeof(header))
153 ctypes.memmove(ctypes.pointer(note), vmcoreinfo, ctypes.sizeof(note))
156 self.segments[0].p_filesz += ctypes.sizeof(note)
157 self.segments[0].p_memsz += ctypes.sizeof(note)
183 off = ctypes.sizeof(self.ehdr) + \
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dxattr.py8 import ctypes
12 libc = ctypes.CDLL("libc.so.6", use_errno=True)
16 libc.listxattr.argtypes = [ctypes.c_char_p, ctypes.c_char_p, ctypes.c_size_t]
17 libc.llistxattr.argtypes = [ctypes.c_char_p, ctypes.c_char_p, ctypes.c_size_t]
29 err = ctypes.get_errno()
35 arr = ctypes.create_string_buffer(length)
46 ctypes.c_char_p,
47 ctypes.c_char_p,
48 ctypes.c_char_p,
49 ctypes.c_size_t,
[all …]
H A Dacl.py9 import ctypes
15 libacl = ctypes.CDLL("libacl.so.1", use_errno=True)
36 acl_t = ctypes.c_void_p
37 acl_entry_t = ctypes.c_void_p
38 acl_permset_t = ctypes.c_void_p
39 acl_perm_t = ctypes.c_uint
41 acl_tag_t = ctypes.c_int
51 libacl.acl_get_file.argtypes = [ctypes.c_char_p, ctypes.c_uint]
57 err = ctypes.get_errno()
63 libacl.acl_get_entry.argtypes = [acl_t, ctypes.c_int, ctypes.c_void_p]
[all …]
/openbmc/linux/tools/crypto/ccp/
H A Ddbc.py4 import ctypes
26 lib = ctypes.CDLL("./dbc_library.so", mode=ctypes.RTLD_GLOBAL)
36 buf = ctypes.create_string_buffer(DBC_NONCE_SIZE)
37 ret = lib.get_nonce(device.fileno(), ctypes.byref(buf), signature)
59 arg = ctypes.c_int(data if data else 0)
60 sig = ctypes.create_string_buffer(signature, len(signature))
61 ret = lib.process_param(device.fileno(), message[0], ctypes.pointer(sig), ctypes.pointer(arg))
/openbmc/qemu/tests/tcg/multiarch/gdbstub/
H A Dprot-none.py7 import ctypes
12 buf = ctypes.create_string_buffer(b'aaa')
15 fp.seek(ctypes.addressof(buf))
/openbmc/openbmc/poky/meta/recipes-devtools/python/
H A Dpython3-libarchive-c_5.1.bb2 DESCRIPTION = "A Python interface to libarchive. It uses the standard ctypes module to \
22 # https://docs.python.org/3/library/ctypes.html#ctypes-reference
30 python3-ctypes \
H A Dpython3-magic_0.4.27.bb2 DESCRIPTION = "This module uses ctypes to access the libmagic file type \
17 python3-ctypes \
/openbmc/linux/tools/kvm/kvm_stat/
H A Dkvm_stat29 import ctypes
364 char_ptr_size = ctypes.sizeof(ctypes.c_char_p)
402 class perf_event_attr(ctypes.Structure):
411 _fields_ = [('type', ctypes.c_uint32),
412 ('size', ctypes.c_uint32),
413 ('config', ctypes.c_uint64),
414 ('sample_freq', ctypes.c_uint64),
415 ('sample_type', ctypes.c_uint64),
416 ('read_format', ctypes.c_uint64),
417 ('flags', ctypes.c_uint64),
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3/
H A D0001-test_ctypes.test_find-skip-without-tools-sdk.patch27 with unittest.mock.patch("ctypes.util._findSoname_ldconfig", lambda *args: None):
32 with unittest.mock.patch("ctypes.util._findSoname_ldconfig", lambda *args: None), \
33 unittest.mock.patch("ctypes.util._findLib_gcc", lambda *args: None):
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-python-vlc_3.0.20123.bb1 SUMMARY = "This module provides ctypes-based bindings for the native libvlc API of the VLC video pl…
11 python3-ctypes \
H A Dpython3-file-magic_0.4.1.bb2 DESCRIPTION = "This library is a Python ctypes interface to libmagic."
15 python3-ctypes \
H A Dpython3-pulsectl_24.11.0.bb1 SUMMARY = "Python (3.x and 2.x) high-level interface and ctypes-based bindings for PulseAudio (libp…
10 python3-ctypes \
H A Dpython3-ifaddr_0.2.0.bb13 python3-ctypes \
H A Dpython3-pathlib2_2.3.7.bb10 RDEPENDS:${PN} += "python3-six python3-ctypes"
H A Dpython3-iperf_0.1.11.bb13 python3-ctypes \
H A Dpython3-libevdev_0.11.bb16 python3-ctypes \
H A Dpython3-colorclass_2.2.2.bb14 python3-ctypes \
H A Dpython3-pyperclip_1.9.0.bb11 python3-ctypes \
H A Dpython3-pyusb_1.2.1.bb16 RDEPENDS:${PN} += "python3-ctypes"
H A Dpython3-asyncinotify_4.2.0.bb13 python3-ctypes \
H A Dpython3-periphery_2.4.1.bb14 python3-ctypes \
H A Dpython3-pyu2f_0.1.5.bb13 python3-ctypes \
H A Dpython3-pyudev_0.24.3.bb16 python3-ctypes \
/openbmc/openbmc/poky/bitbake/lib/
H A Dpyinotify.py65 import ctypes
66 import ctypes.util
68 ctypes = None variable
107 if ctypes:
185 assert ctypes
193 libc_name = ctypes.util.find_library(try_libc_name)
197 self._libc = ctypes.CDLL(libc_name, use_errno=True)
198 self._get_errno_func = ctypes.get_errno
207 self._libc.inotify_init.restype = ctypes.c_int
208 self._libc.inotify_add_watch.argtypes = [ctypes.c_int, ctypes.c_char_p,
[all …]
/openbmc/openbmc/meta-security/dynamic-layers/meta-python/recipes-devtools/python/
H A Dpython3-pyinotify_0.9.6.bb19 python3-ctypes \

1234