(name)
| 264 | |
| 265 | |
| 266 | def _sysctlbyname_uint(name): |
| 267 | try: |
| 268 | from ctypes import CDLL, c_uint, byref |
| 269 | from ctypes.util import find_library |
| 270 | except ImportError: |
| 271 | return |
| 272 | |
| 273 | libc = CDLL(find_library("c")) |
| 274 | size = c_uint(0) |
| 275 | res = c_uint(0) |
| 276 | libc.sysctlbyname(name, None, byref(size), None, 0) |
| 277 | libc.sysctlbyname(name, byref(res), byref(size), None, 0) |
| 278 | return res.value |
| 279 | |
| 280 | |
| 281 | def _makedirs(path): |
no test coverage detected