Ignore:
Timestamp:
Dec 29, 2006, 1:43:05 AM (19 years ago)
Author:
bird
Message:

cleanup in progress (bed time) - added getrusage(), and fixed clock()+times().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/klibc/backend.h

    r2917 r2918  
    144144 *
    145145 * @returns 0 on success.
    146  * @returns -EINVAL if the pReqTS is invalid.
    147146 * @returns -EINTR if the interrupted by signal.
    148 
     147 *
    149148 * @param   u64NanoReq      Time to sleep, in nano seconds.
    150149 * @param   pu64NanoRem     Where to store remaining time (also nano seconds).
    151 
     150 *
    152151 * @remark  For relativly small sleeps this api temporarily changes the thread
    153152 *          priority to timecritical (that is, if it's in the normal or idle priority
     
    635634 */
    636635int  __libc_Back_ldrOpen(const char *pszLibrary, int fFlags, void **ppvModule, char *pszError, size_t cchError);
     636
     637/**
     638 * Get the name of the executable.
     639 *
     640 * @returns 0 on success.
     641 * @returns Negated error code (errno.h) on failure.
     642 * @param   pszNameBuf  Where to store the name.
     643 * @param   cchNameBuf  The size of the buffer.
     644 */
     645int __libc_Back_ldrExeName(char *pszNameBuf, size_t cchNameBuf);
    637646
    638647/**
     
    11371146 */
    11381147int __libc_Back_processSetPriority(int iWhich, id_t idWho, int iPrio);
     1148
     1149/**
     1150 * Get the resource usage of the process or the child processes.
     1151 *
     1152 * @returns 0 on success.
     1153 * @returns Neagted error code (errno.h) on failure.
     1154 * @param   iWho        Who to get the resource usage of, RUSAGE_SELF or RUSAGE_CHILDREN.
     1155 * @param   pUsage      Where to store the resource usage.
     1156 */
     1157int __libc_Back_processGetResourceUsage(int iWho, struct rusage *pUsage);
    11391158
    11401159/**
Note: See TracChangeset for help on using the changeset viewer.