[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH 1/1] uksysinfo: Add check for _SC_PAGESIZE in sysconf



Hi Vlad, this patch looks good, thanks.

-- Felipe

Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>

On 01.10.19, 17:34, "Vlad-Andrei BĂDOIU (78692)" 
<vlad_andrei.badoiu@xxxxxxxxxxxxxxx> wrote:

    sysconf call returns __PAGE_SIZE when _SC_PAGESIZE is passed as an 
arguement.
    ---
     lib/uksysinfo/sysinfo.c | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/lib/uksysinfo/sysinfo.c b/lib/uksysinfo/sysinfo.c
    index b546d7bf..6adcf221 100644
    --- a/lib/uksysinfo/sysinfo.c
    +++ b/lib/uksysinfo/sysinfo.c
    @@ -72,6 +72,9 @@ long sysconf(int name)
        if (name == _SC_NPROCESSORS_ONLN)
                return 1;
     
    +   if (name == _SC_PAGESIZE)
    +           return __PAGE_SIZE;
    +
        return 0;
     }
     
    -- 
    2.20.1
    
    

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.