Changeset abef0f6 in rtems


Ignore:
Timestamp:
Oct 28, 2002, 1:56:01 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
11bbeb9
Parents:
6f07dbc
Message:

2002-10-28 Joel Sherrill <joel@…>

  • Pass to eliminate warnings.
  • kern/uipc_mbuf.c: Conditional SYSINIT() usage on rtems. Fix return statement without a value.
  • lib/ftpfs.c: read and write filesystem routines return ssize_t.
  • lib/syslog.c: Add include of <string.h> to eliminate warning.
  • lib/tftpDriver.c: read and write filesystem routines return ssize_t.
  • libc/gethostbydns.c: Prototype abort().
  • libc/inet_ntoa.c: Prototype strcpy().
  • libc/rcmd.c: Add include of <sys/select.h>
  • net/if_loop.c: Turn token at end of endif to comment.
  • net/rtsock.c, nfs/bootp_subr.c: Conditional SYSINIT() usage on rtems.
  • rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>.
  • rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and memset() since the BSD code tries to avoid using libc .h files since it is used to being in the kernel.
  • rtems/rtems_syscall.c: read and write filesystem routines return ssize_t.
Location:
cpukit/libnetworking
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/ChangeLog

    r6f07dbc rabef0f6  
     12002-10-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Pass to eliminate warnings.
     4        * kern/uipc_mbuf.c: Conditional SYSINIT() usage on __rtems__.
     5        Fix return statement without a value.
     6        * lib/ftpfs.c: read and write filesystem routines return ssize_t.
     7        * lib/syslog.c: Add include of <string.h> to eliminate warning.
     8        * lib/tftpDriver.c: read and write filesystem routines return ssize_t.
     9        * libc/gethostbydns.c: Prototype abort().
     10        * libc/inet_ntoa.c: Prototype strcpy().
     11        * libc/rcmd.c: Add include of <sys/select.h>
     12        * net/if_loop.c: Turn token at end of endif to comment.
     13        * net/rtsock.c, nfs/bootp_subr.c:  Conditional SYSINIT() usage
     14        on __rtems__.
     15        * rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>.
     16        * rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and
     17        memset() since the BSD code tries to avoid using libc .h files
     18        since it is used to being in the kernel.
     19        * rtems/rtems_syscall.c: read and write filesystem routines
     20        return ssize_t.
     21
    1222002-10-25      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    223
  • cpukit/libnetworking/kern/uipc_mbuf.c

    r6f07dbc rabef0f6  
    5151#include <vm/vm_extern.h>
    5252
     53#if !defined(__rtems__)
    5354static void mbinit __P((void *))  __attribute__ ((unused));
    5455SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL)
     56#endif
    5557
    5658struct mbuf *mbutl;
     
    730732
    731733        if (m0 == 0)
    732                 return;
     734                return 0;
    733735        while (off > (mlen = m->m_len)) {
    734736                off -= mlen;
     
    769771                m = m->m_next;
    770772        }
    771 out:    if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen))
     773/*out:*/
     774        if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen))
    772775                m->m_pkthdr.len = totlen;
    773776        return 0;
  • cpukit/libnetworking/lib/ftpfs.c

    r6f07dbc rabef0f6  
    960960 * Read from a FTP stream
    961961 */
    962 int rtems_ftp_read(
     962ssize_t rtems_ftp_read(
    963963  rtems_libio_t *iop,
    964964  void          *buffer,
     
    10141014}
    10151015
    1016 int rtems_ftp_write(
     1016ssize_t rtems_ftp_write(
    10171017  rtems_libio_t *iop,
    10181018  const void    *buffer,
  • cpukit/libnetworking/lib/syslog.c

    r6f07dbc rabef0f6  
    1313#include <sys/socket.h>
    1414#include <netinet/in.h>
     15#include <string.h>
    1516
    1617#include <unistd.h>
  • cpukit/libnetworking/lib/tftpDriver.c

    r6f07dbc rabef0f6  
    792792 * Read from a TFTP stream
    793793 */
    794 static int rtems_tftp_read(
     794static ssize_t rtems_tftp_read(
    795795    rtems_libio_t *iop,
    796796    void          *buffer,
     
    933933}
    934934
    935 static int rtems_tftp_write(
     935static ssize_t rtems_tftp_write(
    936936    rtems_libio_t   *iop,
    937937    const void      *buffer,
  • cpukit/libnetworking/libc/gethostbydns.c

    r6f07dbc rabef0f6  
    7878#include "res_config.h"
    7979
     80void abort(void); /* to avoid warning */
     81
    8082#define SPRINTF(x) ((size_t)sprintf x)
    8183
  • cpukit/libnetworking/libc/inet_ntoa.c

    r6f07dbc rabef0f6  
    5353{
    5454        static char ret[18];
     55        char *strcpy(char *dest, const char *src);
    5556
    5657        strcpy(ret, "[inet_ntoa error]");
  • cpukit/libnetworking/libc/rcmd.c

    r6f07dbc rabef0f6  
    6060#endif
    6161
     62#include <sys/select.h>
     63
    6264
    6365#define max(a, b)       ((a > b) ? a : b)
  • cpukit/libnetworking/net/if_loop.c

    r6f07dbc rabef0f6  
    8282#include <netatalk/at.h>
    8383#include <netatalk/at_var.h>
    84 #endif NETATALK
     84#endif /* NETATALK */
    8585
    8686#include "bpfilter.h"
     
    206206                isr = NETISR_ATALK;
    207207                break;
    208 #endif NETATALK
     208#endif /* NETATALK */
    209209        default:
    210210                printf("lo%d: can't handle af%d\n", ifp->if_unit,
  • cpukit/libnetworking/net/rtsock.c

    r6f07dbc rabef0f6  
    6868                    struct rt_addrinfo *, caddr_t, struct walkarg *));
    6969static int      rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *));
     70#if !defined(__rtems__)
    7071static int      sysctl_dumpentry __P((struct radix_node *rn, void *vw));
    7172static int      sysctl_iflist __P((int af, struct walkarg *w));
     73#endif
    7274static int       route_output __P((struct mbuf *, struct socket *));
    7375static int       route_usrreq __P((struct socket *,
     
    676678 * This is used in dumping the kernel table via sysctl().
    677679 */
     680#if !defined(__rtems__)
    678681int
    679682sysctl_dumpentry(rn, vw)
     
    708711        return (error);
    709712}
    710 
     713#endif
     714
     715#if !defined(__rtems__)
    711716int
    712717sysctl_iflist(af, w)
     
    763768        return (0);
    764769}
    765 
     770#endif
     771
     772#if !defined(__rtems__)
    766773static int
    767774sysctl_rtsock SYSCTL_HANDLER_ARGS
     
    808815
    809816SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock,"");
     817#endif
    810818
    811819/*
  • cpukit/libnetworking/nfs/bootp_subr.c

    r6f07dbc rabef0f6  
    122122static int getdec __P((char **ptr));
    123123#endif
     124#if !defined(__rtems__)
    124125static char *substr __P((char *a,char *b));
    125 #if !defined(__rtems__)
    126126static void mountopts __P((struct nfs_args *args, char *p));
    127127static int xdr_opaque_decode __P((struct mbuf **ptr,u_char *buf,
     
    671671#endif
    672672
     673#if !defined(__rtems__)
    673674static int getdec(ptr)
    674675        char **ptr;
     
    684685        return(ret);
    685686}
    686 
     687#endif
     688
     689#if !defined(__rtems__)
    687690static char *substr(a,b)
    688691        char *a,*b;
     
    703706        return (0);
    704707}
     708#endif
    705709
    706710static void printip(char *prefix,struct in_addr addr)
  • cpukit/libnetworking/rtems/rtems_bootp.c

    r6f07dbc rabef0f6  
    77#include <sys/types.h>
    88#include <rtems/rtems_bsdnet.h>
     9#include <rtems/rtems_bsdnet_internal.h>
    910
    1011/*
  • cpukit/libnetworking/rtems/rtems_bsdnet_internal.h

    r6f07dbc rabef0f6  
    5252#define splx(_s)        do { (_s) = 0; } while(0)
    5353
     54/* to avoid warnings */
     55void *memcpy(void *dest, const void *src, size_t n);
     56void *memset(void *s, int c, size_t n);
     57
    5458#define ovbcopy(f,t,n) bcopy(f,t,n)
    5559#define copyout(f,t,n) (memcpy(t,f,n),0)
  • cpukit/libnetworking/rtems/rtems_syscall.c

    r6f07dbc rabef0f6  
    660660}
    661661
    662 static int
     662static ssize_t
    663663rtems_bsdnet_read (rtems_libio_t *iop, void *buffer, unsigned32 count)
    664664{
     
    666666}
    667667
    668 static int
     668static ssize_t
    669669rtems_bsdnet_write (rtems_libio_t *iop, const void *buffer, unsigned32 count)
    670670{
Note: See TracChangeset for help on using the changeset viewer.