128 Commits

Author SHA1 Message Date
Christian Mauderer
d31a3658d0 rtemsbsd: Add wrapper for open, fopen, malloc, ...
Add the following rtems_bsd_program_... wrapper:

* rtems_bsd_program_open
* rtems_bsd_program_socket
* rtems_bsd_program_close
* rtems_bsd_program_fopen
* rtems_bsd_program_fclose
* rtems_bsd_program_malloc
* rtems_bsd_program_calloc
* rtems_bsd_program_realloc
* rtems_bsd_program_free
* rtems_bsd_program_strdup
* rtems_bsd_program_vasprintf
* rtems_bsd_program_asprintf
2016-08-02 10:21:46 +02:00
Christian Mauderer
3d91340868 rtemsbsd: Add call to program with a data restore
This adds the rtems_bsd_program_call_main_width_data_restore function.
2016-08-02 10:21:38 +02:00
Christian Mauderer
a9bd4224e8 testsuite/pf01: Add test that links PF. 2016-08-01 14:02:04 +02:00
Sebastian Huber
bf7faad356 rtems-bsd-mutex: Update due to API changes 2016-07-28 08:07:14 +02:00
Chris Johns
95100121dc config: Fix telnetd configuration warning. 2016-07-19 08:12:41 +10:00
Chris Johns
34f6271425 Provide empty RTEMS_BSD_CFGDECL_.* defines if not used. 2016-07-01 16:43:56 +10:00
Chris Johns
65c65bb7a3 Add telnetd as service to rc.conf. 2016-07-01 15:49:52 +10:00
Chris Johns
f01b1f7209 Add RTEMS_BSD_CONFIG_DOMAIN_PAGE_MBUFS_SIZE.
The domain allocator page abd mbuf size can be configured by the
user using RTEMS_BSD_CONFIG_DOMAIN_PAGE_MBUFS_SIZE.
2016-06-30 11:42:49 +10:00
Chris Johns
912b685792 Make the LibBSD PID match getpid(). 2016-06-30 09:19:06 +10:00
Chris Johns
c980a04df5 Fix fomatting and C++ guard. 2016-06-30 09:18:21 +10:00
Chris Johns
90873cc802 Add ftpd as a service. Add rtems-bsd-config.h for app libbsd set up. 2016-06-28 13:32:01 +10:00
Chris Johns
f588325390 Change the Nexus bus to defines and have the BSP declare them. 2016-06-28 13:30:44 +10:00
Chris Johns
459d67d537 Move the Nexus bus driver decls available to users. 2016-06-27 13:35:08 +10:00
Chris Johns
55c564a028 Refactor rc.conf processing to be services based. 2016-06-27 13:32:24 +10:00
Sebastian Huber
32fd702138 Update due to RTEMS printer API changes 2016-06-23 14:08:02 +02:00
Sebastian Huber
70d52b8d19 rtems-bsd-mutex: Update due to API changes 2016-05-30 16:06:42 +02:00
Sebastian Huber
04762cf575 Directly use <machine/endian.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Sebastian Huber
3d1e767c8f Directly use <sys/types.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Sebastian Huber
f57582265c rtems-bsd-rc-conf.h: Add missing include 2016-05-30 16:06:41 +02:00
Sebastian Huber
9546d905c2 rtems-bsd-mutex: Update due to API changes 2016-05-25 13:09:58 +02:00
Chris Johns
05d47ae865 Clean up whitespace. 2016-05-18 15:20:36 +10:00
Chris Johns
f5c6651da8 Add support for rc.conf(5) initialisation.
Provide user support for rc.conf(5) so a user can create a suitable
/etc/rc.conf file to initialise libbsd.

This patch by default adds basic networking support:

 cloned_interfaces
 ifconfig_'interface'
 defaultrouter
 hostname

Refer to FreeBSD documentation for examples.

Users can make a single call to have /etc/rc.conf processed, or pass a
file name to a specific configuration file or a text string with line
feeds can be passed to the scripting version of the interface.

The rc.conf support is implemented in terms of directive handlers that
are called based on a regular expression. The design allows new handlers
to be added as needed.

Line concatenation is still to be implemented.
2016-05-18 13:49:17 +10:00
Sebastian Huber
81e5ff4be6 Add kernel namespace exception for mbstat 2016-05-06 14:49:15 +02:00
Sebastian Huber
edb5e4b023 Add kernel namespace exceptions
These names correspond to sysctls.
2016-05-06 14:40:02 +02:00
Sebastian Huber
b8f127e64a Update kernel namespace 2016-05-06 14:10:40 +02:00
Sebastian Huber
54a577d44f subr_prf.c: Port to RTEMS 2016-05-06 14:07:31 +02:00
Sebastian Huber
0f5dd1cc38 Add script to create the kernel namespace header 2016-05-06 08:56:03 +02:00
Chris Johns
83eb07c4d6 Add sbin/sysctl 2016-05-06 15:07:56 +10:00
Sebastian Huber
58c1bf6b5d rtems-bsd-mutex: Update due to API changes 2016-04-06 14:55:56 +02:00
Sebastian Huber
c5abeb5866 rtems-bsd-mutex: Fix mtx_destroy() 2016-04-06 14:54:32 +02:00
Sebastian Huber
d5b64f2704 Use RTEMS provided <sys/endian.h> 2015-11-17 14:43:06 +01:00
Sebastian Huber
dd96574e45 SOCKETPAIR(2): Port to RTEMS 2015-11-16 09:52:50 +01:00
Sebastian Huber
c1644467b1 Rename kernel space log() to _bsd_log()
This avoids a conflict with the standard math library log() function.
2015-11-10 10:23:35 +01:00
Sebastian Huber
b168f6972d BUS_SPACE(9): Use FreeBSD files for i386 arch 2015-09-29 11:05:31 +02:00
Sebastian Huber
07ff2c1910 rtems-bsd-mutex: Update due to API changes 2015-07-24 10:42:35 +02:00
Sebastian Huber
b22ad9f4c5 rtems-bsd-mutex: Fix resource count updates 2015-06-23 08:58:58 +02:00
Chris Johns
59bc7c1f5f Remove #undefs and fix formatting. 2015-06-19 16:07:32 +10:00
Chris Johns
b5aca58594 Add error() to the BSD program support. 2015-06-16 13:16:37 +10:00
Chris Johns
8440506ee8 Add tcpdump and libpcap.
- Update the file builder generator to handle generator specific cflags and
  includes. The tcpdump and libpcap have localised headers and need specific
  headers paths to see them. There are also module specific flags and these
  need to be passed to the lex and yacc generators.

- Add the tcpdump support.
2015-06-15 17:42:23 +10:00
Sebastian Huber
b3ff71e003 rtems-bsd-mutex: Use standard thread queues 2015-05-20 09:58:21 +02:00
Sebastian Huber
c0b0b3ed11 rtems-bsd-mutex: Update due to API changes 2015-04-23 14:55:42 +02:00
Sebastian Huber
aee6864330 if_dwc: Add Altera Cyclone V support 2015-04-01 09:15:30 +02:00
Sebastian Huber
49b9c5e2df LAGG(4): Enable and test 2015-03-30 23:02:15 +02:00
Sebastian Huber
012c263eb1 VLAN(4): Enable and test 2015-03-30 23:02:15 +02:00
Sebastian Huber
9bfcb86790 rtems-bsd-mutex: Support priority changes 2015-03-26 13:53:24 +01:00
Sebastian Huber
8475e7aa0a SLEEPQUEUE(9): Port to RTEMS 2015-03-24 15:20:57 +01:00
Sebastian Huber
e5724f788a atomic.h: Fix for GCC version 5 and later 2015-03-09 14:20:45 +01:00
Sebastian Huber
8ed1b181aa rtems_bsd_mutex: SMP support via ISR locks 2015-03-06 14:58:13 +01:00
Sebastian Huber
e5a017550a atomic.h: Use <stdatomic.h> or <atomic> for SMP 2015-03-06 14:58:13 +01:00
Sebastian Huber
9a5073462d atomic.h: Format changes 2015-03-06 14:58:13 +01:00