diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-24 09:55:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 09:55:52 -0800 |
commit | 7a2572268168e96c8841ca83ab1a89735ec02c3a (patch) | |
tree | 656a58683c5c48308152b302f1a31c4c82e74106 /psutil/_psutil_common.h | |
parent | 88beee9e0d169e979a3027bf9e61c59ccc1ad6e3 (diff) | |
download | psutil-7a2572268168e96c8841ca83ab1a89735ec02c3a.tar.gz |
#1428 in case of error, show the C syscall which caused it
Diffstat (limited to 'psutil/_psutil_common.h')
-rw-r--r-- | psutil/_psutil_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/psutil/_psutil_common.h b/psutil/_psutil_common.h index e107166a..70698107 100644 --- a/psutil/_psutil_common.h +++ b/psutil/_psutil_common.h @@ -22,6 +22,7 @@ PyObject* PyUnicode_DecodeFSDefaultAndSize(char *s, Py_ssize_t size); PyObject* AccessDenied(const char *msg); PyObject* NoSuchProcess(const char *msg); +PyObject* PyErr_SetFromOSErrnoWithSyscall(const char *syscall); PyObject* psutil_set_testing(PyObject *self, PyObject *args); void psutil_debug(const char* format, ...); |