33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
$NetBSD$
|
|
|
|
--- psutil/arch/bsd/dragonfly.h.orig 2018-02-09 16:11:41.567735000 +0000
|
|
+++ psutil/arch/bsd/dragonfly.h
|
|
@@ -0,0 +1,27 @@
|
|
+/*
|
|
+ * Copyright (c) 2009, Giampaolo Rodola', Landry Breuil.
|
|
+ * All rights reserved.
|
|
+ * Use of this source code is governed by a BSD-style license that can be
|
|
+ * found in the LICENSE file.
|
|
+ */
|
|
+
|
|
+#include <Python.h>
|
|
+
|
|
+typedef struct kinfo_proc kinfo_proc;
|
|
+
|
|
+int psutil_kinfo_proc(pid_t pid, struct kinfo_proc *proc);
|
|
+struct kinfo_file * kinfo_getfile(long pid, int* cnt);
|
|
+int psutil_get_proc_list(struct kinfo_proc **procList, size_t *procCount);
|
|
+char **_psutil_get_argv(long pid);
|
|
+PyObject * psutil_get_cmdline(long pid);
|
|
+
|
|
+//
|
|
+PyObject *psutil_proc_threads(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_virtual_mem(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_swap_mem(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_proc_num_fds(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_proc_cwd(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_proc_connections(PyObject *self, PyObject *args);
|
|
+PyObject *psutil_per_cpu_times(PyObject *self, PyObject *args);
|
|
+PyObject* psutil_disk_io_counters(PyObject* self, PyObject* args);
|
|
+PyObject* psutil_cpu_stats(PyObject* self, PyObject* args);
|