[PATCH v2] sysconf: Remove sysconf(515)

Gedare Bloom gedare at rtems.org
Fri May 21 04:02:03 UTC 2021


looks good

On Thu, May 20, 2021 at 7:25 AM Ryan Long <ryan.long at oarcorp.com> wrote:
>
> GCC originally needed this 20 years ago. No longer needed, so it
> is being removed.
>
> Closes #4391
> ---
>  cpukit/posix/src/sysconf.c            | 4 ----
>  testsuites/psxtests/psxsysconf/init.c | 8 --------
>  2 files changed, 12 deletions(-)
>
> diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c
> index 1696ec5..439a27e 100644
> --- a/cpukit/posix/src/sysconf.c
> +++ b/cpukit/posix/src/sysconf.c
> @@ -54,10 +54,6 @@ long sysconf(
>        return (long) rtems_scheduler_get_processor_maximum();
>      case _SC_POSIX_26_VERSION:
>        return (long) _POSIX_26_VERSION;
> -#if defined(__sparc__)
> -    case 515: /* Solaris _SC_STACK_PROT */
> -      return 0;
> -#endif
>      default:
>        rtems_set_errno_and_return_minus_one( EINVAL );
>    }
> diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c
> index a008af3..66d6dd3 100644
> --- a/testsuites/psxtests/psxsysconf/init.c
> +++ b/testsuites/psxtests/psxsysconf/init.c
> @@ -83,14 +83,6 @@ void *POSIX_Init(
>        == (long) rtems_scheduler_get_processor_maximum()
>    );
>
> -#if defined(__sparc__)
> -  /* Solaris _SC_STACK_PROT - 515 */
> -  sc = sysconf( _SC_PAGESIZE );
> -  printf( "sysconf - (SPARC only) _SC_STACK_PROT=%ld\n", sc );
> -  if ( sc == -1 )
> -   rtems_test_exit(0);
> -#endif
> -
>    TEST_END();
>    rtems_test_exit( 0 );
>
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list