Opened 21 years ago

Last modified 13 years ago

#6 new enhancement

libc: basic getrusage() implementation

Reported by: anonymous Owned by: bird
Priority: normal Milestone: libc-0.7
Component: libc-backend Version:
Severity: normal Keywords:
Cc:

Description

since Boinc requires some informations about CPU user time and system time, I wrote a simple getrusage() implementation.

It returns only the time, and uses DosQProcStatus to retrieve process informations.

The DosQProcStatus infomation functions are taken from XWP sources.

Attachments (2)

getrusage.zip​ (13.8 KB ) - added by Yuri Dario 21 years ago.
getrusage() sources
getrusage.c​ (2.5 KB ) - added by Yuri Dario 21 years ago.
new getrusage implementation, with 32bit api and LGPL.

Download all attachments as: .zip

Change History (8)

by Yuri Dario, 21 years ago

Attachment: getrusage.zip​ added

getrusage() sources

comment:1 by anonymous, 21 years ago

Component: baselayout → libc
Severity: normal → enhancement

comment:2 by bird, 21 years ago

The procstat.c and procstat.h are under GPL and not acceptable in libc. For several reasons it is desirable to use the 32-bit API over the 16-bit one. Firstly that the 16-bit gets a lot more info that needed and secondly that there can be too much data for 64kb.

by Yuri Dario, 21 years ago

Attachment: getrusage.c​ added

new getrusage implementation, with 32bit api and LGPL.

comment:3 by bird, 21 years ago

Milestone: → libc-0.7

This'll have to wait. I don't want to spend more time on 0.6 than necessary now.

comment:4 by bird, 21 years ago

Component: libc → libc-backend
Summary: basic getrusage() implementation → libc: basic getrusage() implementation

comment:5 by Yuri Dario, 13 years ago

Milestone: libc-0.7 → libc-0.6.6

comment:6 by bird, 13 years ago

Milestone: libc-0.6.6 → libc-0.7

If you have plans for implementing this in 0.6.6, please explain before reverting my decision to make this a 0.7 target.

Note: See TracTickets for help on using tickets.