'\" t .\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_GRIDFS_FILE_SEEK" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX int mongoc_gridfs_file_seek (mongoc_gridfs_file_t *file, int64_t delta, int whence); .EE .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBfile\fP: A \fI\%mongoc_gridfs_file_t\fP\&. .IP \(bu 2 \fBdelta\fP: The amount to move the file position. May be positive or negative. .IP \(bu 2 \fBwhence\fP: One of SEEK_SET, SEEK_CUR or SEEK_END. .UNINDENT .SH DESCRIPTION .sp Adjust the file position pointer in the given file by \fBdelta\fP, starting from the position \fBwhence\fP\&. The \fBwhence\fP argument is interpreted as in \fBfseek(2)\fP: .TS center; |l|l|. _ T{ \fBSEEK_SET\fP T} T{ Set the position relative to the start of the file. T} _ T{ \fBSEEK_CUR\fP T} T{ Move \fBdelta\fP relative to the current file position. T} _ T{ \fBSEEK_END\fP T} T{ Move \fBdelta\fP relative to the end of the file. T} _ .TE .sp On success, the file\(aqs underlying position pointer is set appropriately. On failure, the file position is NOT changed and errno is set to indicate the error. .SH ERRORS .TS center; |l|l|. _ T{ \fBEINVAL\fP T} T{ \fBwhence\fP is not one of SEEK_SET, SEEK_CUR or SEEK_END. T} _ T{ \fBEINVAL\fP T} T{ The resulting file position would be negative. T} _ .TE .SH RETURNS .sp Returns 0 if successful; otherwise \-1 and errno is set. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .