diff --git a/os/sb/host/sbapi.c b/os/sb/host/sbapi.c index e01c0adb0..0143e9953 100644 --- a/os/sb/host/sbapi.c +++ b/os/sb/host/sbapi.c @@ -990,9 +990,9 @@ void sb_api_stdio(struct port_extctx *ectxp) { ectxp->r3); break; case SB_POSIX_GETDENTS: - ectxp->r0 = sbPosixGetdents(ectxp->r1, - (void *)ectxp->r2, - (size_t)ectxp->r3); + ectxp->r0 = sb_posix_getdents(ectxp->r1, + (void *)ectxp->r2, + (size_t)ectxp->r3); break; default: ectxp->r0 = CH_RET_ENOSYS; diff --git a/os/sb/host/sbposix.c b/os/sb/host/sbposix.c index 479df7d76..d852a0b1f 100644 --- a/os/sb/host/sbposix.c +++ b/os/sb/host/sbposix.c @@ -257,7 +257,7 @@ off_t sb_posix_lseek(int fd, off_t offset, int 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; vfs_direntry_info_t *dip; msg_t ret; diff --git a/os/sb/host/sbposix.h b/os/sb/host/sbposix.h index 442591679..09169e8fd 100644 --- a/os/sb/host/sbposix.h +++ b/os/sb/host/sbposix.h @@ -67,7 +67,7 @@ extern "C" { 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); 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 void sbPosixRegisterDescriptor(sb_class_t *sbp, int fd, vfs_node_c *np); #endif