[issue23098] mknod devices can be >32 bits

Serhiy Storchaka report at bugs.python.org
Mon Dec 22 10:20:23 CET 2014


Serhiy Storchaka added the comment:

This is not so easy as look at first glance. PY_LONG_LONG should be used instead of long long. And as far as this type is optional, its use should be conditional if HAVE_LONG_LONG is defined.

May be needed complex converter like _Py_Uid_Converter because dev_t on Linux is 64-bit unsigned int and can not fit in the range of 64-bit signed int.

The code for 3.x should be even more complex due to using Argument Clinic.

----------
components: +Extension Modules
nosy: +serhiy.storchaka
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23098>
_______________________________________


More information about the Python-bugs-list mailing list