573 Commits

Author SHA1 Message Date
Joel Sherrill
4b8600a006 trimdomain.c: New file in libutil 2012-10-23 11:13:57 -05:00
Joel Sherrill
44ee042822 Add kvm header file - stubbed for RTEMS
This is only used to read dumps with a symbol table. We can use
sysctlbyname().
2012-10-23 11:13:57 -05:00
Joel Sherrill
2cf245e32d netshell01: Add netstat command 2012-10-23 11:01:36 -05:00
Joel Sherrill
b6ac989f8a Add netstat command
This adds the netstat command. All but one file is currently enabled.
That file does not currently build.

Also added libmemstat and libutil. libmemstat had a lot of code related
to kvm and kernel memory access disabled. This may or may not be an
issue.
2012-10-17 11:13:36 -05:00
Jennifer Averett
99ae4eb50f Added rtems exit code to ping, route, and ifconfig commands.
The rtems shell commands should not exit but allow multiple
command attempts and some of the commands share code that
will exit.  For this reason a common exit routine was
provided and code added to err.h to address this.

allow access to it.
2012-10-16 13:38:09 -05:00
Joel Sherrill
6bf758668b Add if_nametoindex() 2012-10-12 13:41:29 -05:00
Joel Sherrill
81d9b34598 Resolve more conflicts 2012-10-12 13:41:01 -05:00
Joel Sherrill
44ffbd53c6 Add ifconfig command as RTEMS Shell command
This is enough to be able to invoke the ifconfig command but it
calls exit() which is inappropriate.

The "struct option" in the ifconfig code conflicts with a structure
of the same name in newlib's and glibc's getopt.h.
2012-10-11 19:03:46 -05:00
Joel Sherrill
82e1c695b6 Userspace Makefile: Clean up yacc/lex handling to avoid conflicts 2012-10-11 17:28:30 -05:00
Jennifer Averett
05519817fb Added files to get netshell to link when using ping. 2012-10-11 09:03:25 -05:00
Jennifer Averett
d4ceffbe23 rtems-bsd-symbols.h: Add _bsd_ipsec_set_policy. 2012-10-11 08:32:10 -05:00
Jennifer Averett
fe98401354 netshell01: Add ns parser globals needed for ping. 2012-10-11 08:30:50 -05:00
Jennifer Averett
24ddf77f01 rtems-uthread_main_np.c: Moved rtems_init_task_id extern to pthread_np.h. 2012-10-08 09:48:41 -05:00
Jennifer Averett
3ac9bb177e route.c and ifconfig.c: Added rtems style mains.
Fixed route.c to match freebsd version with only rtems additions.
2012-10-05 13:41:20 -05:00
Jennifer Averett
808a6b2720 Added more information on MMAP_NOT_AVAILABLE. 2012-10-05 09:36:30 -05:00
Jennifer Averett
45a81cdc5e Added rtems specific version of _pthread_main_np()
This required adding rtems_id rtems_init_task_id to identify the
main task.
2012-10-05 09:34:09 -05:00
Jennifer Averett
dbb054073a port_before.h: Added an include of endian.h to resolve __htons calls. 2012-09-13 14:57:48 -05:00
Jennifer Averett
c9be340ecf Added an rtems specific getprogname() to userspace. 2012-09-13 14:54:38 -05:00
Jennifer Averett
4ffe3f450e Added h_errno methods to userspace. 2012-09-13 14:52:42 -05:00
Jennifer Averett
99dc0d7d9b rec_close.c: Removed usage of munmap() method.
Note that there is a define MMAP_NOT_AVAILABLE that when NOT
defined results in mmap not being called but munmap is still
called.  A comment was also added to our notes about this.
2012-09-13 14:03:35 -05:00
Jennifer Averett
ef97f34a7a Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-09-13 12:07:37 -05:00
Jennifer Averett
bf4a3380c6 Added resolv/mtctxres.c to userspace for ___mtctxres(). 2012-09-13 12:07:02 -05:00
Jennifer Averett
afcd88e1fe Added rtems_bsdnet_log_host_address and its initialization to userspace. 2012-09-13 11:56:22 -05:00
Joel Sherrill
40b4210bf0 freebsd-userspace/Makefile: Compile generated nsparser.c 2012-09-13 09:28:23 -05:00
Joel Sherrill
210671ae7d Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-09-12 17:11:22 -05:00
Joel Sherrill
c52d92245a nsdispatch.c: New file added along with required dependencies
This file uses dynamic loading and is using some magic for
statically linked modules included in it. These modules may
or may not show up magically in an RTEMS executable. This will
eventually have to be investigated and resolved.
2012-09-12 17:11:16 -05:00
Jennifer Averett
5a95703a80 Added res_findzonecut2 to user space. 2012-09-12 14:20:15 -05:00
Jennifer Averett
8c92f71d9a Added __res_state to user space. 2012-09-12 14:05:27 -05:00
Jennifer Averett
e4e17463bb Added userspace db files. 2012-09-12 10:59:41 -05:00
Jennifer Averett
a4e4484df6 rtems-bsd-config.h.in: Added defines for O_NOFOLLOW and O_SHLOCK 2012-09-12 10:51:59 -05:00
Jennifer Averett
97d85af79f namespace.h: Added fileio methods and _sigprocmask
Rearranged defines into logical blocks and added the following:
 _close
 _write
 _fcntl
 _fsync
 _fstat
 _stat
 _sigprocmask
2012-09-12 10:48:11 -05:00
Joel Sherrill
d73df24536 namespace.h: Add some pthread rwlock and mutex methods 2012-09-12 08:51:04 -05:00
Joel Sherrill
0d928a036e nameser/ns_samedomain.c: New file 2012-09-11 19:13:52 -05:00
Joel Sherrill
ea3f3a331f netshell01/.gitignore: Update 2012-09-11 16:06:33 -05:00
Joel Sherrill
7d017b5e64 local/port_before.h: Make more like FreeBSD version 2012-09-11 16:05:36 -05:00
Joel Sherrill
c6a5ede79d netshell01/.gitignore: New file 2012-09-11 16:04:07 -05:00
Joel Sherrill
1dff51a7ec freebsd/bsd.h: Add include of freebsd/machine/_align.h
Multiple files in user space were coming up with _ALIGN being
unexpanded. This resolved it.
2012-09-11 16:02:41 -05:00
Jennifer Averett
060d28d8b2 Added fgetln() 2012-09-11 11:56:44 -05:00
Joel Sherrill
0f2ea18bd0 lib/libc/net/name6.c: New file
netshell01 needed the following symbols:
  - getipnodebyaddr
  - getipnodebyaddr
  - getipnodebyname
2012-09-10 19:03:41 -05:00
Joel Sherrill
33c9336aa7 rtems-bsd-sysctl.c: Formatting corrections 2012-09-10 16:45:30 -05:00
Joel Sherrill
b00e8b279d rtems-bsd-symbols.h: sysctl() should be a public symbol 2012-09-10 16:45:07 -05:00
Joel Sherrill
c4c01b8a81 namespace.h: Remove nsdispatch. File missing - not name issue 2012-09-07 13:29:57 -05:00
Joel Sherrill
3bed89ace5 freebsd-userspace/lib/libc/isc/eventlib_p.h: New file 2012-09-07 13:29:18 -05:00
Joel Sherrill
5d3848da35 lib/libc/isc/ev*.c: New files
lib/libc/isc/ev_streams.c
	lib/libc/isc/ev_timers.c
2012-09-07 13:28:10 -05:00
Joel Sherrill
e6fe77ef56 freebsd-userspace/Makefile: Resolve conflict so ifconfig and netstat are both here 2012-09-07 13:19:21 -05:00
Jennifer Averett
ebbe3cc71f Added the ifconfig command. 2012-09-07 13:16:22 -05:00
Joel Sherrill
f1710b69d4 netstat: New command - Almost completely compiles
Currently disable in Makefile until all builds. Adding it so
others can assist in debugging issues.
2012-09-07 12:50:18 -05:00
Joel Sherrill
db068df3c4 netshell01: Link against ping command 2012-09-07 12:49:40 -05:00
Joel Sherrill
53ad1b2f5a netcmds-config.h: New file. Use it in test 2012-09-07 12:49:22 -05:00
Joel Sherrill
48db7fb6bc from-freebsd.sh: Add sys/socketvar.h 2012-09-07 12:48:11 -05:00