home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!kithrup!sef
- From: sef@kithrup.COM (Sean Eric Fagan)
- Subject: Re: BSD compatibility libraries/modules for System V (3.2)
- Organization: Kithrup Enterprises, Ltd.
- Date: Thu, 20 Aug 1992 05:03:42 GMT
- Message-ID: <1992Aug20.050342.6477@kithrup.COM>
- References: <1992Aug19.003841.18005@mintaka.lcs.mit.edu> <9208192339.AA21411@iecc.cambridge.ma.us>
- Lines: 21
-
- In article <9208192339.AA21411@iecc.cambridge.ma.us> johnl@iecc.cambridge.ma.us (John R. Levine) writes:
- >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.
-
- On an SCO 3.2v2 machine, in <sys/fcntl.h>:
-
- #define F_CHSIZE 0x6000 /* XENIX chsize() system call */
-
- Experimentation shows that the call is
-
- fcntl (fd, F_CHSIZE, size);
-
- You don't want to use -lx, in general, because the old, broken readdir() and
- company tend to be put in there.
-
- --
- Sean Eric Fagan | "You can't get lost in in one room, no matter how
- sef@kithrup.COM | little effort you make to learn your way around."
- -----------------+ -- William E Davidsen (william@crd.GE.COM)
- Any opinions expressed are my own, and generally unpopular with others.
-