emit_dotdot

Function emit_dotdot 

Source
pub fn emit_dotdot(
    file: &FileObject,
    sink: &mut dyn DirentSink,
) -> Result<(), Errno>
Expand description

If the offset is less than 2, emits . and .. entries for the specified file.

The offset will always be at least 2 after this function returns successfully. It’s often necessary to subtract 2 from the offset in subsequent logic.