From 241f7754fce19e2f7e79973379b3346a4261603c Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Thu, 24 Oct 2019 12:18:30 -0700 Subject: [PATCH] Change hard link count to 64-bits. This commit changes the type for `__wasi_linkcount_t` to 64-bits to support large link counts. Fixes #70. --- phases/ephemeral/docs/wasi_ephemeral_preview.md | 2 +- phases/ephemeral/witx/typenames.witx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phases/ephemeral/docs/wasi_ephemeral_preview.md b/phases/ephemeral/docs/wasi_ephemeral_preview.md index a0bdd1825..b77723b34 100644 --- a/phases/ephemeral/docs/wasi_ephemeral_preview.md +++ b/phases/ephemeral/docs/wasi_ephemeral_preview.md @@ -1799,7 +1799,7 @@ Members: The address and length of the buffer to be filled. -### `__wasi_linkcount_t` (`uint32_t`) +### `__wasi_linkcount_t` (`uint64_t`) Number of hard links to an inode. diff --git a/phases/ephemeral/witx/typenames.witx b/phases/ephemeral/witx/typenames.witx index 5cccd2cda..e0fe6b829 100644 --- a/phases/ephemeral/witx/typenames.witx +++ b/phases/ephemeral/witx/typenames.witx @@ -451,7 +451,7 @@ ) ;; Number of hard links to an inode. -(typename $linkcount_t u32) +(typename $linkcount_t u64) ;; File attributes. (typename $filestat_t