1 /**
2 Copyright: Copyright (c) 2018, Joakim Brännström. All rights reserved.
3 License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 
6 This module contains libc bindings.
7 */
8 module distssh.libc;
9 
10 /**
11 DESCRIPTION
12 
13      The getloadavg() function returns the number of processes in the system
14      run queue averaged over various periods of time.  Up to nelem samples are
15      retrieved and assigned to successive elements of loadavg[].  The system
16      imposes a maximum of 3 samples, representing averages over the last 1, 5,
17      and 15 minutes, respectively.
18 
19 
20 DIAGNOSTICS
21 
22      If the load average was unobtainable, -1 is returned; otherwise, the num-
23      ber of samples actually retrieved is returned.
24  */
25 extern (C) int getloadavg(double* loadavg, int nelem);