@@ -27,7 +27,7 @@ conv_descriptor(PyObject *object, int *target)
2727}
2828
2929
30- /* fcntl(fd, opt , [arg]) */
30+ /* fcntl(fd, op , [arg]) */
3131
3232static PyObject *
3333fcntl_fcntl (PyObject * self , PyObject * args )
@@ -77,11 +77,12 @@ fcntl_fcntl(PyObject *self, PyObject *args)
7777}
7878
7979PyDoc_STRVAR (fcntl_doc ,
80- "fcntl(fd, opt , [arg])\n\
80+ "fcntl(fd, op , [arg])\n\
8181\n\
82- Perform the requested operation on file descriptor fd. The operation\n\
83- is defined by op and is operating system dependent. These constants are\n\
84- available from the fcntl module. The argument arg is optional, and\n\
82+ Perform the operation op on file descriptor fd. The values used\n\
83+ for op are operating system dependent, and are available\n\
84+ as constants in the fcntl module, using the same names as used in\n\
85+ the relevant C header files. The argument arg is optional, and\n\
8586defaults to 0; it may be an int or a string. If arg is given as a string,\n\
8687the return value of fcntl is a string of that length, containing the\n\
8788resulting value put in the arg buffer by the operating system. The length\n\
@@ -90,7 +91,7 @@ is an integer or if none is specified, the result value is an integer\n\
9091corresponding to the return value of the fcntl call in the C code." );
9192
9293
93- /* ioctl(fd, opt , [arg]) */
94+ /* ioctl(fd, op , [arg]) */
9495
9596static PyObject *
9697fcntl_ioctl (PyObject * self , PyObject * args )
@@ -104,7 +105,7 @@ fcntl_ioctl(PyObject *self, PyObject *args)
104105 whereas the system expects it to be a 32bit bit field value
105106 regardless of it being passed as an int or unsigned long on
106107 various platforms. See the termios.TIOCSWINSZ constant across
107- platforms for an example of thise .
108+ platforms for an example of this .
108109
109110 If any of the 64bit platforms ever decide to use more than 32bits
110111 in their unsigned long ioctl codes this will break and need
@@ -222,11 +223,12 @@ fcntl_ioctl(PyObject *self, PyObject *args)
222223}
223224
224225PyDoc_STRVAR (ioctl_doc ,
225- "ioctl(fd, opt [, arg[, mutate_flag]])\n\
226+ "ioctl(fd, op [, arg[, mutate_flag]])\n\
226227\n\
227- Perform the requested operation on file descriptor fd. The operation is\n\
228- defined by opt and is operating system dependent. Typically these codes are\n\
229- retrieved from the fcntl or termios library modules.\n\
228+ Perform the operation op on file descriptor fd. The values used for op\n\
229+ are operating system dependent, and are available as constants in the\n\
230+ fcntl or termios library modules, using the same names as used in the\n\
231+ relevant C header files.\n\
230232\n\
231233The argument arg is optional, and defaults to 0; it may be an int or a\n\
232234buffer containing character data (most likely a string or an array). \n\
0 commit comments