Function rustix::fs::tell

source ·
pub fn tell<Fd: AsFd>(fd: Fd) -> Result<u64>
Expand description

lseek(fd, 0, SEEK_CUR)—Returns the current position within a file.

Return the current position of the file descriptor. This is a subset of the functionality of seek, but this interface makes it easier for users to declare their intent not to mutate any state.

References