| 1 |
/* |
| 2 |
* Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. |
| 3 |
* Use of this source code is governed by a BSD-style license that can be |
| 4 |
* found in the LICENSE file. |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <Python.h> |
| 8 |
|
| 9 |
void convert_kvm_err(const char *syscall, char *errbuf); |
| 10 |
|
| 11 |
#if defined(PSUTIL_OPENBSD) || defined (PSUTIL_NETBSD) |
| 12 |
#define PSUTIL_HASNT_KINFO_GETFILE |
| 13 |
|
| 14 |
struct kinfo_file *kinfo_getfile(pid_t pid, int* cnt); |
| 15 |
#endif |
| 16 |
|
| 17 |
PyObject *psutil_boot_time(PyObject *self, PyObject *args); |
| 18 |
PyObject *psutil_cpu_count_logical(PyObject *self, PyObject *args); |
| 19 |
PyObject *psutil_cpu_times(PyObject *self, PyObject *args); |
| 20 |
PyObject *psutil_disk_partitions(PyObject *self, PyObject *args); |
| 21 |
PyObject *psutil_net_io_counters(PyObject *self, PyObject *args); |
| 22 |
PyObject *psutil_pids(PyObject *self, PyObject *args); |
| 23 |
PyObject *psutil_proc_environ(PyObject *self, PyObject *args); |
| 24 |
PyObject *psutil_proc_name(PyObject *self, PyObject *args); |
| 25 |
PyObject *psutil_proc_oneshot_info(PyObject *self, PyObject *args); |
| 26 |
PyObject *psutil_proc_open_files(PyObject *self, PyObject *args); |