Skip to content

Commit ee28469

Browse files
committed
Add a fd_tell syscall.
This allows users that just need to know the current offset to use a weaker form of static capability.
1 parent f263fea commit ee28469

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • libc-bottom-half/headers/public

libc-bottom-half/headers/public/wasi.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,11 @@ __wasi_errno_t __wasi_fd_seek(
604604
__wasi_filesize_t *newoffset
605605
) __WASI_SYSCALL_NAME(fd_seek) __attribute__((__warn_unused_result__));
606606

607+
__wasi_errno_t __wasi_fd_tell(
608+
__wasi_fd_t fd,
609+
__wasi_filesize_t *newoffset
610+
) __WASI_SYSCALL_NAME(fd_tell) __attribute__((__warn_unused_result__));
611+
607612
__wasi_errno_t __wasi_fd_stat_get(
608613
__wasi_fd_t fd,
609614
__wasi_fdstat_t *buf

0 commit comments

Comments
 (0)