truncate man page on Minix

Man page or keyword search:  
man Server   6208 pages
apropos Keyword Search (all sections)
Output format
Minix logo
[printable version]

TRUNCATE(2)							   TRUNCATE(2)

NAME
       truncate,  ftruncate  -	truncate  a  file  to  a specified length (may
       extend)

SYNOPSIS
       #include <unistd.h>

       int truncate(char *filename, off_t length);
       int ftruncate(int fd, off_t length);

DESCRIPTION
       Truncate causes the file filename to be set to the length length	 caus‐
       ing  data  after	 that  size to be lost. If the file is set to a length
       larger than the current file size, the new region can be written to but
       reads  as zeroes. There will be no disk blocks reserved for it. This is
       a hole.

       Ftruncate does the same thing  as  truncate  but	 operates  on  a  file
       descriptor instead of a filename.

SEE ALSO
       fcntl(2)

4th Berkeley Distribution	 Feb 13, 2006			   TRUNCATE(2)
[top]

List of man pages available for Minix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net