mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-17 15:38:14 +08:00
修复mico-sdk错误
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
/*******************
|
||||
*
|
||||
* Copyright 1998-2010 IAR Systems AB.
|
||||
*
|
||||
* This is a template implementation of the "__lseek" function used by
|
||||
* the standard library. Replace it with a system-specific
|
||||
* implementation.
|
||||
*
|
||||
* The "__lseek" function makes the next file operation (__read or
|
||||
* __write) act on a new location. The parameter "whence" specifies
|
||||
* how the "offset" parameter should be interpreted according to the
|
||||
* following table:
|
||||
*
|
||||
* 0 (=SEEK_SET) - Goto location "offset".
|
||||
* 1 (=SEEK_CUR) - Go "offset" bytes from the current location.
|
||||
* 2 (=SEEK_END) - Go to "offset" bytes from the end.
|
||||
*
|
||||
* This function should return the current file position, or -1 on
|
||||
* failure.
|
||||
*
|
||||
********************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <yfuns.h>
|
||||
|
||||
_STD_BEGIN
|
||||
|
||||
#pragma module_name = "?__lseek"
|
||||
|
||||
#pragma diag_suppress = Pe826
|
||||
|
||||
long __lseek(int handle, long offset, int whence)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
_STD_END
|
||||
/*******************
|
||||
*
|
||||
* Copyright 1998-2010 IAR Systems AB.
|
||||
*
|
||||
* This is a template implementation of the "__lseek" function used by
|
||||
* the standard library. Replace it with a system-specific
|
||||
* implementation.
|
||||
*
|
||||
* The "__lseek" function makes the next file operation (__read or
|
||||
* __write) act on a new location. The parameter "whence" specifies
|
||||
* how the "offset" parameter should be interpreted according to the
|
||||
* following table:
|
||||
*
|
||||
* 0 (=SEEK_SET) - Goto location "offset".
|
||||
* 1 (=SEEK_CUR) - Go "offset" bytes from the current location.
|
||||
* 2 (=SEEK_END) - Go to "offset" bytes from the end.
|
||||
*
|
||||
* This function should return the current file position, or -1 on
|
||||
* failure.
|
||||
*
|
||||
********************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <yfuns.h>
|
||||
|
||||
_STD_BEGIN
|
||||
|
||||
#pragma module_name = "?__lseek"
|
||||
|
||||
#pragma diag_suppress = Pe826
|
||||
|
||||
long __lseek(int handle, long offset, int whence)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
_STD_END
|
||||
|
||||
Reference in New Issue
Block a user