]> granicus.if.org Git - python/commitdiff
Fix the fcntl() docstring so the user is not mis-directed to the FCNTL
authorFred Drake <fdrake@acm.org>
Thu, 10 May 2001 15:54:32 +0000 (15:54 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 May 2001 15:54:32 +0000 (15:54 +0000)
module for useful constants.

Modules/fcntlmodule.c

index f6dd03a461bcf2f1e03f7a4fd8763175389b0143..c45dbe903db179c118848077e0702ac855622073 100644 (file)
@@ -81,13 +81,13 @@ static char fcntl_doc [] =
 "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.  Typically these\n\
-codes can be retrieved from the library module FCNTL.  The argument arg\n\
-is optional, and defaults to 0; it may be an int or a string. If arg is\n\
-given as a string, the return value of fcntl is a string of that length,\n\
-containing the resulting value put in the arg buffer by the operating system.\n\
-The length of the arg string is not allowed to exceed 1024 bytes. If the arg\n\
-given is an integer or if none is specified, the result value is an integer\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\
+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\
+of the arg string is not allowed to exceed 1024 bytes. If the arg given\n\
+is an integer or if none is specified, the result value is an integer\n\
 corresponding to the return value of the fcntl call in the C code.";