mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-15 15:20:02 +00:00
Fix small matters and improve sysconf()
- Fix mkdeps.com out of memory error - Remove static memory from __get_cpu_count() - Add support for passing hyphen to cat in cocmd - Change more ZipOS errors from ENOTSUP to EROFS - Specify mem_unit in sysinfo() output on BSD OSes
This commit is contained in:
parent
eebc24b9cd
commit
3a9cac4892
55 changed files with 411 additions and 262 deletions
|
@ -53,6 +53,8 @@ static int64_t GetPhysmem(void) {
|
|||
static int sys_sysinfo_bsd(struct sysinfo *info) {
|
||||
info->uptime = GetUptime();
|
||||
info->totalram = GetPhysmem();
|
||||
info->bufferram = GetPhysmem();
|
||||
info->mem_unit = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue