mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -5917,18 +5917,18 @@ interface of the same name.
|
||||
|
||||
<ul><pre>
|
||||
#include <unistd.h>
|
||||
int close(int fd);
|
||||
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);
|
||||
int unlink(const char *path);
|
||||
int write(int fd, const void *buf, unsigned int nbytes);
|
||||
int close(int fd);
|
||||
int dup(int fildes);
|
||||
int dup2(int fildes1, int fildes2);
|
||||
off_t lseek(int fd, off_t offset, int whence);
|
||||
ssize_t read(int fd, void *buf, size_t nbytes);
|
||||
int unlink(const char *path);
|
||||
ssize_t write(int fd, const void *buf, size_t nbytes);
|
||||
</pre></ul>
|
||||
|
||||
<ul><pre>
|
||||
#include <sys/ioctl.h>
|
||||
int ioctl(int fd, int req, unsigned long arg);
|
||||
int ioctl(int fd, int req, unsigned long arg);
|
||||
</pre></ul>
|
||||
|
||||
<h2><a name="directoryoperations">2.11.3 Directory Operations</a></h2>
|
||||
|
||||
Reference in New Issue
Block a user