Does sendfile() copy extended attributes?

Joseph D. Wagner
2003-12-15T05:39:33Z

I want to use sendfile() to completely copy a file so that the copy is an
EXACT, INDISTINGUISHABLE duplicate of the original.

Hence, I need to know if sendfile() copies the extended attributes in
addition to the file itself.

While I have your attention, does sendfile() also copy the inode attributes
(i.e. secure delete, compressed, etc.)?

TIA.

Joseph D. Wagner