1..11.0 RTEMS include file patch
J. Johnston
jjohnstn@redhat.com
Thu Jan 16 22:42:00 GMT 2003
Patch checked in.
-- Jeff J.
Joel Sherrill wrote:
>
> This is the last of the 3 RTEMS patches to 1.11.0. These patches
> are all necessary but none of these have been released to the
> RTEMS user community yet. So no extensive end user testing on
> newlib 1.11.0 has happened yet from the RTEMS world.
>
> 2003-01-13 Joel Sherrill <joel@OARcorp.com>
>
> * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
> libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
> constants are defined in each file in the shared versions in
> libc/include.
>
>
>
>
> ------------------------------------------------------------------------
>
> 2003-01-13 Joel Sherrill <joel@OARcorp.com>
>
> * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
> libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
> constants are defined in each file in the shared versions in
> libc/include.
>
> diff -uNr /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/include/limits.h newlib-1.11.0/newlib/libc/sys/rtems/include/limits.h
> --- /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/include/limits.h Thu Feb 17 13:39:50 2000
> +++ newlib-1.11.0/newlib/libc/sys/rtems/include/limits.h Fri Jan 10 11:38:10 2003
> @@ -14,6 +14,8 @@
> #include_next <limits.h>
> #endif
>
> +#include <sys/syslimits.h>
> +
> #ifndef __POSIX_LIMITS_h
> #define __POSIX_LIMITS_h
>
> @@ -57,12 +59,9 @@
> #define AIO_LISTIO_MAX 2
> #define AIO_MAX 1
> #define AIO_PRIO_DELTA_MAX 0
> -#define ARG_MAX 4096
> -#define CHILD_MAX 6
> #define DELAYTIMER_MAX 32
> #define MQ_OPEN_MAX 8
> #define MQ_PRIO_MAX 32
> -#define OPEN_MAX 16
> #define PAGESIZE 1
> #define RTSIG_MAX 8
> #define SEM_NSEMS_MAX 256
> @@ -73,17 +72,6 @@
> #define TZNAME_MAX 3
>
> /*
> - * Pathname Variables
> - */
> -
> -#define LINK_MAX 8
> -#define MAX_CANON 255
> -#define MAX_INPUT 255
> -#define NAME_MAX 255
> -#define PATH_MAX 255
> -#define PIPE_BUF 512
> -
> -/*
> * Invariant values
> */
>
> diff -uNr /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/sys/param.h newlib-1.11.0/newlib/libc/sys/rtems/sys/param.h
> --- /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/sys/param.h Thu Nov 7 13:27:36 2002
> +++ newlib-1.11.0/newlib/libc/sys/rtems/sys/param.h Fri Jan 10 12:03:07 2003
> @@ -42,6 +42,30 @@
> #ifndef _SYS_PARAM_H_
> #define _SYS_PARAM_H_
>
> +/* from newlib's <sys/param.h> */
> +
> +#include <sys/config.h>
> +
> +#ifndef BIG_ENDIAN
> +#define BIG_ENDIAN 4321
> +#endif
> +#ifndef LITTLE_ENDIAN
> +#define LITTLE_ENDIAN 1234
> +#endif
> +
> +# define HZ (60)
> +# define PATHSIZE (1024)
> +
> +#ifndef BYTE_ORDER
> +#ifdef __IEEE_LITTLE_ENDIAN
> +#define BYTE_ORDER LITTLE_ENDIAN
> +#else
> +#define BYTE_ORDER BIG_ENDIAN
> +#endif
> +#endif
> +
> +/* end of from newlib's <sys/param.h> */
> +
> #include <unistd.h>
>
> #define BSD 199506 /* System version (year & month). */
> diff -uNr /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/sys/syslimits.h newlib-1.11.0/newlib/libc/sys/rtems/sys/syslimits.h
> --- /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/sys/syslimits.h Thu Nov 7 13:27:36 2002
> +++ newlib-1.11.0/newlib/libc/sys/rtems/sys/syslimits.h Fri Jan 10 11:39:16 2003
> @@ -37,42 +37,21 @@
> #ifndef _SYS_SYSLIMITS_H_
> #define _SYS_SYSLIMITS_H_
>
> -#if !defined(__rtems__)
> -#define ARG_MAX 65536 /* max bytes for an exec function */
> -#endif
> -
> -#if !defined(__rtems__)
> +#define ARG_MAX 4096 /* max bytes for an exec function */
> #ifndef CHILD_MAX
> -#define CHILD_MAX 40 /* max simultaneous processes */
> -#endif
> -#endif
> -
> -#if !defined(__rtems__)
> -#define LINK_MAX 32767 /* max file link count */
> +#define CHILD_MAX 6 /* max simultaneous processes */
> #endif
> -
> +#define LINK_MAX 8 /* max file link count */
> #define MAX_CANON 255 /* max bytes in term canon input line */
> -
> #define MAX_INPUT 255 /* max bytes in terminal input */
> -
> -#if !defined(__rtems__)
> #define NAME_MAX 255 /* max bytes in a file name */
> -#endif
> -
> #define NGROUPS_MAX 16 /* max supplemental group id's */
> -
> -#if !defined(__rtems__)
> #ifndef OPEN_MAX
> #define OPEN_MAX 64 /* max open files per process */
> #endif
> -#endif
> -
> -#if !defined(__rtems__)
> -#define PATH_MAX 1024 /* max bytes in pathname */
> -#endif
> -
> +#define PATH_MAX 255 /* max bytes in pathname */
> #define PIPE_BUF 512 /* max bytes for atomic pipe writes */
> -
> +#define IOV_MAX 1024 /* max elements in i/o vector */
> #define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */
> #define BC_DIM_MAX 2048 /* max array elements in bc(1) */
> #define BC_SCALE_MAX 99 /* max scale value in bc(1) */
More information about the Newlib
mailing list