source: rtems/contrib/crossrpms/patches/newlib-1.16.0.cvs.20081124-rtems4.10-20081124.diff @ ecf1de97

4.104.115
Last change on this file since ecf1de97 was ecf1de97, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/24/08 at 08:18:34

Add getdents stub.

  • Property mode set to 100644
File size: 13.4 KB
  • newlib/acinclude.m4

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/acinclude.m4 newlib-1.16.0/newlib/acinclude.m4
    old new  
    22dnl configure.in files.
    33
    44AC_DEFUN([DEF_NEWLIB_VERSION],
    5 m4_define([NEWLIB_VERSION],[1.16.0]))
     5m4_define([NEWLIB_VERSION],[1.17.0]))
    66
    77dnl Basic newlib configury.  This calls basic introductory stuff,
    88dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST.  It also runs
  • newlib/configure

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/configure newlib-1.16.0/newlib/configure
    old new  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for newlib 1.16.0.
     3# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
    44#
    55# Copyright (C) 2003 Free Software Foundation, Inc.
    66# This configure script is free software; the Free Software Foundation
     
    416416# Identity of this package.
    417417PACKAGE_NAME='newlib'
    418418PACKAGE_TARNAME='newlib'
    419 PACKAGE_VERSION='1.16.0'
    420 PACKAGE_STRING='newlib 1.16.0'
     419PACKAGE_VERSION='1.17.0'
     420PACKAGE_STRING='newlib 1.17.0'
    421421PACKAGE_BUGREPORT=''
    422422
    423423ac_unique_file="libc"
     
    939939  # Omit some internal or obsolete options to make the list less imposing.
    940940  # This message is too long to be a string in the A/UX 3.1 sh.
    941941  cat <<_ACEOF
    942 \`configure' configures newlib 1.16.0 to adapt to many kinds of systems.
     942\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
    943943
    944944Usage: $0 [OPTION]... [VAR=VALUE]...
    945945
     
    10051005
    10061006if test -n "$ac_init_help"; then
    10071007  case $ac_init_help in
    1008      short | recursive ) echo "Configuration of newlib 1.16.0:";;
     1008     short | recursive ) echo "Configuration of newlib 1.17.0:";;
    10091009   esac
    10101010  cat <<\_ACEOF
    10111011
     
    11601160test -n "$ac_init_help" && exit 0
    11611161if $ac_init_version; then
    11621162  cat <<\_ACEOF
    1163 newlib configure 1.16.0
     1163newlib configure 1.17.0
    11641164generated by GNU Autoconf 2.59
    11651165
    11661166Copyright (C) 2003 Free Software Foundation, Inc.
     
    11741174This file contains any messages produced by compilers while
    11751175running configure, to aid debugging if configure makes a mistake.
    11761176
    1177 It was created by newlib $as_me 1.16.0, which was
     1177It was created by newlib $as_me 1.17.0, which was
    11781178generated by GNU Autoconf 2.59.  Invocation command line was
    11791179
    11801180  $ $0 $@
     
    22252225
    22262226# Define the identity of the package.
    22272227 PACKAGE='newlib'
    2228  VERSION='1.16.0'
     2228 VERSION='1.17.0'
    22292229
    22302230
    22312231# Some tools Automake needs.
     
    1174411744fi
    1174511745
    1174611746cat >>confdefs.h <<_ACEOF
    11747 #define _NEWLIB_VERSION "1.16.0"
     11747#define _NEWLIB_VERSION "1.17.0"
    1174811748_ACEOF
    1174911749
    1175011750
     
    1239012390} >&5
    1239112391cat >&5 <<_CSEOF
    1239212392
    12393 This file was extended by newlib $as_me 1.16.0, which was
     12393This file was extended by newlib $as_me 1.17.0, which was
    1239412394generated by GNU Autoconf 2.59.  Invocation command line was
    1239512395
    1239612396  CONFIG_FILES    = $CONFIG_FILES
     
    1245312453
    1245412454cat >>$CONFIG_STATUS <<_ACEOF
    1245512455ac_cs_version="\\
    12456 newlib config.status 1.16.0
     12456newlib config.status 1.17.0
    1245712457configured by $0, generated by GNU Autoconf 2.59,
    1245812458  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    1245912459
  • newlib/configure.host

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/configure.host newlib-1.16.0/newlib/configure.host
    old new  
    341341  *-*-rtems*)                   # generic RTEMS support
    342342        sys_dir=rtems
    343343        posix_dir=posix
     344        unix_dir=unix
    344345        ;;
    345346  a29k-*-*)
    346347        sys_dir=a29khif
     
    532533#  NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
    533534  *-*-rtems*)
    534535        default_newlib_io_long_long="yes"
     536        default_newlib_io_c99_formats="yes"
    535537        newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_FCNTL"
     538        # turn off items in posix directory
     539        newlib_cflags="${newlib_cflags} -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET"
    536540        ;;
    537541# VxWorks supplies its own version of malloc, and the newlib one
    538542# doesn't work because VxWorks does not have sbrk.
  • newlib/libc/include/inttypes.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/inttypes.h newlib-1.16.0/newlib/libc/include/inttypes.h
    old new  
    242242#define SCNxMAX         __SCNMAX(x)
    243243
    244244/* ptr types */
    245 #if __have_longlong64
    246 #define __PRIPTR(x) __STRINGIFY(ll##x)
    247 #define __SCNPTR(x) __STRINGIFY(ll##x)
     245#if __ptrint_t_long_defined
     246#define __PRIPTR(x) __STRINGIFY(l##x)
     247#define __SCNPTR(x) __STRINGIFY(l##x)
     248#elif __ptrint_t_int_defined
     249#define __PRIPTR(x) __STRINGIFY(x)
     250#define __SCNPTR(x) __STRINGIFY(x)
    248251#elif __have_long64
    249252#define __PRIPTR(x) __STRINGIFY(l##x)
    250253#define __SCNPTR(x) __STRINGIFY(l##x)
  • newlib/libc/include/machine/ieeefp.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/machine/ieeefp.h newlib-1.16.0/newlib/libc/include/machine/ieeefp.h
    old new  
    6262#  define __IEEE_BIG_ENDIAN
    6363# endif
    6464#else
    65 # define __IEEE_BIG_ENDIAN
    6665# ifdef __ARMEL__
     66#  define __IEEE_LITTLE_ENDIAN
     67# else
     68#  define __IEEE_BIG_ENDIAN
     69# endif
     70# ifdef __ARMWEL__
    6771#  define __IEEE_BYTES_LITTLE_ENDIAN
    6872# endif
    6973#endif
  • newlib/libc/include/machine/setjmp.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/machine/setjmp.h newlib-1.16.0/newlib/libc/include/machine/setjmp.h
    old new  
    2727
    2828/* necv70 was 9 as well. */
    2929
    30 #ifdef __mc68000__
     30#if defined(__m68k__) || defined(__mc68000__)
    3131/*
    3232 * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6,
    3333 * fp2-fp7      for 68881.
  • newlib/libc/include/stdint.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/stdint.h newlib-1.16.0/newlib/libc/include/stdint.h
    old new  
    392392#define UINTMAX_C(x)    x##UL
    393393#endif
    394394
     395#ifdef __rtems__
     396#include <machine/stdint.h>
     397#endif
    395398
    396399#ifdef __cplusplus
    397400}
  • newlib/libc/include/sys/features.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/sys/features.h newlib-1.16.0/newlib/libc/include/sys/features.h
    old new  
    3838#define _POSIX_MEMLOCK_RANGE            1
    3939#define _POSIX_MEMORY_PROTECTION        1
    4040#define _POSIX_MESSAGE_PASSING          1
    41 #define _POSIX_MONOTONIC_CLOCK          1
     41#define _POSIX_MONOTONIC_CLOCK          200112L
    4242#define _POSIX_PRIORITIZED_IO           1
    4343#define _POSIX_PRIORITY_SCHEDULING      1
    4444#define _POSIX_REALTIME_SIGNALS         1
    4545#define _POSIX_SEMAPHORES               1
    46 #define _POSIX_SHARED_MEMORY_OBJECTS    1
     46/* #define _POSIX_SHARED_MEMORY_OBJECTS 1 */
    4747#define _POSIX_SYNCHRONIZED_IO          1
    4848#define _POSIX_TIMERS                   1
    4949#define _POSIX_BARRIERS                 200112L
  • newlib/libc/include/sys/_types.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/include/sys/_types.h newlib-1.16.0/newlib/libc/include/sys/_types.h
    old new  
    8484typedef void *_iconv_t;
    8585#endif
    8686
     87typedef long * __intptr_t;
     88typedef unsigned long* __uintptr_t;
     89
    8790#endif  /* _SYS__TYPES_H */
  • newlib/libc/machine/arm/machine/endian.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/machine/arm/machine/endian.h newlib-1.16.0/newlib/libc/machine/arm/machine/endian.h
    old new  
    1 /* ARM configuration file */
    2 
    3 #ifndef _MACHINE_ENDIAN_H
    4 # define _MACHINE_ENDIAN_H
    5 
    6 #ifdef __ARMEB__
    7 #define BYTE_ORDER BIG_ENDIAN
    8 #else
    9 #define BYTE_ORDER LITTLE_ENDIAN
    10 #endif
    11 
    12 #endif
  • newlib/libc/sys/rtems/crt0.c

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/sys/rtems/crt0.c newlib-1.16.0/newlib/libc/sys/rtems/crt0.c
    old new  
    7777_malloc_r() {}
    7878_free_r() {}
    7979
     80/* stub for libc/posix/readdir.c libc/posix/readdir_r.c */
     81int getdents(int fd, void *dp, int count) { return -1; }
     82
    8083/* gcc can implicitly generate references to these */
    8184/* strcmp() {} */
    8285/* strcpy() {} */
  • newlib/libc/sys/rtems/machine/stdint.h

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/libc/sys/rtems/machine/stdint.h newlib-1.16.0/newlib/libc/sys/rtems/machine/stdint.h
    old new  
     1/*
     2 *
     3 */
     4#ifndef _MACHINE_STDINT_H
     5#define _MACHINE_STDINT_H
     6
     7#ifndef _STDINT_H
     8#error machine/stdint.h is an internal file and must not be directly included
     9#endif
     10
     11#ifndef __rtems__
     12#error machine/stdint.h is an RTEMS specific internal file and must not be used otherwise
     13#endif
     14
     15#if defined(__sparc__) \
     16  || defined(__powerpc__) || defined(__PPC__) \
     17  || defined(__mips__) \
     18  || defined(__sh__) \
     19  || defined(__AVR__) \
     20  || defined(_C4x) || defined(_C3x) \
     21  || defined(__H8300__)
     22/* PTRDIFF_TYPE = int */
     23#define __ptrint_t_int_defined 1
     24#endif
     25
     26#if defined(__i386__) \
     27  || defined(__m68k__) \
     28  || defined(__bfin__) \
     29  || defined(__arm__) \
     30  || defined(__H8300S__) || defined(__H8300H__)
     31/* PTRDIFF_TYPE = long */
     32#define __ptrint_t_long_defined 1
     33#endif
     34
     35#endif
  • newlib/Makefile.am

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/Makefile.am newlib-1.16.0/newlib/Makefile.am
    old new  
    8181        libc.a
    8282endif
    8383
    84 noinst_DATA = stmp-targ-include
     84BUILT_SOURCES = stmp-targ-include
    8585
    8686toollib_DATA = $(CRT0) $(CRT1)
    8787
     
    186186
    187187$(CRT1_DIR)$(CRT1): ; @true
    188188
    189 
    190 all-recursive: stmp-targ-include
    191 
    192189# The targ-include directory just holds the includes files for the
    193190# particular system and machine we have been configured for.  It is
    194191# used while building.
  • newlib/Makefile.in

    diff -Naur --exclude=CVS --exclude=.cvsignore --exclude='*~' --exclude='.#*' newlib-1.16.0.orig/newlib/Makefile.in newlib-1.16.0/newlib/Makefile.in
    old new  
    106106        pdf-recursive ps-recursive uninstall-info-recursive \
    107107        uninstall-recursive
    108108toollibDATA_INSTALL = $(INSTALL_DATA)
    109 DATA = $(noinst_DATA) $(toollib_DATA)
     109DATA = $(toollib_DATA)
    110110ETAGS = etags
    111111CTAGS = ctags
    112112DEJATOOL = $(PACKAGE)
     
    350350@USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a \
    351351@USE_LIBTOOL_FALSE@     libc.a
    352352
    353 noinst_DATA = stmp-targ-include
     353BUILT_SOURCES = stmp-targ-include
    354354toollib_DATA = $(CRT0) $(CRT1)
    355355
    356356# The functions ldexp, frexp and modf are traditionally supplied in
     
    409409
    410410# dejagnu support
    411411RUNTESTFLAGS =
    412 all: newlib.h
     412all: $(BUILT_SOURCES) newlib.h
    413413        $(MAKE) $(AM_MAKEFLAGS) all-recursive
    414414
    415415.SUFFIXES:
     
    714714        done
    715715check-am:
    716716        $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
    717 check: check-recursive
     717check: $(BUILT_SOURCES)
     718        $(MAKE) $(AM_MAKEFLAGS) check-recursive
    718719all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h
    719720installdirs: installdirs-recursive
    720721installdirs-am:
    721722        for dir in "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)"; do \
    722723          test -z "$$dir" || $(mkdir_p) "$$dir"; \
    723724        done
    724 install: install-recursive
     725install: $(BUILT_SOURCES)
     726        $(MAKE) $(AM_MAKEFLAGS) install-recursive
    725727install-exec: install-exec-recursive
    726728install-data: install-data-recursive
    727729uninstall: uninstall-recursive
     
    746748maintainer-clean-generic:
    747749        @echo "This command is intended for maintainers to use"
    748750        @echo "it deletes files that may require special tools to rebuild."
     751        -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
    749752clean: clean-recursive
    750753
    751754clean-am: clean-generic clean-libtool clean-toollibLIBRARIES \
     
    864867
    865868$(CRT1_DIR)$(CRT1): ; @true
    866869
    867 all-recursive: stmp-targ-include
    868 
    869870# The targ-include directory just holds the includes files for the
    870871# particular system and machine we have been configured for.  It is
    871872# used while building.
Note: See TracBrowser for help on using the repository browser.