Last change
on this file since 333 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr
|
File size:
634 bytes
|
Line | |
---|
1 | #ifndef _SYS_SYSINFO_H
|
---|
2 | #define _SYS_SYSINFO_H
|
---|
3 |
|
---|
4 | #ifdef __cplusplus
|
---|
5 | extern "C" {
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #define SI_LOAD_SHIFT 16
|
---|
9 |
|
---|
10 | struct sysinfo {
|
---|
11 | unsigned long uptime;
|
---|
12 | unsigned long loads[3];
|
---|
13 | unsigned long totalram;
|
---|
14 | unsigned long freeram;
|
---|
15 | unsigned long sharedram;
|
---|
16 | unsigned long bufferram;
|
---|
17 | unsigned long totalswap;
|
---|
18 | unsigned long freeswap;
|
---|
19 | unsigned short procs, pad;
|
---|
20 | unsigned long totalhigh;
|
---|
21 | unsigned long freehigh;
|
---|
22 | unsigned mem_unit;
|
---|
23 | char __reserved[256];
|
---|
24 | };
|
---|
25 |
|
---|
26 | int sysinfo (struct sysinfo *);
|
---|
27 | int get_nprocs_conf (void);
|
---|
28 | int get_nprocs (void);
|
---|
29 | long get_phys_pages (void);
|
---|
30 | long get_avphys_pages (void);
|
---|
31 |
|
---|
32 | #ifdef __cplusplus
|
---|
33 | }
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.