Lines Matching defs:length
44 static int file_truncate(struct file *filep, off_t length)
74 ret = vnode->vop->Truncate(vnode, length);
93 * have a size of length bytes.
95 * If the file previously was larger than length, the extra data is
96 * discarded. If it was previously shorter than length, it is unspecified
100 * shared memory object to length. If the file is not a regular file or
112 * length - The new length of the file or shared memory object.
121 int ftruncate(int fd, off_t length)
158 return file_truncate(filep, length);
162 int truncate(const char *path, off_t length)
174 ret = ftruncate(fd, length);