From 6e23a5129375ae19abadc0de49f920899b6e765c Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 19 Apr 2023 20:37:32 -0700 Subject: OSX C refact: reconstruct _psutil_osx.c to preserve history Signed-off-by: Giampaolo Rodola --- psutil/arch/osx/proc.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 psutil/arch/osx/proc.h (limited to 'psutil/arch/osx/proc.h') diff --git a/psutil/arch/osx/proc.h b/psutil/arch/osx/proc.h new file mode 100644 index 00000000..621f0cad --- /dev/null +++ b/psutil/arch/osx/proc.h @@ -0,0 +1,19 @@ +/* + * 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 + * found in the LICENSE file. + */ + +#include + +PyObject *psutil_pids(PyObject *self, PyObject *args); +PyObject *psutil_proc_connections(PyObject *self, PyObject *args); +PyObject *psutil_proc_cwd(PyObject *self, PyObject *args); +PyObject *psutil_proc_exe(PyObject *self, PyObject *args); +PyObject *psutil_proc_kinfo_oneshot(PyObject *self, PyObject *args); +PyObject *psutil_proc_memory_uss(PyObject *self, PyObject *args); +PyObject *psutil_proc_name(PyObject *self, PyObject *args); +PyObject *psutil_proc_num_fds(PyObject *self, PyObject *args); +PyObject *psutil_proc_open_files(PyObject *self, PyObject *args); +PyObject *psutil_proc_pidtaskinfo_oneshot(PyObject *self, PyObject *args); +PyObject *psutil_proc_threads(PyObject *self, PyObject *args); -- cgit v1.2.1