Fix read()/write() prototype

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@820 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-08-13 00:32:32 +00:00
parent 528d51c825
commit d11167e8dd
2 changed files with 10 additions and 8 deletions

View File

@ -1036,6 +1036,8 @@ nuttx-0.3.13 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
* Removed duplicate getenv() implementation in /lib
* Correct detection of End-of-File in fgets
* Implement sh and crude script handler in NSH
* Fix prototype of read() and write(). Need to use ssize_t and size_t, not
int and unsigned int.
pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>

View File

@ -5921,9 +5921,9 @@ interface of the same name.
int dup(int fildes);
int dup2(int fildes1, int fildes2);
off_t lseek(int fd, off_t offset, int whence);
int read(int fd, void *buf, unsigned int nbytes);
ssize_t read(int fd, void *buf, size_t nbytes);
int unlink(const char *path);
int write(int fd, const void *buf, unsigned int nbytes);
ssize_t write(int fd, const void *buf, size_t nbytes);
</pre></ul>
<ul><pre>