Changeset cb2f320 in rtems


Ignore:
Timestamp:
Mar 5, 2004, 6:02:41 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
24a7692
Parents:
b2b143f4
Message:

2004-03-05 Joel Sherrill <joel@…>

  • libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too much was accidentally committed -- revert.
Location:
cpukit
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb2b143f4 rcb2f320  
     12004-03-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libblock/src/bdbuf.c, libblock/src/ramdisk.c,
     4        libcsupport/src/newlibc.c, libcsupport/src/sync.c,
     5        libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c,
     6        libmisc/shell/cmds.c, libmisc/shell/shell.c,
     7        libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c,
     8        libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c,
     9        libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c,
     10        libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c,
     11        libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c,
     12        libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c,
     13        libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c,
     14        libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c,
     15        libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c,
     16        libnetworking/libc/res_send.c, libnetworking/libc/res_update.c,
     17        libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c,
     18        librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c,
     19        score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too
     20        much was accidentally committed -- revert.
     21
    1222004-03-05      Joel Sherrill <joel@OARcorp.com>
    223
  • cpukit/libblock/src/bdbuf.c

    rb2b143f4 rcb2f320  
    229229
    230230    bdbuf_buffer *p = *root;
    231     bdbuf_buffer *q = NULL;
    232     bdbuf_buffer *p1, *p2;
     231    bdbuf_buffer *q, *p1, *p2;
    233232    bdbuf_buffer *buf_stack[AVL_MAX_HEIGHT];
    234233    bdbuf_buffer **buf_prev = buf_stack;
  • cpukit/libblock/src/ramdisk.c

    rb2b143f4 rcb2f320  
    1313#include <rtems.h>
    1414#include <rtems/libio.h>
    15 
    16 /* Since we compile with strict ANSI we need to undef it to get
    17  * prototypes for extensions
    18  */
    19 #undef __STRICT_ANSI__
    20 
    2115#include <errno.h>
    2216#include <stdlib.h>
  • cpukit/libcsupport/src/newlibc.c

    rb2b143f4 rcb2f320  
    2323#if defined(RTEMS_NEWLIB)
    2424#include <rtems/libcsupport.h>
    25 
    26 /* Since we compile with strict ANSI we need to undef it to get
    27  * prototypes for extensions
    28  */
    29 #undef __STRICT_ANSI__
    30 
    3125#include <stdlib.h>             /* for free() */
    3226#include <string.h>             /* for memset() */
     
    133127 
    134128#ifdef __GNUC__
    135       /* GCC extension: structure constants */
    136       _REENT_INIT_PTR((ptr));
     129          /* GCC extension: structure constants */
     130          _REENT_INIT_PTR((ptr));
    137131#else
    138       /*
    139        *  WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!!
    140        *           Last visual check was against newlib 1.8.2 but last known
    141        *           use was against 1.7.0.  This is basically an exansion of
    142        *           REENT_INIT() in <sys/reent.h>.
    143        */
    144       memset(ptr, 0, sizeof(*ptr));
    145       ptr->_stdin = &ptr->__sf[0];
    146       ptr->_stdout = &ptr->__sf[1];
    147       ptr->_stderr = &ptr->__sf[2];
    148       ptr->_current_locale = "C";
    149       ptr->_new._reent._rand_next = 1;
    150 #endif
    151 
    152       creating_task->libc_reent = ptr;
    153       return TRUE;
    154   }
     132          /*
     133           *  WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!!
     134           *           Last visual check was against newlib 1.8.2 but last known
     135           *           use was against 1.7.0.  This is basically an exansion of
     136           *           REENT_INIT() in <sys/reent.h>.
     137           */
     138          memset(ptr, 0, sizeof(*ptr));
     139          ptr->_stdin = &ptr->__sf[0];
     140          ptr->_stdout = &ptr->__sf[1];
     141          ptr->_stderr = &ptr->__sf[2];
     142          ptr->_current_locale = "C";
     143          ptr->_new._reent._rand_next = 1;
     144#endif
     145
     146          creating_task->libc_reent = ptr;
     147          return TRUE;
     148  }       
    155149  else
    156150      return FALSE;
     
    242236  }
    243237
     238  /* if (ptr) */
    244239  if (ptr && ptr != &libc_global_reent) {
    245240/*
     
    254249    free(ptr);
    255250#else
    256     _Workspace_Free(ptr);
     251        _Workspace_Free(ptr);
    257252#endif
    258253  }
  • cpukit/libcsupport/src/sync.c

    rb2b143f4 rcb2f320  
    2222#endif
    2323
    24 /* Since we compile with strict ANSI we need to undef it to get
    25  * prototypes for extensions
    26  */
    27 #undef __STRICT_ANSI__
    28 int fdatasync(int);        /* still not always prototyped */
    29 
    30 
    3124#include <unistd.h>
    3225#include <stdio.h>
     
    4235/* XXX check standards -- Linux version appears to be void */
    4336void _fwalk(struct _reent *, void *);
    44 
    4537
    4638static void sync_wrapper(FILE *f)
     
    6961int sync(void)
    7062{
    71   extern struct _reent libc_global_reent;
    72 
    73   /*
    74    *  Walk the one used initially by RTEMS.
    75    */
    76   _fwalk(&libc_global_reent, sync_wrapper);
    77 
    78   /*
    79    *  XXX Do we walk the one used globally by newlib?
    80    *  XXX Do we need the RTEMS global one?
    81    */
    82 
    83   /*
    84    *  Now walk all the per-thread reentrancy structures.
    85    */
    8663  rtems_iterate_over_all_threads(sync_per_thread);
    87 
    8864  return 0;
    8965}
  • cpukit/libmisc/cpuuse/cpuuse.c

    rb2b143f4 rcb2f320  
    102102        if ( !isprint(name[3]) ) name[3] = '*';
    103103
    104 #if defined(unix) || \
    105   ( (CPU_HARDWARE_FP == TRUE) && !defined(__mips_single_float) )
     104#if defined(unix) || ( CPU_HARDWARE_FP == TRUE )
    106105        printf( "0x%08x   %4s    %8d     %5.3f\n",
    107106          the_thread->Object.id,
  • cpukit/libmisc/monitor/mon-symbols.c

    rb2b143f4 rcb2f320  
    1616#endif
    1717
    18 /* Since we compile with strict ANSI we need to undef it to get
    19  * prototypes for extensions
    20  */
    21 #undef __STRICT_ANSI__
    22 
    2318#include <string.h>
     19
     20#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
     21#include <rtems.h>
    2422#include <stdio.h>
    2523#include <stdlib.h>
    2624
    27 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    28 #include <rtems.h>
    2925#include <rtems/monitor.h>
    3026#include "symbols.h"
  • cpukit/libmisc/shell/cmds.c

    rb2b143f4 rcb2f320  
    2727#include "config.h"
    2828#endif
    29 
    30 /* Since we compile with strict ANSI we need to undef it to get
    31  * prototypes for extensions
    32  */
    33 #undef __STRICT_ANSI__
    3429
    3530#include <stdio.h>
     
    453448   umask(msk);
    454449   msk=umask(0);
    455    printf("0%o\n", (unsigned int) msk);
     450   printf("0%o\n",msk);
    456451   umask(msk);
    457452   return 0;
  • cpukit/libmisc/shell/shell.c

    rb2b143f4 rcb2f320  
    1616#include "config.h"
    1717#endif
    18 
    19 /* Since we compile with strict ANSI we need to undef it to get
    20  * prototypes for extensions
    21  */
    22 #undef __STRICT_ANSI__
    2318
    2419#include <stdio.h>
  • cpukit/libnetworking/kern/kern_sysctl.c

    rb2b143f4 rcb2f320  
    6161#include <sys/buf.h>
    6262
    63 /* Since we compile with strict ANSI we need to undef it to get
    64  * prototypes for extensions
    65  */
    66 #undef __STRICT_ANSI__
    67 
    6863#include <stdio.h>                                /* for snprintf() */
    6964size_t   strlcpy(char *, const char *, size_t);
  • cpukit/libnetworking/lib/ftpfs.c

    rb2b143f4 rcb2f320  
    637637      hent = gethostbyname(hostname);
    638638      if (hent != NULL) {
    639         memcpy((char *)(&(fsp->farCtrlAddress.sin_addr)),
    640               hent->h_addr,
     639        bcopy(hent->h_addr,
     640              (char *)(&(fsp->farCtrlAddress.sin_addr)),
    641641              sizeof(fsp->farCtrlAddress.sin_addr));
    642642      }
  • cpukit/libnetworking/lib/tftpDriver.c

    rb2b143f4 rcb2f320  
    1515 *
    1616 */
    17 
    18 /* Since we compile with strict ANSI we need to undef it to get
    19  * prototypes for extensions
    20  */
    21 #undef __STRICT_ANSI__
    2217
    2318#include <stdio.h>
  • cpukit/libnetworking/libc/gethostbydns.c

    rb2b143f4 rcb2f320  
    6767#include <arpa/nameser.h>
    6868
    69 /* Since we compile with strict ANSI we need to undef it to get
    70  * prototypes for extensions
    71  */
    72 #undef __STRICT_ANSI__
    73 
    7469#include <stdio.h>
    7570#include <unistd.h>
  • cpukit/libnetworking/libc/gethostbyht.c

    rb2b143f4 rcb2f320  
    5656static char rcsid[] = "$Id$";
    5757#endif /* LIBC_SCCS and not lint */
    58 
    59 /* Since we compile with strict ANSI we need to undef it to get
    60  * prototypes for extensions
    61  */
    62 #undef __STRICT_ANSI__
    6358
    6459#include <sys/param.h>
  • cpukit/libnetworking/libc/gethostnamadr.c

    rb2b143f4 rcb2f320  
    2929#endif /* LIBC_SCCS and not lint */
    3030
    31 /* Since we compile with strict ANSI we need to undef it to get
    32  * prototypes for extensions
    33  */
    34 #undef __STRICT_ANSI__
    35 
    3631#include <sys/param.h>
    3732#include <sys/socket.h>
  • cpukit/libnetworking/libc/getnetbyht.c

    rb2b143f4 rcb2f320  
    4747static chat rcsid[] = "$Id$";
    4848#endif /* LIBC_SCCS and not lint */
    49 
    50 /* Since we compile with strict ANSI we need to undef it to get
    51  * prototypes for extensions
    52  */
    53 #undef __STRICT_ANSI__
    5449
    5550#include <sys/types.h>
  • cpukit/libnetworking/libc/getnetnamadr.c

    rb2b143f4 rcb2f320  
    2727static char rcsid[] = "$Id$";
    2828#endif /* LIBC_SCCS and not lint */
    29 
    30 /* Since we compile with strict ANSI we need to undef it to get
    31  * prototypes for extensions
    32  */
    33 #undef __STRICT_ANSI__
    3429
    3530#include <sys/param.h>
  • cpukit/libnetworking/libc/inet_addr.c

    rb2b143f4 rcb2f320  
    5858static char rcsid[] = "$Id$";
    5959#endif /* LIBC_SCCS and not lint */
    60 
    61 /* Since we compile with strict ANSI we need to undef it to get
    62  * prototypes for extensions
    63  */
    64 #undef __STRICT_ANSI__
    6560
    6661#include <sys/param.h>
  • cpukit/libnetworking/libc/linkaddr.c

    rb2b143f4 rcb2f320  
    3737static char sccsid[] = "@(#)linkaddr.c  8.1 (Berkeley) 6/4/93";
    3838#endif /* LIBC_SCCS and not lint */
    39 
    40 /* Since we compile with strict ANSI we need to undef it to get
    41  * prototypes for extensions
    42  */
    43 #undef __STRICT_ANSI__
    4439
    4540#include <sys/types.h>
  • cpukit/libnetworking/libc/map_v4v6.c

    rb2b143f4 rcb2f320  
    6666#include <arpa/nameser.h>
    6767
    68 /* Since we compile with strict ANSI we need to undef it to get
    69  * prototypes for extensions
    70  */
    71 #undef __STRICT_ANSI__
    72 
    7368#include <stdio.h>
    7469#include <string.h>
  • cpukit/libnetworking/libc/ns_print.c

    rb2b143f4 rcb2f320  
    3030#include <arpa/nameser.h>
    3131#include <arpa/inet.h>
    32 
    33 /* Since we compile with strict ANSI we need to undef it to get
    34  * prototypes for extensions
    35  */
    36 #undef __STRICT_ANSI__
    3732
    3833#include <assert.h>
  • cpukit/libnetworking/libc/ns_ttl.c

    rb2b143f4 rcb2f320  
    2525
    2626#include <arpa/nameser.h>
    27 
    28 /* Since we compile with strict ANSI we need to undef it to get
    29  * prototypes for extensions
    30  */
    31 #undef __STRICT_ANSI__
    3227
    3328#include <ctype.h>
  • cpukit/libnetworking/libc/nsap_addr.c

    rb2b143f4 rcb2f320  
    1919static char rcsid[] = "$Id$";
    2020#endif /* LIBC_SCCS and not lint */
    21 
    22 /* Since we compile with strict ANSI we need to undef it to get
    23  * prototypes for extensions
    24  */
    25 #undef __STRICT_ANSI__
    2621
    2722#include <sys/types.h>
  • cpukit/libnetworking/libc/rcmd.c

    rb2b143f4 rcb2f320  
    4545#include <arpa/inet.h>
    4646
    47 /* Since we compile with strict ANSI we need to undef it to get
    48  * prototypes for extensions
    49  */
    50 #undef __STRICT_ANSI__
    51 
    5247#include <signal.h>
    5348#include <fcntl.h>
  • cpukit/libnetworking/libc/res_debug.c

    rb2b143f4 rcb2f320  
    9898static char rcsid[] = "$Id$";
    9999#endif /* LIBC_SCCS and not lint */
    100 
    101 /* Since we compile with strict ANSI we need to undef it to get
    102  * prototypes for extensions
    103  */
    104 #undef __STRICT_ANSI__
    105100
    106101#include <sys/types.h>
  • cpukit/libnetworking/libc/res_mkupdate.c

    rb2b143f4 rcb2f320  
    2626#endif /* not lint */
    2727#endif /* not rtems */
    28 
    29 /* Since we compile with strict ANSI we need to undef it to get
    30  * prototypes for extensions
    31  */
    32 #undef __STRICT_ANSI__
    3328
    3429#include <sys/types.h>
  • cpukit/libnetworking/libc/res_query.c

    rb2b143f4 rcb2f320  
    7575#endif /* LIBC_SCCS and not lint */
    7676
    77 /* Since we compile with strict ANSI we need to undef it to get
    78  * prototypes for extensions
    79  */
    80 #undef __STRICT_ANSI__
    81 
    8277#include <sys/types.h>
    8378#include <sys/param.h>
  • cpukit/libnetworking/libc/res_send.c

    rb2b143f4 rcb2f320  
    7979 */
    8080
    81 /* Since we compile with strict ANSI we need to undef it to get
    82  * prototypes for extensions
    83  */
    84 #undef __STRICT_ANSI__
    85 
    8681#include <sys/types.h>
    8782#include <sys/param.h>
  • cpukit/libnetworking/libc/res_update.c

    rb2b143f4 rcb2f320  
    2626 * <viraj_bais@ccm.fm.intel.com>
    2727 */
    28 
    29 /* Since we compile with strict ANSI we need to undef it to get
    30  * prototypes for extensions
    31  */
    32 #undef __STRICT_ANSI__
    3328
    3429#include <sys/param.h>
  • cpukit/libnetworking/net/radix.c

    rb2b143f4 rcb2f320  
    10271027        while (cp < cplim)
    10281028                *cp++ = -1;
    1029         if (rn_inithead((void *)&mask_rnhead, 0) == 0)
     1029        if (rn_inithead((void **)&mask_rnhead, 0) == 0)
    10301030                panic("rn_init 2");
    10311031}
  • cpukit/libnetworking/rtems/mkrootfs.c

    rb2b143f4 rcb2f320  
    2525 
    2626 */
    27 
    28 /* Since we compile with strict ANSI we need to undef it to get
    29  * prototypes for extensions
    30  */
    31 #undef __STRICT_ANSI__
    3227
    3328#include <errno.h>
  • cpukit/librpc/src/rpc/clnt_perror.c

    rb2b143f4 rcb2f320  
    4040 *
    4141 */
    42 /* Since we compile with strict ANSI we need to undef it to get
    43  * prototypes for extensions
    44  */
    45 #undef __STRICT_ANSI__
    46 
    4742#include <stdio.h>
    4843#include <stdlib.h>
  • cpukit/librpc/src/rpc/svc.c

    rb2b143f4 rcb2f320  
    4343 * Copyright (C) 1984, Sun Microsystems, Inc.
    4444 */
    45 
    46 /* Since we compile with strict ANSI we need to undef it to get
    47  * prototypes for extensions
    48  */
    49 #undef __STRICT_ANSI__
    5045
    5146#include <string.h>
  • cpukit/score/macros/rtems/score/chain.inl

    rb2b143f4 rcb2f320  
    4747
    4848#define _Chain_Head( _the_chain ) \
    49    ((Chain_Node *) ((void *)(_the_chain)))
     49   ((Chain_Node *) (_the_chain))
    5050
    5151/*PAGE
     
    5555
    5656#define _Chain_Tail( _the_chain ) \
    57    ((Chain_Node *) ((void *)&(_the_chain)->permanent_null))
     57   ((Chain_Node *) &(_the_chain)->permanent_null)
    5858
    5959/*PAGE
  • cpukit/score/src/objectidtoname.c

    rb2b143f4 rcb2f320  
    4141  Objects_Information *information;
    4242  Objects_Control     *the_object = (Objects_Control *) 0;
    43   Objects_Locations    ignored_location;
    4443 
    4544  if ( !name )
     
    5958    return OBJECTS_INVALID_ID;
    6059
    61   the_object = _Objects_Get( information, id, &ignored_location );
     60  the_object = _Objects_Get( information, id, OBJECTS_SEARCH_LOCAL_NODE );
    6261  if (!the_object)
    6362    return OBJECTS_INVALID_ID;
Note: See TracChangeset for help on using the changeset viewer.