|
@@ -110,7 +110,11 @@ RTM_EXPORT(close);
|
|
* @return the actual read data buffer length. If the returned value is 0, it
|
|
* @return the actual read data buffer length. If the returned value is 0, it
|
|
* may be reach the end of file, please check errno.
|
|
* may be reach the end of file, please check errno.
|
|
*/
|
|
*/
|
|
|
|
+#ifdef _READ_WRITE_RETURN_TYPE
|
|
|
|
+_READ_WRITE_RETURN_TYPE read(int fd, void *buf, size_t len) /* some gcc tool chains will use different data structure */
|
|
|
|
+#else
|
|
ssize_t read(int fd, void *buf, size_t len)
|
|
ssize_t read(int fd, void *buf, size_t len)
|
|
|
|
+#endif
|
|
{
|
|
{
|
|
int result;
|
|
int result;
|
|
struct dfs_fd *d;
|
|
struct dfs_fd *d;
|
|
@@ -150,7 +154,11 @@ RTM_EXPORT(read);
|
|
*
|
|
*
|
|
* @return the actual written data buffer length.
|
|
* @return the actual written data buffer length.
|
|
*/
|
|
*/
|
|
|
|
+#ifdef _READ_WRITE_RETURN_TYPE
|
|
|
|
+_READ_WRITE_RETURN_TYPE write(int fd, const void *buf, size_t len) /* some gcc tool chains will use different data structure */
|
|
|
|
+#else
|
|
ssize_t write(int fd, const void *buf, size_t len)
|
|
ssize_t write(int fd, const void *buf, size_t len)
|
|
|
|
+#endif
|
|
{
|
|
{
|
|
int result;
|
|
int result;
|
|
struct dfs_fd *d;
|
|
struct dfs_fd *d;
|