Close file descriptor fd . Macintosh, Unix, Windows. Return a duplicate of file descriptor fd . Macintosh, Unix, Windows. Return system configuration information relevant to an open file.
Some platforms define additional names as well.
For configuration variables not included in that mapping, passing an integer for name is also accepted. If name is a string and is not known, ValueError is raised. Truncate the file corresponding to file descriptor fd , so that it is at most length bytes in size. Open the file file and set various flags according to flags and possibly its mode according to mode . Return the file descriptor for the newly opened file.