Fixed return type of uio_write and stdio_write.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1079 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -651,7 +651,7 @@ uio_lseek(uio_Handle *handle, off_t offset, int whence) {
|
||||
return handle->root->handler->seek(handle, offset, whence);
|
||||
}
|
||||
|
||||
int
|
||||
ssize_t
|
||||
uio_write(uio_Handle *handle, const void *buf, size_t count) {
|
||||
if (handle->root->handler->write == NULL) {
|
||||
errno = ENOSYS;
|
||||
|
||||
@@ -107,7 +107,7 @@ int uio_rmdir(uio_DirHandle *dirHandle, const char *path);
|
||||
|
||||
int uio_lseek(uio_Handle *handle, off_t offset, int whence);
|
||||
|
||||
int uio_write(uio_Handle *handle, const void *buf, size_t count);
|
||||
ssize_t uio_write(uio_Handle *handle, const void *buf, size_t count);
|
||||
|
||||
int uio_unlink(uio_DirHandle *dirHandle, const char *path);
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ stdio_seek(uio_Handle *handle, off_t offset, int whence) {
|
||||
return lseek(handle->native->fd, offset, whence);
|
||||
}
|
||||
|
||||
int
|
||||
ssize_t
|
||||
stdio_write(uio_Handle *handle, const void *buf, size_t count) {
|
||||
return write(handle->native->fd, buf, count);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ int stdio_stat(uio_PDirHandle *pDirHandle, const char *name,
|
||||
ssize_t stdio_read(uio_Handle *handle, void *buf, size_t count);
|
||||
int stdio_rmdir(uio_PDirHandle *pDirHandle, const char *name);
|
||||
off_t stdio_seek(uio_Handle *handle, off_t offset, int whence);
|
||||
int stdio_write(uio_Handle *handle, const void *buf, size_t count);
|
||||
ssize_t stdio_write(uio_Handle *handle, const void *buf, size_t count);
|
||||
int stdio_unlink(uio_PDirHandle *pDirHandle, const char *name);
|
||||
|
||||
stdio_EntriesIterator *stdio_openEntries(uio_PDirHandle *pDirHandle);
|
||||
|
||||
Reference in New Issue
Block a user