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

Re: [PATCH] lib/nolibc: Provide _SC_OPEN_MAX with unistd.h



Hi Simon, Thanks for this patch.

Reviewed-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>

> On 18 May 2020, at 16:22, Simon Kuenzer <simon.kuenzer@xxxxxxxxx> wrote:
> 
> Populates _SC_OPEN_MAX with nolibc. lib/posix-sysinfo uses it with
> commit f587ed23 "lib/vfscore: Expose max fds to sysconf".
> 
> Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> ---
> lib/nolibc/include/unistd.h | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/lib/nolibc/include/unistd.h b/lib/nolibc/include/unistd.h
> index 99b5d305..d4cdb581 100644
> --- a/lib/nolibc/include/unistd.h
> +++ b/lib/nolibc/include/unistd.h
> @@ -51,6 +51,7 @@ extern "C" {
> /*
>  * Sysconf name values
>  */
> +#define _SC_OPEN_MAX 4
> #define _SC_PAGESIZE 8
> #define _SC_NPROCESSORS_ONLN 10
> 
> -- 
> 2.20.1
> 
> 




 


Rackspace

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