This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA]: Adding sysconf values to libc/include/sys/unistd.h


Corinna Vinschen wrote:
> 
> Hi,
> 
> I would like to add the following sysconf(3) values to unistd.h
> so that they can be supported by Cygwin:
> 
>         _SC_PROCESSORS_CONF
>         _SC_PROCESSORS_ONLN
>         _SC_PHYS_PAGES
>         _SC_AVPHYS_PAGES
> 
> Is that ok? The attached patch additionally changes the tabing slightly.
> 
> Corinna
> 

It is fine Corinna.  Please check it in to sourceware and devo with ChangeLog
unless you would prefer me to do it.

-- Jeff J.

> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                        mailto:cygwin@sources.redhat.com
> Red Hat, Inc.
> mailto:vinschen@redhat.com
> 
>   ----------------------------------------------------------------------------------------------------
> Index: libc/include/sys/unistd.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
> retrieving revision 1.8
> diff -u -p -r1.8 unistd.h
> --- unistd.h    2000/10/10 00:28:49     1.8
> +++ unistd.h    2000/10/24 14:41:36
> @@ -148,29 +148,33 @@ int     _EXFUN(symlink, (const char *__n
> 
>  long _EXFUN(sysconf, (int __name));
> 
> -# define       _SC_ARG_MAX     0
> -# define       _SC_CHILD_MAX   1
> -# define       _SC_CLK_TCK     2
> -# define       _SC_NGROUPS_MAX 3
> -# define       _SC_OPEN_MAX    4
> +# define       _SC_ARG_MAX             0
> +# define       _SC_CHILD_MAX           1
> +# define       _SC_CLK_TCK             2
> +# define       _SC_NGROUPS_MAX         3
> +# define       _SC_OPEN_MAX            4
>  /* no _SC_STREAM_MAX */
> -# define       _SC_JOB_CONTROL 5
> -# define       _SC_SAVED_IDS   6
> -# define       _SC_VERSION     7
> -# define        _SC_PAGESIZE    8
> +# define       _SC_JOB_CONTROL         5
> +# define       _SC_SAVED_IDS           6
> +# define       _SC_VERSION             7
> +# define        _SC_PAGESIZE            8
> +# define        _SC_NPROCESSORS_CONF    9
> +# define        _SC_NPROCESSORS_ONLN   10
> +# define        _SC_PHYS_PAGES         11
> +# define        _SC_AVPHYS_PAGES       12
> 
> -# define       _PC_LINK_MAX    0
> -# define       _PC_MAX_CANON   1
> -# define       _PC_MAX_INPUT   2
> -# define       _PC_NAME_MAX    3
> -# define       _PC_PATH_MAX    4
> -# define       _PC_PIPE_BUF    5
> -# define       _PC_CHOWN_RESTRICTED    6
> -# define       _PC_NO_TRUNC    7
> -# define       _PC_VDISABLE    8
> -# define       _PC_ASYNC_IO    9
> -# define       _PC_PRIO_IO     10
> -# define       _PC_SYNC_IO     11
> +# define       _PC_LINK_MAX            0
> +# define       _PC_MAX_CANON           1
> +# define       _PC_MAX_INPUT           2
> +# define       _PC_NAME_MAX            3
> +# define       _PC_PATH_MAX            4
> +# define       _PC_PIPE_BUF            5
> +# define       _PC_CHOWN_RESTRICTED    6
> +# define       _PC_NO_TRUNC            7
> +# define       _PC_VDISABLE            8
> +# define       _PC_ASYNC_IO            9
> +# define       _PC_PRIO_IO            10
> +# define       _PC_SYNC_IO            11
> 
>  # ifndef       _POSIX_SOURCE
>  #  define      MAXNAMLEN       1024

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]