/psutil/arch/osx/process_info.h
C++ Header | 22 lines | 8 code | 4 blank | 10 comment | 0 complexity | 0cde7ea519663862008031f68b8939d1 MD5 | raw file
Possible License(s): BSD-3-Clause
- /*
- * $Id: process_info.h 1407 2012-06-30 17:14:54Z g.rodola@gmail.com $
- *
- * 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.
- *
- * Helper functions related to fetching process information. Used by _psutil_osx
- * module methods.
- */
- #include <Python.h>
- typedef struct kinfo_proc kinfo_proc;
- int get_proc_list(kinfo_proc **procList, size_t *procCount);
- int get_kinfo_proc(pid_t pid, struct kinfo_proc *kp);
- int get_argmax(void);
- int pid_exists(long pid);
- int psutil_proc_pidinfo(long pid, int flavor, void *pti, int size);
- PyObject* get_arg_list(long pid);