Changeset abef0f6 in rtems
- Timestamp:
- 10/28/02 13:56:01 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 11bbeb9
- Parents:
- 6f07dbc
- Location:
- cpukit/libnetworking
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/ChangeLog
r6f07dbc rabef0f6 1 2002-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 1 22 2002-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 23 -
cpukit/libnetworking/kern/uipc_mbuf.c
r6f07dbc rabef0f6 51 51 #include <vm/vm_extern.h> 52 52 53 #if !defined(__rtems__) 53 54 static void mbinit __P((void *)) __attribute__ ((unused)); 54 55 SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) 56 #endif 55 57 56 58 struct mbuf *mbutl; … … 730 732 731 733 if (m0 == 0) 732 return ;734 return 0; 733 735 while (off > (mlen = m->m_len)) { 734 736 off -= mlen; … … 769 771 m = m->m_next; 770 772 } 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)) 772 775 m->m_pkthdr.len = totlen; 773 776 return 0; -
cpukit/libnetworking/lib/ftpfs.c
r6f07dbc rabef0f6 960 960 * Read from a FTP stream 961 961 */ 962 int rtems_ftp_read(962 ssize_t rtems_ftp_read( 963 963 rtems_libio_t *iop, 964 964 void *buffer, … … 1014 1014 } 1015 1015 1016 int rtems_ftp_write(1016 ssize_t rtems_ftp_write( 1017 1017 rtems_libio_t *iop, 1018 1018 const void *buffer, -
cpukit/libnetworking/lib/syslog.c
r6f07dbc rabef0f6 13 13 #include <sys/socket.h> 14 14 #include <netinet/in.h> 15 #include <string.h> 15 16 16 17 #include <unistd.h> -
cpukit/libnetworking/lib/tftpDriver.c
r6f07dbc rabef0f6 792 792 * Read from a TFTP stream 793 793 */ 794 static int rtems_tftp_read(794 static ssize_t rtems_tftp_read( 795 795 rtems_libio_t *iop, 796 796 void *buffer, … … 933 933 } 934 934 935 static int rtems_tftp_write(935 static ssize_t rtems_tftp_write( 936 936 rtems_libio_t *iop, 937 937 const void *buffer, -
cpukit/libnetworking/libc/gethostbydns.c
r6f07dbc rabef0f6 78 78 #include "res_config.h" 79 79 80 void abort(void); /* to avoid warning */ 81 80 82 #define SPRINTF(x) ((size_t)sprintf x) 81 83 -
cpukit/libnetworking/libc/inet_ntoa.c
r6f07dbc rabef0f6 53 53 { 54 54 static char ret[18]; 55 char *strcpy(char *dest, const char *src); 55 56 56 57 strcpy(ret, "[inet_ntoa error]"); -
cpukit/libnetworking/libc/rcmd.c
r6f07dbc rabef0f6 60 60 #endif 61 61 62 #include <sys/select.h> 63 62 64 63 65 #define max(a, b) ((a > b) ? a : b) -
cpukit/libnetworking/net/if_loop.c
r6f07dbc rabef0f6 82 82 #include <netatalk/at.h> 83 83 #include <netatalk/at_var.h> 84 #endif NETATALK84 #endif /* NETATALK */ 85 85 86 86 #include "bpfilter.h" … … 206 206 isr = NETISR_ATALK; 207 207 break; 208 #endif NETATALK208 #endif /* NETATALK */ 209 209 default: 210 210 printf("lo%d: can't handle af%d\n", ifp->if_unit, -
cpukit/libnetworking/net/rtsock.c
r6f07dbc rabef0f6 68 68 struct rt_addrinfo *, caddr_t, struct walkarg *)); 69 69 static int rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *)); 70 #if !defined(__rtems__) 70 71 static int sysctl_dumpentry __P((struct radix_node *rn, void *vw)); 71 72 static int sysctl_iflist __P((int af, struct walkarg *w)); 73 #endif 72 74 static int route_output __P((struct mbuf *, struct socket *)); 73 75 static int route_usrreq __P((struct socket *, … … 676 678 * This is used in dumping the kernel table via sysctl(). 677 679 */ 680 #if !defined(__rtems__) 678 681 int 679 682 sysctl_dumpentry(rn, vw) … … 708 711 return (error); 709 712 } 710 713 #endif 714 715 #if !defined(__rtems__) 711 716 int 712 717 sysctl_iflist(af, w) … … 763 768 return (0); 764 769 } 765 770 #endif 771 772 #if !defined(__rtems__) 766 773 static int 767 774 sysctl_rtsock SYSCTL_HANDLER_ARGS … … 808 815 809 816 SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock,""); 817 #endif 810 818 811 819 /* -
cpukit/libnetworking/nfs/bootp_subr.c
r6f07dbc rabef0f6 122 122 static int getdec __P((char **ptr)); 123 123 #endif 124 #if !defined(__rtems__) 124 125 static char *substr __P((char *a,char *b)); 125 #if !defined(__rtems__)126 126 static void mountopts __P((struct nfs_args *args, char *p)); 127 127 static int xdr_opaque_decode __P((struct mbuf **ptr,u_char *buf, … … 671 671 #endif 672 672 673 #if !defined(__rtems__) 673 674 static int getdec(ptr) 674 675 char **ptr; … … 684 685 return(ret); 685 686 } 686 687 #endif 688 689 #if !defined(__rtems__) 687 690 static char *substr(a,b) 688 691 char *a,*b; … … 703 706 return (0); 704 707 } 708 #endif 705 709 706 710 static void printip(char *prefix,struct in_addr addr) -
cpukit/libnetworking/rtems/rtems_bootp.c
r6f07dbc rabef0f6 7 7 #include <sys/types.h> 8 8 #include <rtems/rtems_bsdnet.h> 9 #include <rtems/rtems_bsdnet_internal.h> 9 10 10 11 /* -
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
r6f07dbc rabef0f6 52 52 #define splx(_s) do { (_s) = 0; } while(0) 53 53 54 /* to avoid warnings */ 55 void *memcpy(void *dest, const void *src, size_t n); 56 void *memset(void *s, int c, size_t n); 57 54 58 #define ovbcopy(f,t,n) bcopy(f,t,n) 55 59 #define copyout(f,t,n) (memcpy(t,f,n),0) -
cpukit/libnetworking/rtems/rtems_syscall.c
r6f07dbc rabef0f6 660 660 } 661 661 662 static int662 static ssize_t 663 663 rtems_bsdnet_read (rtems_libio_t *iop, void *buffer, unsigned32 count) 664 664 { … … 666 666 } 667 667 668 static int668 static ssize_t 669 669 rtems_bsdnet_write (rtems_libio_t *iop, const void *buffer, unsigned32 count) 670 670 {
Note: See TracChangeset
for help on using the changeset viewer.