home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!das-news.harvard.edu!spdcc!iecc!Postmaster
- From: johnl@iecc.cambridge.ma.us (John R. Levine)
- Newsgroups: comp.unix.sysv386
- Subject: Re: BSD compatibility libraries/modules for System V (3.2)
- Message-ID: <9208192339.AA21411@iecc.cambridge.ma.us>
- Date: 20 Aug 92 03:39:36 GMT
- Article-I.D.: iecc.9208192339.AA21411
- References: <1992Aug19.003841.18005@mintaka.lcs.mit.edu>
- Sender: Postmaster@iecc.cambridge.ma.us
- Organization: I.E.C.C.
- Lines: 10
-
- > I'm currently doing a port from BSD 4.3 to SysV 3.2 and I've run up
- >against a brick wall: ftruncate(). The code I use desperately needs this call
- >and there's no easy SysV r3.2 equivalent.
-
- It turns out that SysV3.2/386 actually has a ftruncate() call, but they never
- bothered to document it because it's hidden in the Xenix compatibility
- library. Try using chsize(fd, size) and link in -lx.
-
- Regards,
- John Levine, johnl@iecc.cambridge.ma.us, {spdcc|ima|world}!iecc!johnl
-