Sebastian Huber e599318e91 Update files to match FreeBSD layout
Add compatibility with Newlib header files.  Some FreeBSD header files
are mapped by the translation script:

     o rtems/bsd/sys/_types.h
     o rtems/bsd/sys/errno.h
     o rtems/bsd/sys/lock.h
     o rtems/bsd/sys/param.h
     o rtems/bsd/sys/resource.h
     o rtems/bsd/sys/time.h
     o rtems/bsd/sys/timespec.h
     o rtems/bsd/sys/types.h
     o rtems/bsd/sys/unistd.h

It is now possible to include <sys/socket.h> directly for example.

Generate one Makefile which builds everything including tests.
2013-10-10 09:08:23 +02:00

47 lines
1.2 KiB
C

/*
* This is the body of the test. It does not do much except ensure
* that the target is alive after initializing the TCP/IP stack.
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#define TEST_NAME "LIBBSD INIT 1"
static void test_main(void)
{
puts( "Sleeping to see what happens" );
sleep( 5 );
puts( "*** END OF " TEST_NAME " TEST ***" );
exit( 0 );
}
/* for old configuration structure */
#include <rtems/rtems_bsdnet.h>
/*
* Network configuration
*/
struct rtems_bsdnet_config rtems_bsdnet_config = {
NULL, /* Network interface */
NULL, /* Use fixed network configuration */
0, /* Default network task priority */
0, /* Default mbuf capacity */
0, /* Default mbuf cluster capacity */
"testSystem", /* Host name */
"nowhere.com", /* Domain name */
"127.0.0.1", /* Gateway */
"127.0.0.1", /* Log host */
{"127.0.0.1" }, /* Name server(s) */
{"127.0.0.1" }, /* NTP server(s) */
0,
0,
0,
0,
0
};
#include <rtems/bsd/test/default-init.h>