xiaoxiang781216 commented on a change in pull request #4828: URL: https://github.com/apache/incubator-nuttx/pull/4828#discussion_r750447910
########## File path: libs/libc/stdio/lib_fseek.c ########## @@ -22,66 +22,13 @@ * Included Files ****************************************************************************/ -#include <nuttx/config.h> - -#include <sys/types.h> #include <stdio.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> - -#include "libc.h" /**************************************************************************** * Public Functions ****************************************************************************/ -/**************************************************************************** - * Name: fseek - * - * Description: - * The fseek() function sets the file position indicator for the stream - * pointed to by stream. The new position, measured in bytes, is obtained - * by adding offset bytes to the position specified by whence. If whence is - * set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the - * start of the file, the current position indicator, or end-of-file, - * respectively. A successful call to the fseek() function clears the - * end-of-file indicator for the stream and undoes any effects of the - * ungetc(3) function on the same stream. - * - * Returned Value: - * Zero on success; -1 on failure with errno set appropriately. - * - ****************************************************************************/ - Review comment: Restore ########## File path: libs/libc/stdio/lib_fseeko.c ########## @@ -22,13 +22,66 @@ * Included Files ****************************************************************************/ +#include <nuttx/config.h> + +#include <sys/types.h> #include <stdio.h> +#include <unistd.h> +#include <fcntl.h> +#include <errno.h> + +#include "libc.h" /**************************************************************************** * Public Functions ****************************************************************************/ +/**************************************************************************** + * Name: fseeko + * + * Description: + * The fseeko() function sets the file position indicator for the stream + * pointed to by stream. The new position, measured in bytes, is obtained + * by adding offset bytes to the position specified by whence. If whence is + * set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the + * start of the file, the current position indicator, or end-of-file, + * respectively. A successful call to the fseek() function clears the Review comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org