From 8b823a67cc7d4244a8b2525cf38ef9d2776b026e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 19 Oct 2022 14:58:54 -0700 Subject: [PATCH] Remove `allocate`. (#64) * Remove `allocate`. There does not appear to be a way to implement `allocate` in a non-racy way on Windows or macOS. Fixes #19. * Update wasi-filesystem.abi.md. --- wasi-filesystem.abi.md | 16 ---------------- wasi-filesystem.wit.md | 13 ------------- 2 files changed, 29 deletions(-) diff --git a/wasi-filesystem.abi.md b/wasi-filesystem.abi.md index c721ede..34d1ec0 100644 --- a/wasi-filesystem.abi.md +++ b/wasi-filesystem.abi.md @@ -666,22 +666,6 @@ Size: 16, Alignment: 8 ---- -#### `descriptor::fallocate` - - Force the allocation of space in a file. - - Note: This is similar to `posix_fallocate` in POSIX. -##### Params - -- `self`: handle -- `offset`: [`filesize`](#filesize) -- `len`: [`filesize`](#filesize) -##### Results - -- result<_, [`errno`](#errno)> - ----- - #### `descriptor::datasync` Synchronize the data of a file to disk. diff --git a/wasi-filesystem.wit.md b/wasi-filesystem.wit.md index b20615d..5a06498 100644 --- a/wasi-filesystem.wit.md +++ b/wasi-filesystem.wit.md @@ -421,19 +421,6 @@ fadvise: func( ) -> result<_, errno> ``` -## `fallocate` -```wit -/// Force the allocation of space in a file. -/// -/// Note: This is similar to `posix_fallocate` in POSIX. -fallocate: func( - /// The offset at which to start the allocation. - offset: filesize, - /// The length of the area that is allocated. - len: filesize -) -> result<_, errno> -``` - ## `fdatasync` ```wit /// Synchronize the data of a file to disk.