diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2005-07-28 07:19:11 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2005-07-28 07:19:11 +0000 |
commit | d9310412ea40ec2e9972b89bc0816ac5f48955d0 (patch) | |
tree | c8fde38ff7a235ed7aab40c6fcff8f49edf0ab3f /lang/python22/files/patch-Modules::fcntlmodule.c | |
parent | - Add support for FreeBSD 7 (diff) |
- Add support for FreeBSD 7
- Drop support for FreeBSD 3
- Fix fcntl.ioctl argument parsing to accept termios.TIOCGWINSZ. [1]
Submitted by: jkim [1]
Obtained from: Python CVS
Notes
Notes:
svn path=/head/; revision=140290
Diffstat (limited to '')
-rw-r--r-- | lang/python22/files/patch-Modules::fcntlmodule.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python22/files/patch-Modules::fcntlmodule.c b/lang/python22/files/patch-Modules::fcntlmodule.c new file mode 100644 index 000000000000..7ff8e449cf0d --- /dev/null +++ b/lang/python22/files/patch-Modules::fcntlmodule.c @@ -0,0 +1,20 @@ +--- Modules/fcntlmodule.c.orig Sat Jan 12 20:13:23 2002 ++++ Modules/fcntlmodule.c Thu Jul 28 16:10:26 2005 +@@ -100,7 +100,7 @@ + int len; + char buf[1024]; + +- if (PyArg_ParseTuple(args, "O&is#:ioctl", ++ if (PyArg_ParseTuple(args, "O&Is#:ioctl", + conv_descriptor, &fd, &code, &str, &len)) { + if (len > sizeof buf) { + PyErr_SetString(PyExc_ValueError, +@@ -121,7 +121,7 @@ + PyErr_Clear(); + arg = 0; + if (!PyArg_ParseTuple(args, +- "O&i|i;ioctl requires a file or file descriptor," ++ "O&I|i;ioctl requires a file or file descriptor," + " an integer and optionally a third integer or a string", + conv_descriptor, &fd, &code, &arg)) { + return NULL; |