mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 13:09:43 +08:00

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.
30 lines
554 B
C
30 lines
554 B
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 <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
|
|
#include <rtems/shell.h>
|
|
|
|
#define TEST_NAME "LIBBSD NETSHELL 1"
|
|
|
|
/*
|
|
* RTEMS Startup Task
|
|
*/
|
|
static void test_main(void)
|
|
{
|
|
rtems_shell_env_t env = rtems_global_shell_env;
|
|
|
|
rtems_shell_main_loop( &env );
|
|
|
|
puts( "*** END OF " TEST_NAME " TEST ***" );
|
|
exit( 0 );
|
|
}
|
|
|
|
#include <rtems/bsd/test/default-init.h>
|