Back to index

glibc  2.9
ftruncate.c File Reference
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <hurd.h>
#include <hurd/fd.h>

Go to the source code of this file.


int __ftruncate (int fd, __off_t length)

Function Documentation

int __ftruncate ( int  fd,
__off_t  length 

Definition at line 27 of file ftruncate.c.

  error_t err;
  if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))
    return __hurd_dfail (fd, err);
  return 0;

Here is the call graph for this function: