PageRenderTime 18ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/psutil/arch/osx/process_info.h

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