From fa44beca0569f069264b44c3c2b97fe0dcc3ea61 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 18 Sep 1995 18:56:57 +0000 Subject: (trivfs_S_file_set_size): Renamed from trivfs_S_file_truncate; Return EINVAL if the new size isn't 0. --- trans/fifo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'trans') diff --git a/trans/fifo.c b/trans/fifo.c index 08d20198..90f15ddf 100644 --- a/trans/fifo.c +++ b/trans/fifo.c @@ -476,14 +476,12 @@ trivfs_S_io_write (struct trivfs_protid *cred, /* ---------------------------------------------------------------- */ -/* Truncate file. */ error_t -trivfs_S_file_truncate (struct trivfs_protid *cred, off_t size) +trivfs_S_file_set_size (struct trivfs_protid *cred, off_t size) { - return 0; + return size == 0 ? 0 : EINVAL; } - -/* ---------------------------------------------------------------- */ + /* These four routines modify the O_APPEND, O_ASYNC, O_FSYNC, and O_NONBLOCK bits for the IO object. In addition, io_get_openmodes will tell you which of O_READ, O_WRITE, and O_EXEC the object can -- cgit v1.2.3