OpenFile fptr;
fptr = getOpenFileChecked();
boolean locked = fptr.lock();
try {
if (fptr.seek(context, 0L, 0) < 0 && fptr.errno() != null)
throw context.runtime.newErrnoFromErrno(fptr.errno(), fptr.getPath());
RubyArgsFile.ArgsFileData data = RubyArgsFile.ArgsFileData.getDataFrom(runtime.getArgsFile());
if (this == data.currentFile) {
data.currentLineNumber -= fptr.getLineNumber();
}