New submission from Yuval Weinbaum:

In fcntl module, the documentation states the following regarding the 
mutate_flag in ioctl method:

***
If it is false, the buffer’s mutability is ignored and behaviour is as for a 
read-only buffer, except that the 1024 byte limit mentioned above is avoided – 
so long as the buffer you pass is as least as long as what the operating system 
wants to put there, things should work.
***

However, looking at the code (fcntlmodule.c) it seems that the 1024 bytes 
limitation is avoided when the mutate_flag is set to True (the opposite of what 
is stated in the doc).

----------
assignee: docs@python
components: Documentation
messages: 178732
nosy: Yuval.Weinbaum, docs@python
priority: normal
severity: normal
status: open
title: ioctl mutate_flag behavior in regard to the buffer size limit
versions: Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to