diff -r 29b8ec9195ff Modules/fcntlmodule.c --- a/Modules/fcntlmodule.c Mon Sep 16 04:03:12 2013 +0200 +++ b/Modules/fcntlmodule.c Mon Sep 16 21:48:32 2013 +0800 @@ -80,8 +80,8 @@ "fcntl(fd, opt, [arg])\n\ \n\ Perform the requested operation on file descriptor fd. The operation\n\ -is defined by op and is operating system dependent. These constants are\n\ -available from the fcntl module. The argument arg is optional, and\n\ +is defined by opt and is operating system dependent. The possible values of\n\ +opt are available from the fcntl module. The argument arg is optional, and\n\ defaults to 0; it may be an int or a string. If arg is given as a string,\n\ the return value of fcntl is a string of that length, containing the\n\ resulting value put in the arg buffer by the operating system. The length\n\ @@ -104,7 +104,7 @@ whereas the system expects it to be a 32bit bit field value regardless of it being passed as an int or unsigned long on various platforms. See the termios.TIOCSWINSZ constant across - platforms for an example of thise. + platforms for an example of this. If any of the 64bit platforms ever decide to use more than 32bits in their unsigned long ioctl codes this will break and need @@ -306,9 +306,9 @@ } PyDoc_STRVAR(flock_doc, -"flock(fd, operation)\n\ +"flock(fd, opt)\n\ \n\ -Perform the lock operation op on file descriptor fd. See the Unix \n\ +Perform the lock operation opt on file descriptor fd. See the Unix \n\ manual page for flock(3) for details. (On some systems, this function is\n\ emulated using fcntl().)");