Lines Matching defs:file
175 // but is if "three" is a file. The others we dereference and catch
242 // Find all file in a colon-separated path with access type "type" (generally
243 // X_OK or R_OK). Returns a list of absolute paths to each file found, in
511 // Return how long the file at fd is, if there's any way to determine it.
552 // Read contents of file as a single nul-terminated string.
553 // measure file size if !len, allocate buffer if !buf
713 // Inability to open a file prints a warning, but doesn't exit.
781 // Open a temporary file to copy an existing file into.
791 // Set permissions of output file.
804 // Abort the copy and delete the temporary file.
1072 // Return pointer to xabspath(file) if file is under dir, else 0
1073 char *fileunderdir(char *file, char *dir)
1075 char *s1 = xabspath(dir, 1), *s2 = xabspath(file, -1), *ss = s2;
1120 // If we have a path to existing file only match if same inode
1370 // Iterate over lines in file, calling function. Function can write 0 to
1372 // otherwise line is freed. Passed file descriptor is closed at the end.