tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal for new syscalls: getrusagex and waitx




On Oct,Friday 17 2008, at 2:44 PM, Jachym Holecek wrote:

# Matt Thomas 2008-10-17:
I'd to add return some additional data in getrusage or wait4. Extending struct rusage seems to be a losing proposition since I will need to version the syscalls and provide compatiblity shims. I might as well just add
variants that return proplib dictionaries with the information.

int getrusagex(int who, struct plistref *dict)
int waitx(pid_t wpid, int *status, int options, struct plistref *rusage);

Passing 'struct plistref *' means users will have to duplicate proplib's private _prop_object_[un]pack_pref(), no? If so, isn't it better to instead
pass 'prop_dictionary_t *' and hide plist passing details?


yes, it should be enough to pass prop_dictionary_t to syscall.

Regards

Adam.



Home | Main Index | Thread Index | Old Index