where is chsize ?

where is chsize ?

Post by Adrian Heathcot » Sat, 29 Aug 1998 04:00:00



I have upgraded from aix 3.2.5 to 4.2.1 and installed the C compiler.
A function "chsize" appears to be missing ?
Does anyone have any idea what this function is now called ???

Any help appreciated

----------------------------------------------------------------

|    /usr/earth is 98% full please delete anyone you can.      |
----------------------------------------------------------------

 
 
 

where is chsize ?

Post by Julie Hau » Wed, 02 Sep 1998 04:00:00




Quote:>I have upgraded from aix 3.2.5 to 4.2.1 and installed the C compiler.
>A function "chsize" appears to be missing ?
>Does anyone have any idea what this function is now called ???

What is it supposed to do?  I had written a shell script named "chsize"
which patched the XCOFF headers of an executable to make it a "large"
executable, but I've never see a C language function named chsize().

If you're thinking about the script I just mentioned it is basically
a read() of the appropriate XCOFF sections, an assignment statement,
and a write().  Worked great for me ;-)
--
Julianne Frances Haugh                            "Resistance is futile!
RS/6000 Security Development, C2 Tech Lead            You will be evaluated!"
                                                          -- C2 of Borg

 
 
 

where is chsize ?

Post by Jens-Uwe Mag » Wed, 02 Sep 1998 04:00:00




> I have upgraded from aix 3.2.5 to 4.2.1 and installed the C compiler.
> A function "chsize" appears to be missing ?

Chsize is a leftover from old XENIX days, I believe. The generic Unix call
to set the size of a file is ftruncate.
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>
 
 
 

1. chsize() for unix

This is not an appropriate topic for comp.lang.c.  Followups redirected.

"also" ? That seems to imply that XENIX is not a version of UNIX, which
is rather odd thing to say about something that's approximately v7 + sysv
and other "enhancements".

The current version of System V has chsize() in the XENIX library -lx.
Slightly older versions have the undocumented F_FREESP in <fcntl.h>
which can be turned into chsize() -- code to do so can be found
in (among other places) doio.c of the perl distribution.
--

2. Console Output in X

3. chsize()

4. xwpe problems

5. Digital UNIX - chsize?

6. Solaris 7 interacts oddly with 2.5.1 CacheFS?

7. This clone thing...am I stupid, or am I right?

8. Creating multiple pages automatically

9. I am with the following error, when i am running lilo...

10. Am I touchy? Or am I right?

11. Am I seeing IPv5, or am I hallucinating?

12. I am buying an Ultra 5 but am lost in part numbers ....