diff options
author | Miles Bader <miles@gnu.org> | 1995-09-18 18:56:57 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-09-18 18:56:57 +0000 |
commit | fa44beca0569f069264b44c3c2b97fe0dcc3ea61 (patch) | |
tree | 957c6406c35381a58d777f2a4f086f2174c72145 /trans | |
parent | e129fc6767eb3075b187e292178b9f18d5ba1f64 (diff) |
(trivfs_S_file_set_size): Renamed from trivfs_S_file_truncate;
Return EINVAL if the new size isn't 0.
Diffstat (limited to 'trans')
-rw-r--r-- | trans/fifo.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 |