Hacker News new | ask | show | jobs
by aaronmdjones 3075 days 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.