git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15339 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
0f67a718fa
commit
9fa0d5ecf8
|
@ -990,9 +990,9 @@ void sb_api_stdio(struct port_extctx *ectxp) {
|
||||||
ectxp->r3);
|
ectxp->r3);
|
||||||
break;
|
break;
|
||||||
case SB_POSIX_GETDENTS:
|
case SB_POSIX_GETDENTS:
|
||||||
ectxp->r0 = sbPosixGetdents(ectxp->r1,
|
ectxp->r0 = sb_posix_getdents(ectxp->r1,
|
||||||
(void *)ectxp->r2,
|
(void *)ectxp->r2,
|
||||||
(size_t)ectxp->r3);
|
(size_t)ectxp->r3);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ectxp->r0 = CH_RET_ENOSYS;
|
ectxp->r0 = CH_RET_ENOSYS;
|
||||||
|
|
|
@ -257,7 +257,7 @@ off_t sb_posix_lseek(int fd, off_t offset, int whence) {
|
||||||
whence);;
|
whence);;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t sbPosixGetdents(int fd, void *buf, size_t count) {
|
ssize_t sb_posix_getdents(int fd, void *buf, size_t count) {
|
||||||
sb_class_t *sbp = (sb_class_t *)chThdGetSelfX()->ctx.syscall.p;
|
sb_class_t *sbp = (sb_class_t *)chThdGetSelfX()->ctx.syscall.p;
|
||||||
vfs_direntry_info_t *dip;
|
vfs_direntry_info_t *dip;
|
||||||
msg_t ret;
|
msg_t ret;
|
||||||
|
|
|
@ -67,7 +67,7 @@ extern "C" {
|
||||||
ssize_t sb_posix_read(int fd, void *buf, size_t count);
|
ssize_t sb_posix_read(int fd, void *buf, size_t count);
|
||||||
ssize_t sb_posix_write(int fd, const void *buf, size_t count);
|
ssize_t sb_posix_write(int fd, const void *buf, size_t count);
|
||||||
off_t sb_posix_lseek(int fd, off_t offset, int whence);
|
off_t sb_posix_lseek(int fd, off_t offset, int whence);
|
||||||
ssize_t sbPosixGetdents(int fd, void *buf, size_t count);
|
ssize_t sb_posix_getdents(int fd, void *buf, size_t count);
|
||||||
#if SB_CFG_ENABLE_VFS == TRUE
|
#if SB_CFG_ENABLE_VFS == TRUE
|
||||||
void sbPosixRegisterDescriptor(sb_class_t *sbp, int fd, vfs_node_c *np);
|
void sbPosixRegisterDescriptor(sb_class_t *sbp, int fd, vfs_node_c *np);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue