PD ftruncate needed

T. William Wells bill at twwells.com
Sat Jun 17 23:31:22 AEST 1989


In article <2132 at calypso.oakhill.UUCP> edj at oakhill.UUCP (Eric Jones) writes:
: I am currently porting a C program from a BSD to a System V based
: operating system. The program calls the BSD function "ftruncate",
: which does not exist under System V.

You lose. There is no way to do this in SysV 3.0 and earlier. Xenix,
I think, has a way, and I've heard that later versions of SysV have a
way. However, if you want portability, don't try to truncate a file
to other than length zero.

---
Bill                    { uunet | novavax | ankh | sunvice } !twwells!bill
bill at twwells.com



More information about the Comp.lang.c mailing list