[comp.unix.questions] getrusage in SysVR4

mbl900@anusf.anu.edu.au (Mathew BM LIM) (05/30/91)

Is the getrusage routine implemented in SysVR4? It does not seem to show
up in any of my documentation and not having acces to a SysVR4 system, I
cannot tell for sure.

Thanks

-- 
Mathew Lim, Unix Systems Programmer, ANU Supercomputer Facility,	
Australian National University,	GPO Box 4, Canberra City, ACT, Australia 2601.
Telephone : +61 6 249 2750 	| ACSnet    : Mathew.BM.Lim@anu.oz
Fax       : +61 6 247 3425	| Internet  : Mathew.BM.Lim@anu.edu.au

rick@ptcburp.ptcbu.oz.au (Rick Stevenson) (05/30/91)

mbl900@anusf.anu.edu.au (Mathew BM LIM) writes:

>Is the getrusage routine implemented in SysVR4? It does not seem to show
>up in any of my documentation and not having acces to a SysVR4 system, I
>cannot tell for sure.

Sort of. There is a getrusage() in the Berkeley compatibility library,
but it is a wrapper around times(2) and only returns correct information
for the fields ru_utime and ru_stime. The other fields are present in struct
rusage but never get set.

Rick.
--
Rick Stevenson
Pyramid Technology Corporation			+61 75 522475 FAX
Research Park, Bond University			+61 75 950249 VOICE
Gold Coast, Q 4229, AUSTRALIA			rick@ptcburp.pyramid.com.au