Index: third_party/psutil/psutil/_psutil_bsd.h |
diff --git a/third_party/psutil/psutil/_psutil_bsd.h b/third_party/psutil/psutil/_psutil_bsd.h |
index 2cc76aea25d1d59802ca85674a6989a3ae01a565..17640f5c4f45e2ac7ae1ff6ea0558f2f0b8be804 100644 |
--- a/third_party/psutil/psutil/_psutil_bsd.h |
+++ b/third_party/psutil/psutil/_psutil_bsd.h |
@@ -1,5 +1,5 @@ |
/* |
- * $Id: _psutil_bsd.h 1142 2011-10-05 18:45:49Z g.rodola $ |
+ * $Id: _psutil_bsd.h 1206 2011-10-26 21:13:51Z g.rodola $ |
* |
* Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. |
* Use of this source code is governed by a BSD-style license that can be |
@@ -26,6 +26,10 @@ static PyObject* get_process_threads(PyObject* self, PyObject* args); |
static PyObject* get_process_status(PyObject* self, PyObject* args); |
static PyObject* get_process_io_counters(PyObject* self, PyObject* args); |
static PyObject* get_process_tty_nr(PyObject* self, PyObject* args); |
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 800000 |
+static PyObject* get_process_open_files(PyObject* self, PyObject* args); |
+static PyObject* get_process_cwd(PyObject* self, PyObject* args); |
+#endif |
// --- system-related functions |
@@ -36,7 +40,10 @@ static PyObject* get_avail_phymem(PyObject* self, PyObject* args); |
static PyObject* get_total_virtmem(PyObject* self, PyObject* args); |
static PyObject* get_avail_virtmem(PyObject* self, PyObject* args); |
static PyObject* get_system_cpu_times(PyObject* self, PyObject* args); |
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 800000 |
static PyObject* get_system_per_cpu_times(PyObject* self, PyObject* args); |
+#endif |
static PyObject* get_system_boot_time(PyObject* self, PyObject* args); |
static PyObject* get_disk_partitions(PyObject* self, PyObject* args); |
static PyObject* get_network_io_counters(PyObject* self, PyObject* args); |
+static PyObject* get_disk_io_counters(PyObject* self, PyObject* args); |