[pulseaudio-discuss] [PATCH 2/6] core: PA_PAGE_SIZE using sysconf() may return a negative number

Tanu Kaskinen tanuk at iki.fi
Fri Aug 19 15:08:07 UTC 2016


On Thu, 2016-08-18 at 18:17 +0200, Peter Meerwald-Stadler wrote:
> instead of calling sysconf() directly, add function pa_page_size()
> which uses the guestimate 4096 in case sysconf(_SC_PAGE_SIZE) fails
> 
> using PA_ONCE to only evaluate sysconf() once
> 
> the name macro.h/.c is a bit unfortunate when adding functions

I'd prefer removing the PA_PAGE_SIZE macro and using pa_page_size()
directly. The function can be added to core-util.[ch].

-- 
Tanu


More information about the pulseaudio-discuss mailing list