Address several issues from compiling examples
Compiling the code from examples "code-block:: c" along with public includes and a bsp exposed a few issues amongst a lot of false positives. Address some of these: * Terminate struct declarations with ';'. Mainly for pedantic correctness. * Show ptrdiff_t instead of size_t for the sbrk() prototype, matching the current argument type in rtems. * Replace some occurrences of unsigned16 with uint16_t. * Fix odd type declaration, "uint8_t char*" -> "char*". * Use appropriate helper to get chain head instead of invalid access to nonexistent struct member. * Remove several excess '\' escapes. * Use RTEMS_SELF instead of undefined SELF. * Use rtems_task instead of void for task functions. * Add missing stack size parameter in task creation. * Use rtems_interrupt_level instead of undefined rtems_interrupt. * Correct return value format for rtems_object_id_get_api() rtems_object_id_get_index() (enum and uint16_t) and also fix corresponding print formatting. * Correct return value documentation for rtems_object_id_get_class(), rtems_object_id_get_node() and rtems_object_id_get_index() int -> uint32_t. * Use RTEMS_SUCCESSFUL instead of undefined RTEMS_STATUS_SUCCESSFUL and fix return value variable name in rate monotonic examples. * Use RTEMS_TIMEOUT instead of undefined TIMEOUT and RTEMS_PERIOD_STATUS instead of undefined STATUS. * Add missing fields to ftpd configuration. * Correct parameter types in ftpd hook prototype, unsigned char * -> void *. * Fix various code-block:: attributes, c -> makefile and c -> shell. * Add missing parenthesis in socket buffer memory calculation example. * Remove typedef in declaration of mq_attr since it is defiend without typedef in reality. * Update siginfo_t declaration to match current reality. * Update shell user command definition example to include mode, uid and gid.
Showing
- bsp-howto/console.rst 1 addition, 1 deletionbsp-howto/console.rst
- bsp-howto/miscellanous_support.rst 1 addition, 1 deletionbsp-howto/miscellanous_support.rst
- bsp-howto/real_time_clock.rst 2 additions, 2 deletionsbsp-howto/real_time_clock.rst
- c-user/chains.rst 2 additions, 2 deletionsc-user/chains.rst
- c-user/configuring_a_system.rst 1 addition, 1 deletionc-user/configuring_a_system.rst
- c-user/constant_bandwidth_server.rst 3 additions, 3 deletionsc-user/constant_bandwidth_server.rst
- c-user/fatal_error.rst 4 additions, 3 deletionsc-user/fatal_error.rst
- c-user/interrupt_manager.rst 4 additions, 4 deletionsc-user/interrupt_manager.rst
- c-user/key_concepts.rst 2 additions, 2 deletionsc-user/key_concepts.rst
- c-user/object_services.rst 10 additions, 9 deletionsc-user/object_services.rst
- c-user/rate_monotonic_manager.rst 9 additions, 10 deletionsc-user/rate_monotonic_manager.rst
- c-user/task_manager.rst 1 addition, 1 deletionc-user/task_manager.rst
- networking/network_servers.rst 8 additions, 2 deletionsnetworking/network_servers.rst
- networking/networking_driver.rst 2 additions, 2 deletionsnetworking/networking_driver.rst
- networking/using_networking_rtems_app.rst 3 additions, 3 deletionsnetworking/using_networking_rtems_app.rst
- posix-users/message_passing.rst 1 addition, 1 deletionposix-users/message_passing.rst
- posix-users/signal.rst 4 additions, 12 deletionsposix-users/signal.rst
- shell/configuration_and_init.rst 9 additions, 6 deletionsshell/configuration_and_init.rst
- shell/file_and_directory.rst 3 additions, 3 deletionsshell/file_and_directory.rst
- shell/general_commands.rst 1 addition, 1 deletionshell/general_commands.rst
Please register or sign in to comment