Xref: utzoo comp.unix.wizards:17164 comp.sources.wanted:7995 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!hp4nl!philapd!ssp15!jos From: jos@idca.tds.PHILIPS.nl (Jos Vos) Newsgroups: comp.unix.wizards,comp.sources.wanted Subject: ftruncate(2) for System V.3.2 needed Message-ID: <1132@ssp15.idca.tds.philips.nl> Date: 7 Jul 89 14:07:29 GMT Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 20 I need the ftruncate(2) function from BSD4.3 UNIX on System V.3.2. For non-BSD-manual-owners, here's the description of ftruncate(2): * ftruncate (fd, length) * int fd; * long length; * * Ftruncate causes the file referenced by fd (a file descriptor of an * file open for writing) to be truncated to at most length bytes in size. * If the file previously was larger than the size, the extra data is lost. Hint: I do *not* know the filename of the open file, of course :-) Because I don't even know if there exists a solution, also a *proof* :-) that no solution exists will be very helpfull to me (than I can start rewriting the code around ftruncate() in my application :-( ). -- -- ###### Jos Vos ###### Internet jos@idca.tds.philips.nl ###### -- ###### ###### UUCP ...!mcvax!philapd!jos ######