4 ms·
fstat(2) on the output file descriptor, stat(2) on the input file name, see if they have the same block device and inode numbers.
by aaronmdjones 9y ago
fstat(2) on the output file descriptor, stat(2) on the input file name, see if they have the same block device and inode numbers.