Jennifer Averett
9d3ac2b51a
Add custom limits.h and timespec.h
...
These will be needed for added a version of select that is
closer to bsd's select.
2012-11-26 09:24:57 -06:00
Sebastian Huber
0bc8807943
CAM: Update due to API changes
2012-11-05 16:15:31 +01:00
Jennifer Averett
09087dc3e8
ping: Remove unnecessary ifdef
2012-10-26 08:58:31 -05:00
Joel Sherrill
af0a8ead1a
netstat/kvm: Disable debug prints
2012-10-25 09:03:28 -05:00
Joel Sherrill
e0b40b0aa2
netstat/netstat.h: Add macro so rt_tables is in private namespace
...
Otherwise this conflicts with the rt_tables in the kernel and
kvm can't work.
2012-10-25 09:02:38 -05:00
Joel Sherrill
2b640ee8fb
uipc_domain.c: Correct max_linkhdr
2012-10-24 18:14:32 -05:00
Joel Sherrill
5f600ddbed
netstat: Enable use of kvm again
...
The code committed has some debug information enabled. It ends with
an odd reference to address 0x1.
2012-10-24 15:40:19 -05:00
Joel Sherrill
34e1fb2c5a
Add support for kvm.h in RTEMS terms
...
The implementation uses an array of strings and variable names. The
names are weak symbolic references to the items we have seen calls
to kvm services with.
2012-10-24 15:38:22 -05:00
Joel Sherrill
5e93bed562
Tool patches: Add newlib patch needed
2012-10-24 15:37:49 -05:00
Jennifer Averett
9257b31240
Added -g option to Makefile.
2012-10-24 15:03:50 -05:00
Jennifer Averett
240093f3ce
ping: corrected argument get to work with rtems.
2012-10-24 15:02:37 -05:00
Jennifer Averett
cb5035400c
_sx_xlock(): Added check for not in interrupt.
2012-10-24 15:01:23 -05:00
Joel Sherrill
d4515a8d0e
kern_time: Disable some routines RTEMS has
2012-10-23 16:49:40 -05:00
Joel Sherrill
6f23b75ba2
netstat: Use rtems_clock_get_uptime() instead of BSD specific method
2012-10-23 16:49:17 -05:00
Joel Sherrill
bea701c3a0
netstat: Add macros to assist use of getopt_r()
2012-10-23 16:48:54 -05:00
Joel Sherrill
8ddbc30f41
rtems-bsd-sx.c: Disable check for interruptible blocking until it is supported
2012-10-23 14:21:44 -05:00
Joel Sherrill
df900d3a86
Commands: Build with IPV6 enabled
2012-10-23 14:21:44 -05:00
Jennifer Averett
d422d0df64
Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd
2012-10-23 14:16:33 -05:00
Jennifer Averett
2df6b3148a
netstat: Added exit funtionality.
2012-10-23 14:13:08 -05:00
Joel Sherrill
e26cd8dd2e
route: Add macros to assist use of getopt_r()
2012-10-23 13:36:45 -05:00
Joel Sherrill
68e0948111
Makefile: Conditionalize IPV6 files and build some commands as .rel
...
At least ifconfig has "static" global C constructors and you have
to force the objects in.
2012-10-23 13:31:30 -05:00
Joel Sherrill
cc2aec486d
.gitignore: Add .rel
2012-10-23 13:31:04 -05:00
Joel Sherrill
25f7f0f9b5
ifconfig.c: Correct for getopt_r()
2012-10-23 11:13:58 -05:00
Joel Sherrill
346810af65
netstat/if.c: Use POSIX not BSD signals
2012-10-23 11:13:57 -05:00
Joel Sherrill
7b43b62c17
rtems-bsd-symbols.h: Do not hide sysctlbyname().
2012-10-23 11:13:57 -05:00
Joel Sherrill
9fb2d3d089
memstat_all.c: Disable memstat_kvm_all()
2012-10-23 11:13:57 -05:00
Joel Sherrill
0fa7dabe89
route command: Clean up kernal symbol accesses
2012-10-23 11:13:57 -05:00
Joel Sherrill
e9aaadb911
Add libkvm man pages
2012-10-23 11:13:57 -05:00
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