OLD | NEW |
1 /* | 1 /* |
2 * $Id: process_info.h 760 2010-10-30 17:41:07Z g.rodola $ | 2 * $Id: process_info.h 1142 2011-10-05 18:45:49Z g.rodola $ |
| 3 * |
| 4 * Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. |
| 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. |
3 * | 7 * |
4 * Helper functions related to fetching process information. Used by _psutil_osx | 8 * Helper functions related to fetching process information. Used by _psutil_osx |
5 * module methods. | 9 * module methods. |
6 */ | 10 */ |
7 | 11 |
8 #include <Python.h> | 12 #include <Python.h> |
9 | 13 |
10 | 14 |
11 typedef struct kinfo_proc kinfo_proc; | 15 typedef struct kinfo_proc kinfo_proc; |
12 | 16 |
13 int get_proc_list(kinfo_proc **procList, size_t *procCount); | 17 int get_proc_list(kinfo_proc **procList, size_t *procCount); |
14 int getcmdargs(long pid, PyObject **exec_path, PyObject **envlist, PyObject **ar
glist); | 18 int get_kinfo_proc(pid_t pid, struct kinfo_proc *kp); |
| 19 int get_argmax(void); |
| 20 int pid_exists(long pid); |
15 PyObject* get_arg_list(long pid); | 21 PyObject* get_arg_list(long pid); |
16 int get_kinfo_proc(pid_t pid, struct kinfo_proc *kp); | |
OLD | NEW |