rustix::fs

Function tell

Source
pub fn tell<Fd: AsFd>(fd: Fd) -> Result<u64>
Available on crate feature fs only.
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