Skip to content

Commit 5e707b1

Browse files
max-niedermanTropix126
authored andcommitted
add unsupported file_lock functions
1 parent 6956bcf commit 5e707b1

File tree

1 file changed

+20
-0
lines changed
  • library/std/src/sys/pal/vexos

1 file changed

+20
-0
lines changed

library/std/src/sys/pal/vexos/fs.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,26 @@ impl File {
257257
self.flush()
258258
}
259259

260+
pub fn lock(&self) -> io::Result<()> {
261+
unsupported()
262+
}
263+
264+
pub fn lock_shared(&self) -> io::Result<()> {
265+
unsupported()
266+
}
267+
268+
pub fn try_lock(&self) -> io::Result<bool> {
269+
unsupported()
270+
}
271+
272+
pub fn try_lock_shared(&self) -> io::Result<bool> {
273+
unsupported()
274+
}
275+
276+
pub fn unlock(&self) -> io::Result<()> {
277+
unsupported()
278+
}
279+
260280
pub fn truncate(&self, _size: u64) -> io::Result<()> {
261281
unsupported()
262282
}

0 commit comments

Comments
 (0)