diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 01:49:35 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 01:49:35 +0100 |
commit | 66a7b561d014ea068c0e0bd43091ef6d34aae559 (patch) | |
tree | c156713056787b588f0522383ec183af801b8786 | |
parent | e702926a3306fa8fb74d4034b0071bea4a37482c (diff) | |
download | psutil-66a7b561d014ea068c0e0bd43091ef6d34aae559.tar.gz |
rename C fun
-rw-r--r-- | psutil/_psutil_openbsd.c | 12 | ||||
-rw-r--r-- | psutil/arch/openbsd/openbsd.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/psutil/_psutil_openbsd.c b/psutil/_psutil_openbsd.c index 5d723aa5..e177f2bb 100644 --- a/psutil/_psutil_openbsd.c +++ b/psutil/_psutil_openbsd.c @@ -990,7 +990,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) { if (psutil_kinfo_proc(pid, &kipp) == -1) goto error; - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); goto error; @@ -1037,7 +1037,7 @@ psutil_proc_num_fds(PyObject *self, PyObject *args) { if (psutil_kinfo_proc(pid, &kipp) == -1) return NULL; - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); return NULL; @@ -1066,7 +1066,7 @@ psutil_proc_cwd(PyObject *self, PyObject *args) { if (psutil_kinfo_proc(pid, &kipp) == -1) goto error; - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); goto error; @@ -1118,7 +1118,7 @@ psutil_proc_open_files(PyObject *self, PyObject *args) { if (psutil_kinfo_proc(pid, &kipp) == -1) goto error; - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); goto error; @@ -1166,7 +1166,7 @@ psutil_proc_num_fds(PyObject *self, PyObject *args) { if (psutil_kinfo_proc(pid, &kipp) == -1) return NULL; - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); return NULL; @@ -1273,7 +1273,7 @@ psutil_proc_connections(PyObject *self, PyObject *args) { goto error; } - freep = kinfo_getfile(pid, &cnt); + freep = psutil_kinfo_getfile(pid, &cnt); if (freep == NULL) { psutil_raise_ad_or_nsp(pid); goto error; diff --git a/psutil/arch/openbsd/openbsd.c b/psutil/arch/openbsd/openbsd.c index 3f8da3bf..64d30ec0 100644 --- a/psutil/arch/openbsd/openbsd.c +++ b/psutil/arch/openbsd/openbsd.c @@ -30,7 +30,7 @@ * and returns an array with cnt struct kinfo_file */ struct kinfo_file * -kinfo_getfile(long pid, int* cnt) { +psutil_kinfo_getfile(long pid, int* cnt) { int mib[6]; size_t len; struct kinfo_file* kf; |