home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / sysv386 / 13362 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  968 b 

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