John Baldwin e46502943a Make ftruncate a 'struct file' operation rather than a vnode operation.
This makes it possible to support ftruncate() on non-vnode file types in
the future.
- 'struct fileops' grows a 'fo_truncate' method to handle an ftruncate() on
  a given file descriptor.
- ftruncate() moves to kern/sys_generic.c and now just fetches a file
  object and invokes fo_truncate().
- The vnode-specific portions of ftruncate() move to vn_truncate() in
  vfs_vnops.c which implements fo_truncate() for vnode file types.
- Non-vnode file types return EINVAL in their fo_truncate() method.

Submitted by:	rwatson
2008-01-07 20:05:19 +00:00
..
2007-08-04 17:43:11 +00:00
2007-11-26 18:17:07 +00:00
2007-12-25 19:51:18 +00:00
2007-10-12 06:03:46 +00:00
2007-02-23 19:27:49 +00:00
2007-10-15 20:00:24 +00:00
2007-10-12 06:03:46 +00:00
2007-03-21 03:42:51 +00:00
2007-12-07 17:21:53 +00:00
2008-01-07 09:46:39 +00:00
2007-02-23 19:34:52 +00:00
2007-10-12 06:03:46 +00:00
2007-07-05 06:51:49 +00:00
2007-06-08 01:54:22 +00:00
2007-03-21 03:42:51 +00:00
2008-01-07 11:31:55 +00:00
2007-12-05 19:32:59 +00:00