Commit Graph

55 Commits

Author SHA1 Message Date
Ralf Corsepius
cd9564e1cd Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>. 2007-05-10 07:29:14 +00:00
Ralf Corsepius
678b3b069a Eliminate __P. 2007-05-08 12:44:16 +00:00
Ralf Corsepius
53d8e07c66 Remove (Unused). 2007-03-30 06:28:33 +00:00
Ralf Corsepius
09fdb5e819 Eliminate SCCS, LINT. Add HAVE_CONFIG_H. 2007-03-30 05:15:58 +00:00
Ralf Corsepius
0f0318e2de 2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/strsep.c: Don't build if provided by libc.
2007-03-29 14:25:40 +00:00
Ralf Corsepius
dbd2c7dcea 2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/rcmd.c: Eliminate __P(). Cosmetics.
2007-03-29 08:39:21 +00:00
Ralf Corsepius
07d0ce8eb3 2007-01-28 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/gethostbyht.c: Remove warning on unused vars.
	Remove isblank (supposed to be provided by libc).
2007-01-28 03:57:09 +00:00
Ralf Corsepius
3a0d61e9c3 Cosmetic updates from FreeBSD.
Eliminate bcopy in favor of memcpy.
2006-11-16 16:37:49 +00:00
Joel Sherrill
068c3ee1df 2006-11-02 Steven Johnson <sjohnson@sakuraindustries.com>
* libnetworking/netdb.h, libnetworking/libc/gethostbyht.c,
	libnetworking/libc/gethostnamadr.c: This patch adds a functional
	gethostbyname_r to RTEMS. We were having problems with multiple
	threads calling gethostbyname, so we decided the best way to deal
	with it was to do it properly, rather than kludge up our code to make
	gethostbyname safe. We have found several slightly different
	parameter lists for this function, it does not seem to be standard.
	The one we used has the linux interface. In RTEMS there was an
	existing gethostbyname_r inside a #ifdef _THREAD_SAFE which was NOT
	Threadsafe, as this just called gethostbyname. So we have placed all
	of the additional code inside the #ifdef _THREAD_SAFE.
2006-11-02 21:48:41 +00:00
Joel Sherrill
300c914c64 *** empty log message *** 2006-09-01 18:15:01 +00:00
Joel Sherrill
a009d94459 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
	libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
	libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
	libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
	libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
	libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
	libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_bsdnet_internal.h,
	libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
	due to improper use of int which shows up on 16 bit targets. Added
	ioctl_command_t since IOCTL command argument does not reliably fit
	into 16 bits.
2006-08-31 01:10:02 +00:00
Joel Sherrill
352332193c 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-command.c,
	libmisc/monitor/mon-driver.c, libmisc/monitor/mon-symbols.c,
	libmisc/rtmonuse/rtmonuse.c, libmisc/stackchk/check.c,
	libnetworking/libc/res_debug.c, telnetd/telnetd.c: Remove printf
	format warnings.
2006-08-30 13:53:02 +00:00
Joel Sherrill
48b1e29a7d 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/utsname.c, libnetworking/libc/res_debug.c,
	libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c,
	librpc/src/rpc/svc_simple.c: Remove printf format warnings.
2006-08-30 13:18:40 +00:00
Joel Sherrill
24cf3e5eb9 2005-11-02 Fredic Praca <freebsd-fr.org>
PR 842/networking
	* libnetworking/libc/gethostbydns.c: Avoid use of dprintf(). Rename
	dprintf to debugprintf().
2005-11-02 22:24:12 +00:00
Ralf Corsepius
c3713b3a93 Reflect changes to libnetworking/arpa/nameser.h. 2005-05-24 04:49:12 +00:00
Ralf Corsepius
8b02581b22 socklen_t. 2005-05-10 08:06:58 +00:00
Ralf Corsepius
00a578ad6b in_addr_t. 2005-05-09 12:45:45 +00:00
Ralf Corsepius
a0a03de2c3 Ansify, socklen_t. 2005-05-09 12:42:30 +00:00
Ralf Corsepius
cf29bcb979 Cosmetics from FreeBSD. 2005-05-08 06:40:09 +00:00
Joel Sherrill
3274c87676 2005-04-28 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c, libnetworking/libc/inet_ntop.c,
	libnetworking/net/if_ppp.c, libnetworking/net/pppcompress.c,
	libnetworking/net/slcompress.c, libnetworking/netinet/ip_output.c,
	libnetworking/netinet/udp_usrreq.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_select.c,
	libnetworking/rtems/rtems_showifstat.c,
	libnetworking/rtems/rtems_showroute.c,
	libnetworking/rtems/rtems_syscall.c: Fixed type mismatch and
	uninitialized variable warnings.
2005-04-28 21:49:50 +00:00
Ralf Corsepius
4c92297a3e Misc. part. updates from FreeBSD. 2005-02-04 16:35:05 +00:00
Ralf Corsepius
b90307a092 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 755/rtems
	* libnetworking/libc/res_init.c, libnetworking/lib/rtems_bsdnet_ntp.c,
	libnetworking/nfs/bootp_subr.c: Include <rtems/bsdnet/servers.h>.
2005-02-03 05:49:30 +00:00
Joel Sherrill
0e245a1103 2005-01-07 Joel Sherrill <joel@OARcorp.com>
* libnetworking/libc/res_debug.c: Added const to eliminate warnings.
2005-01-07 19:47:15 +00:00
Ralf Corsepius
2609e83f77 Unused. 2004-03-08 16:26:41 +00:00
Joel Sherrill
cb2f32039d 2004-03-05 Joel Sherrill <joel@OARcorp.com>
* 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.
2004-03-05 18:02:41 +00:00
Joel Sherrill
b2b143f402 2004-03-05 Joel Sherrill <joel@OARcorp.com>
* 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/rtems_rpc.c,
	librpc/src/rpc/svc.c, sapi/include/confdefs.h,
	score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
2004-03-05 17:58:51 +00:00
Ralf Corsepius
489c1588f4 2003-11-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/Makefile.am: Remove.
	* lib/Makefile.am: Remove.
	* Makefile.am: Merge-in the Makefile.ams above.
2003-11-28 13:27:15 +00:00
Ralf Corsepius
14d34d841e 2003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove (Merged into ../configure.ac).
	* Makefile.am, libc/Makefile.am, lib/Makefile.am, wrapup/Makefile.am:
	Reflect having merged configure.ac into ../configure.ac.
	* kern/kern_mib.c: Use RTEMS_VERSION to setup osrelease.
2003-07-08 12:21:36 +00:00
Joel Sherrill
9d647dfc30 2003-01-27 Till Straumann <strauman@SLAC.Stanford.edu>
* libc/getproto.c, libc/getprotoname.c: modification to call
	getprotoent_static() if fopen() on /etc/protocols fails.
2003-01-27 16:20:14 +00:00
Ralf Corsepius
a3dfa39b35 2002-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am: Remove C_O_FILES;
	Don't let all-local depend on $OBJS)
	* lib/Makefile.am: Ditto.
	* libc/Makefile.am: Ditto.
	* net/Makefile.am: Ditto.
	* netinet/Makefile.am: Ditto.
	* nfs/Makefile.am: Ditto.
	* rtems/Makefile.am: Ditto.
2002-12-11 15:34:58 +00:00
Joel Sherrill
0647cc743f 2002-10-31 Joel Sherrill <joel@OARcorp.com>
* libc/rcmd.c, netinet/in_cksum_arm.c: Removed warnings.
2002-10-31 20:10:40 +00:00
Joel Sherrill
abef0f69ae 2002-10-28 Joel Sherrill <joel@OARcorp.com>
* 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.
2002-10-28 13:56:01 +00:00
Joel Sherrill
68a368fc93 2002-08-09 Joel Sherrill <joel@OARcorp.com>
* libc/getservent.c: Per PR265, add  #include <netinet/in.h> for
	ntohl() function.
2002-08-09 12:45:10 +00:00
Joel Sherrill
ce75da600a 2002-07-24 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, libc/res_send.c: Do not install or use <poll.h>
	since RTEMS does not support it.
2002-07-24 13:25:06 +00:00
Ralf Corsepius
0e1dd41f04 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am: Use .$(OBJEXT) instead of .o.
	* lib/Makefile.am: Ditto.
	* libc/Makefile.am: Ditto.
	* net/Makefile.am: Ditto.
	* netinet/Makefile.am: Ditto.
	* nfs/Makefile.am: Ditto.
	* rtems/Makefile.am: Ditto.
	* wrapup/Makefile.am: Ditto.
2002-07-22 13:44:48 +00:00
Ralf Corsepius
eb4b28dca2 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am: Eliminate LIBNAME.
	* lib/Makefile.am: Ditto.
	* libc/Makefile.am: Ditto.
	* net/Makefile.am: Ditto.
	* netinet/Makefile.am: Ditto.
	* nfs/Makefile.am: Ditto.
	* rtems/Makefile.am: Ditto.
	* wrapup/Makefile.am: Use project_libdir instead of
	$(PROJECT_RELEASE)/lib.
2002-07-22 06:35:33 +00:00
Ralf Corsepius
f22ebf02b2 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* arpa/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* kern/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* Makefile.am: Include $(top_srcdir)/../automake/*.am.
	Use ../aclocal.
	* lib/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* libc/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* machine/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* net/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* netinet/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* nfs/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* rtems/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* sys/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* vm/Makefile.am: Include $(top_srcdir)/../automake/*.am.
	* wrapup/Makefile.am: Include $(top_srcdir)/../automake/*.am.
2002-06-17 09:12:00 +00:00
Joel Sherrill
8a79786886 2002-05-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Relocate c/src/libnetworking.
	* Makefile.am: Reflect moval.
	* machine/Makefile.am: Ditto.
	* net/Makefile.am: Ditto.
	* lib/Makefile.am: Ditto.
	* netinet/Makefile.am: Ditto.
	* vm/Makefile.am: Ditto.
	* libc/Makefile.am: Ditto.
	* sys/Makefile.am: Ditto.
	* arpa/Makefile.am: Ditto.
	* nfs/Makefile.am: Ditto.
	* kern/Makefile.am: Ditto.
	* rtems/Makefile.am: Ditto.
	* configure.ac: Dittp.
	* wrapup/Makefile.am: Ditto. Remove references to networking apps.
2002-05-29 17:00:59 +00:00
Joel Sherrill
51301198fb 2002-03-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/rcmd.c: Replace __rtems w/ __rtems__.
2002-04-01 13:27:46 +00:00
Joel Sherrill
01d48bf8ea 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* arpa/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* kern/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* lib/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* libc/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* machine/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* net/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* netinet/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* nfs/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* pppd/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_servers/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_telnetd/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtems_webserver/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* sys/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* vm/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:49:43 +00:00
Joel Sherrill
d747877460 2001-03-20 Till Straumann <strauman@SLAC.Stanford.EDU>
* PR158
	* libc/rcmd.c, libc/rcmd.c: Enable the rcmd() library call by
	commenting out the parts that deal with signals.  This enables
	RTEMS to 'rsh' command to a server connecting fd to remote stdio.
	The 'server-side' parts of this file which deal with authentication
	are disabled since they are not needed.
2002-03-20 22:08:06 +00:00
Joel Sherrill
d85594d462 2001-05-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/Makefile.am: Remove -D__STRICT_ANSI__.
2001-05-10 13:03:32 +00:00
Joel Sherrill
78d6a50003 2000-12-08 Joel Sherrill <joel@OARcorp.com>
* libc/linkaddr.c: Initialized variable to remove warning.
	* modem/ppp.c, modem/ppp_tty.c: Made numerous variable declarations
	conditional on PPP_COMPRESS and PPP_FILTER.  Commented out variables
	that were not used because the code using them was commented out.
	Removed totally unused variables.
	* modem/pppcompress.c: Added parentheses to avoid warnings.
	* pppd/pppmain.c: Removed numerous warnings.
2000-12-08 22:06:54 +00:00
Joel Sherrill
bcefea16ab 2000-11-27 Joel Sherrill <joel@OARcorp.com>
* libc/res_init.c: Fix typo - adding missing # on include.
2000-11-27 17:03:22 +00:00
Joel Sherrill
f0864664e1 2000-11-25 Eric Norum <eric.norum@usask.ca>
* libc/res_init.c: Move include to avoid compiler dumping core.
2000-11-25 19:45:56 +00:00
Joel Sherrill
9b28bea577 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* kern/Makefile.am, lib/Makefile.am, libc/Makefile.am,
	net/Makefile.am, netinet/Makefile.am, nfs/Makefile.am,
	pppd/Makefile.am, rtems/Makefile.am, rtems_servers/Makefile.am,
	rtems_webserver/Makefile.am, wrapup/Makefile.am: Include compile.am
2000-09-05 16:07:35 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
bf85b19188 Patch rtems-rc-4.5.0-13-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
adds .cvsignore.
2000-04-13 14:37:14 +00:00
Joel Sherrill
4bf1801d0d Patches rtems-rc-20000118-7.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains the automake files for libnetworking plus a couple of
minor fixes.  [Now only one unused/unsupported Makefile.in remains
(./c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in).]

    To apply:
        patch -p1 < rtems-rc-20000118-7.diff
        /bin/sh rtems-rc-20000118-7.rm
        /bin/sh rtems-rc-20000118-7.add
        ./bootstrap

    Notes:
    * I have tested this one by building all BSPs for m68k, powerpc, sh and
      unix with toolchains built since last weekend.
    * I did not touch libnetworking's directory layout.
2000-02-03 13:21:38 +00:00
Joel Sherrill
94b3ee1366 Made to compile after hacking tftp driver into beginnings of a mini-filesystem. 1999-01-21 22:25:43 +00:00