This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add constants for ioctl request codes
Type: enhancement Stage:
Components: Extension Modules Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mrl, neologix, pitrou, serhiy.storchaka
Priority: normal Keywords:

Created on 2014-10-22 15:12 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin.

Messages (3)
msg229827 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-10-22 15:12
It would be useful to expose ioctl request codes (Linux specific?) [1] at Python level.

In particular this will allow to determine MAC address in uuid at Python level without using ctypes or calling external programs. [2]

[1] http://man7.org/linux/man-pages/man2/ioctl_list.2.html
[2] http://code.activestate.com/recipes/439094-get-the-ip-address-associated-with-a-network-inter/
msg229891 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2014-10-23 19:03
Adding ioctl constants is fine.
However, I think that if we do this, it'd be great if we could also
expose this information in a module (since psutil inclusion was
discussed recently), but that's probably another issue.
msg238288 - (view) Author: M. Levinson (mrl) Date: 2015-03-17 12:37
In addition to ioctl constants from Linux, it would also be very helpful
to add the constants from NetBSD et al. that are described in their ioctl(2) man page: http://man.netbsd.org/man/ioctl+2+NetBSD-current

Thank you!
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66887
2015-07-21 07:22:52ethan.furmansetnosy: - ethan.furman
2015-03-17 12:37:39mrlsetnosy: + mrl
messages: + msg238288
2014-10-23 19:03:30neologixsetmessages: + msg229891
2014-10-22 18:36:25pitrousetnosy: + neologix
2014-10-22 15:13:21ethan.furmansetnosy: + ethan.furman
2014-10-22 15:12:03serhiy.storchakacreate