Changeset 3acff69 in mainline


Ignore:
Timestamp:
2011-06-26T12:17:52Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
244d6fd
Parents:
f232189
Message:

Add getloadavg() stub to stdlib

Location:
uspace/lib/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdlib.c

    rf232189 r3acff69  
    338338}
    339339
     340/**
     341 * Should read system load statistics. Not supported. Always returns -1.
     342 *
     343 * @param loadavg
     344 * @param nelem
     345 * @return
     346 */
     347int bsd_getloadavg(double loadavg[], int nelem)
     348{
     349        return -1;
     350}
     351
    340352/** @}
    341353 */
  • uspace/lib/posix/stdlib.h

    rf232189 r3acff69  
    120120/* Legacy Declarations */
    121121extern char *posix_mktemp(char *tmpl);
     122extern int bsd_getloadavg(double loadavg[], int nelem);
    122123
    123124#ifndef LIBPOSIX_INTERNAL
     
    163164
    164165        #define mktemp posix_mktemp
     166        #define getloadavg bsd_getloadavg
    165167#endif
    166168
Note: See TracChangeset for help on using the changeset viewer.