OLD | NEW |
1 /* | 1 /* |
2 * $Id: process_info.h 213 2009-03-05 15:48:22Z jloden $ | 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_bsd | 8 * Helper functions related to fetching process information. Used by _psutil_bsd |
5 * module methods. | 9 * module methods. |
6 */ | 10 */ |
7 | 11 |
8 #include <Python.h> | 12 #include <Python.h> |
9 | 13 |
10 typedef struct kinfo_proc kinfo_proc; | 14 typedef struct kinfo_proc kinfo_proc; |
11 | 15 |
12 int get_proc_list(struct kinfo_proc **procList, size_t *procCount); | 16 int get_proc_list(struct kinfo_proc **procList, size_t *procCount); |
13 char *getcmdargs(long pid, size_t *argsize); | 17 char *getcmdargs(long pid, size_t *argsize); |
14 char *getcmdpath(long pid, size_t *pathsize); | 18 char *getcmdpath(long pid, size_t *pathsize); |
15 PyObject* get_arg_list(long pid); | 19 PyObject* get_arg_list(long pid); |
| 20 int pid_exists(long pid); |
16 | 21 |
OLD | NEW |