Lines Matching defs:file

1 /** @file

77 #define HAVE_UTIME_H /* pretend we do for the rest of this file */
323 {"st_flags", "user defined flags for file"},
642 Change the access permissions of a file.");
666 Change the access permissions of the file given by file\n\
687 Change the access permissions of a file. If path is a symlink, this\n\
713 Set file flags.");
738 Set file flags.\n\
776 force write of file with filedescriptor to disk.");
793 force write of file with filedescriptor to disk.\n\
833 Change the owner and group id of the file given by file descriptor\n\
1187 Rename a file or directory.");
1257 Remove a file (same as remove(path)).");
1261 Remove a file (same as unlink(path)).");
1310 Set the access and modified time of the file to the given values. If the\n\
1425 path: path of executable file\n\
1496 path: path of executable file\n\
1642 path: path of executable file\n\
1729 path: path of executable file\n\
1880 "spawnvp(mode, file, args)\n\n\
1881 Execute the program 'file' in a new process, using the environment\n\
1882 search path to find the file.\n\
1885 file: executable file name\n\
1958 "spawnvpe(mode, file, args, env)\n\n\
1959 Execute the program 'file' in a new process, using the environment\n\
1960 search path to find the file.\n\
1963 file: executable file name\n\
2641 Open a pipe to/from a command returning a file object.");
2719 /* if execution of child was successful return file stream */
2781 /* These tell _PyPopen() whether to return 1, 2, or 3 file objects. */
2788 static int _PyPclose(FILE *file);
2791 * Internal dictionary mapping popen* file pointers to process handles,
2799 * The result of this function is a pipe (file) connected to the
2893 * file handles and pipes
2920 /* file modes for subsequent fdopen's on pipe handles */
3102 /* build tuple of file objects to return */
3123 * either insert all file handles into the dictionary or none
3219 * input file pointer to information about the process that was
3220 * originally created by the popen* call that created the file pointer.
3221 * The dictionary uses the file pointer as a key (with one entry
3222 * inserted for each file returned by the original popen* call) and a
3224 * The list object contains the Win32 process handle at [0], and a file
3225 * count at [1], which is initialized to the total number of file
3229 * the file count in the dictionary for the process handle pointed to
3230 * by this file. On the last close (when the file count reaches zero),
3240 static int _PyPclose(FILE *file)
3251 /* Close the file handle first, to ensure it can't block the
3254 result = fclose(file);
3261 if ((fileObj = PyLong_FromVoidPtr(file)) != NULL &&
3279 /* Last file for this process */
3296 /* Indicate failure - this will cause the file object
3300 * but that's a consistent problem with the file object.
3306 /* Remove this file pointer from dictionary */
3342 /* These tell _PyPopen() wether to return 1, 2, or 3 file objects. */
3349 static int _PyPclose(FILE *file);
3352 * Internal dictionary mapping popen* file pointers to process handles,
3361 * The result of this function is a pipe (file) connected to the
3402 * The result of this function is a pipe (file) connected to the
3568 /* Eeek - file-not-found - possibly an embedding
3582 "file not found" - as the user is probably blissfully
3871 * either insert all file handles into the dictionary or none
3972 * input file pointer to information about the process that was
3973 * originally created by the popen* call that created the file pointer.
3974 * The dictionary uses the file pointer as a key (with one entry
3975 * inserted for each file returned by the original popen* call) and a
3977 * The list object contains the Win32 process handle at [0], and a file
3978 * count at [1], which is initialized to the total number of file
3982 * the file count in the dictionary for the process handle pointed to
3983 * by this file. On the last close (when the file count reaches zero),
3993 static int _PyPclose(FILE *file)
4004 /* Close the file handle first, to ensure it can't block the
4007 result = fclose(file);
4012 if ((fileObj = PyLong_FromVoidPtr(file)) != NULL &&
4027 /* Last file for this process */
4036 /* Indicate failure - this will cause the file object
4040 * but that's a consistent problem with the file object.
4044 * set errno for the file object error handling.
4055 /* Remove this file pointer from dictionary */
4765 /* Functions acting on file descriptors */
4769 Open a file (for low level IO).");
4774 char *file = NULL;
4780 Py_FileSystemDefaultEncoding, &file,
4785 fd = open(file, flag, mode);
4788 return posix_error_with_allocated_filename(file);
4789 PyMem_Free(file);
4796 Close a file descriptor (for low level IO).");
4818 Closes all file descriptors in [fd_low, fd_high), ignoring errors.");
4837 Return a duplicate of a file descriptor.");
4858 Duplicate file descriptor.");
4880 Set the current position of a file descriptor.");
4926 Read a file descriptor.");
4961 Write a string to a file descriptor.");
4988 Like stat(), but for an open file descriptor.");
5013 Return an open file object connected to a file descriptor.");
5070 Return True if the file descriptor 'fd' is an open file descriptor\n\
5158 Create a filesystem node (file, device special file or named pipe)\n\
5162 device defines the newly created device special file (probably using\n\
5230 Truncate a file to a specified length.");
5391 Return True if the process returning 'status' was dumped to a core file.");
5638 Return a unique name for a temporary file.\n\
5673 "tmpfile() -> file object\n\n\
5674 Create a temporary file with no directory entries.");
5696 Return a unique name for a temporary file.");
5854 Return the configuration limit name for the file descriptor fd.\n\
5882 Return the configuration limit name for the file or directory path.\n\
7239 becomes available on file descriptor */