modified: myjupyterlab.sh
[GalaxyCodeBases.git] / tools / lh3misc / sys / runit / runlib.h
blob98c2e6d50271e0af89d125f75dfac523e2b9d845
1 #ifndef LH3_RUNLIB_H_
2 #define LH3_RUNLIB_H_
4 #include <stdlib.h>
6 #define RUN_ERR_WRONG_OS 1
7 #define RUN_ERR_MISSING_INFO 2
8 #define RUN_ERR_PROC_FINISHED 3
10 typedef struct /* static system information */
12 size_t mem_total, page_size, swap_total;
13 } RunSysStatic;
15 typedef struct /* dynamic system information */
17 double wall_clock;
18 size_t mem_free, mem_available;
19 } RunSysDyn;
21 typedef struct /* dynamic process information */
23 size_t rss, vsize;
24 double utime, stime;
25 } RunProcDyn;
27 int run_get_static_sys_info(RunSysStatic *rss);
28 int run_get_dynamic_sys_info(RunSysDyn *rsd);
29 int run_get_dynamic_proc_info(pid_t pid, RunProcDyn *rpd);
31 #endif