Hash :
19198053
Author :
Date :
2024-04-24T20:24:37
physmem: Port better to Linux. * lib/physmem.h (physmem_total, physmem_available): Add documentation. (physmem_claimable): New declaration. * lib/physmem.c: Include <fcntl.h>, <stdio.h>, full-read.h. (get_meminfo): New function. (physmem_claimable): Renamed from physmem_available. Add logic for aggressivity > 0. (physmem_available): New function. * modules/physmem (Depends-on): Add full-read.
Description:
Return amount of total/available physical memory.
Files:
lib/physmem.h
lib/physmem.c
m4/physmem.m4
Depends-on:
unistd
full-read
configure.ac:
gl_PHYSMEM
Makefile.am:
lib_SOURCES += physmem.c
Include:
"physmem.h"
License:
LGPLv2+
Maintainer:
Paul Eggert, Jim Meyering