diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-01-16 22:37:54 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-01-16 22:37:54 +0000 |
commit | c3e92877a95d86163826fe1b5ad9a943a4989542 (patch) | |
tree | 47a20f26e9d2c6713d8ca68bb4952008819d961d /newlib | |
parent | 92febe6b7ac8c46c3a9281a0ad691ced9ac6a361 (diff) | |
download | newlib-c3e92877a95d86163826fe1b5ad9a943a4989542.zip newlib-c3e92877a95d86163826fe1b5ad9a943a4989542.tar.gz newlib-c3e92877a95d86163826fe1b5ad9a943a4989542.tar.bz2 |
2003-01-16 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.
* libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
autoconf can link programs.
* libc/include/machine/types.h: Explicitly specify signed on
intXX_t types to ensure they are signed.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 11 | ||||
-rw-r--r-- | newlib/libc/include/machine/types.h | 10 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 6 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/include/limits.h | 16 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/sys/param.h | 24 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/sys/syslimits.h | 31 |
6 files changed, 53 insertions, 45 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 628d2bf..4890edd 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,14 @@ +2003-01-16 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. + * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to + autoconf can link programs. + * libc/include/machine/types.h: Explicitly specify signed on + intXX_t types to ensure they are signed. + 2003-01-14 Christopher Faylor <cgf@redhat.com> * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU diff --git a/newlib/libc/include/machine/types.h b/newlib/libc/include/machine/types.h index ccc8472..b573336 100644 --- a/newlib/libc/include/machine/types.h +++ b/newlib/libc/include/machine/types.h @@ -8,14 +8,14 @@ */ #if defined(__rtems__) -typedef long long int64_t; +typedef signed long long int64_t; #if defined( __h8300__) -typedef long int32_t; +typedef signed long int32_t; #else -typedef int int32_t; +typedef signed int int32_t; #endif -typedef short int16_t; -typedef char int8_t; +typedef signed short int16_t; +typedef signed char int8_t; typedef unsigned long long u_int64_t; #if defined( __h8300__) diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index e5f67c0..99b91fe 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -41,6 +41,8 @@ memset() {} int __FIXUP_START__; int __FIXUP_END__; int __EXCEPT_START__; int __EXCEPT_END__; int __init; int __fini; + int __CTOR_LIST__; int __CTOR_END__; + int __DTOR_LIST__; int __DTOR_END__; #endif /* The SH expects certain symbols to be defined in the linker script. */ @@ -61,6 +63,10 @@ int __EH_FRAME_BEGIN__; asm ( "\$global\$:"); */ + asm (".text"); + asm (".global"); + asm (".EXPORT $$dyncall,ENTRY"); + asm ("$$dyncall:"); int atexit(void (*function)(void)) { return 0; } #endif diff --git a/newlib/libc/sys/rtems/include/limits.h b/newlib/libc/sys/rtems/include/limits.h index e9f45e4..9d11624 100644 --- a/newlib/libc/sys/rtems/include/limits.h +++ b/newlib/libc/sys/rtems/include/limits.h @@ -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 --git a/newlib/libc/sys/rtems/sys/param.h b/newlib/libc/sys/rtems/sys/param.h index 21a9758..36db646 100644 --- a/newlib/libc/sys/rtems/sys/param.h +++ b/newlib/libc/sys/rtems/sys/param.h @@ -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 --git a/newlib/libc/sys/rtems/sys/syslimits.h b/newlib/libc/sys/rtems/sys/syslimits.h index 283a024..74c4dd2 100644 --- a/newlib/libc/sys/rtems/sys/syslimits.h +++ b/newlib/libc/sys/rtems/sys/syslimits.h @@ -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) */ |