[comp.sys.att] ftruncate and sigsetmask for SysV?

wouk@romeo.cs.duke.edu (Arthur Wouk) (04/16/89)

has anyone produced versions of the BSD functions ftruncate() and
sigsetmask() for SysV, in particular for the 3b1? any pointers as to
where these could be found would be helpful. alternatively, are there
any SysV equivalent approaches?

guy@auspex.auspex.com (Guy Harris) (04/18/89)

>has anyone produced versions of the BSD functions ftruncate() and
>sigsetmask() for SysV, in particular for the 3b1? any pointers as to
>where these could be found would be helpful. alternatively, are there
>any SysV equivalent approaches?

There is no fully-functional equivalent to "ftruncate()" in any flavor
of vanilla S5, which makes it unlikely that anybody's produced a version
of them for S5 - the hooks just aren't there.  "sigsetmask" also
requires a more powerful signal mechanism than existed prior to S5R3; it
might be possible to do some or all of "sigsetmask" atop S5R3, but it's
not posssible to do it atop the signal mechanism that existed prior to
that.

guy@auspex.auspex.com (Guy Harris) (04/21/89)

>Here is ftruncate, in full glory.

Uhh, no, it isn't, it's "truncate".  "ftruncate" is harder, since it
takes a file descriptor, not a path name, as its first argument....

scs@lokkur.UUCP (Steve Simmons) (04/24/89)

In article <1479@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes:
>>Here is ftruncate, in full glory.
>
>Uhh, no, it isn't, it's "truncate".  "ftruncate" is harder, since it
>takes a file descriptor, not a path name, as its first argument....

Ouch!  Guy is right.  The function asked for was ftruncate, the one
I supplied was truncate.  Sorry.
-- 
+ Steve Simmons, Inland Sea Software, Ltd.         scs@lokkur.dexter.mi.us +
|    9353 Hidden Lake, Dexter, MI. 48130                   313-426-8981    |
+          "When Dexter's on the Internet can Hell be far behind?"         +