31 Commits

Author SHA1 Message Date
Martin Erik Werner
2e711f2b4b 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.
2019-09-03 09:48:35 +10:00
Chris Johns
fb72a002a3 Add unicode support for commonly used characters like copyright.
- This change makes the copyright character easier to see on editors
  lacking good unicode rendering support, ie terminals.
2019-02-28 10:22:54 +11:00
Chris Johns
f7384cc2e2 Use pathto() on the genindex URL to make it relative. 2019-02-15 09:40:50 +11:00
Chris Johns
5d8b0ddd0a waf: Remove as many sys path hacks as we can.
There are still sys.path hacks in the conf.py files. They cannot
be removed because the instance of python running the sphinx-build
command does not see our top level path hacks. I looked at using
PYTHONPATH but I could not figure out how to set a process environ
var for a waf build instance.
2019-02-13 10:18:43 +11:00
Sebastian Huber
6f110ccf6b build: Prepend project common path
This avoids conflicts with standard packages such as PIL (Python Imaging
Library).
2019-02-08 09:43:16 +01:00
Sebastian Huber
b5014fe0c8 Reformat and update copyright and license notices
For everything before 2015 an OAR copyright is assumed.  Later copyright
notices are based on Git commits on a best effort basis.

The copyright notices of the "RTEMS Software Engineering Handbook" and
the "RTEMS CPU Architecture Supplement" are incomplete.
2019-01-14 07:15:27 +01:00
Sebastian Huber
e52906b556 Simplify SPDX-License-Identifier comment 2019-01-11 07:22:01 +01:00
Sebastian Huber
12dccfe716 Remove superfluous "All rights reserved." 2019-01-11 07:18:56 +01:00
Sebastian Huber
4886d60aa8 Use standard format for copyright lines 2019-01-11 07:18:16 +01:00
Sebastian Huber
50fbe0d9b4 Add common header.rst to reduce copy and paste 2019-01-09 09:24:02 +01:00
Joel Sherrill
5628d8b99a posix-users/input_and_output.rst: Document errors for mount() and unmount() 2018-11-21 13:59:15 -06:00
Marçal Comajoan Cara
0522994231 posix-users/device_and_class_specific.rst: Add Prototypes
Add and update Device and Class Specific APIs in
POSIX Users Guide.

This work was part of GCI 2018.
2018-11-21 13:55:58 -06:00
Marçal Comajoan Cara
1b05464954 posix-users/input_and_output.rst: Add Prototypes
Add and update Prototypes to Input and Output APIs in
POSIX Users Guide.

This work was part of GCI 2018.
2018-11-21 13:39:47 -06:00
Marçal Comajoan Cara
083f3584d3 posix-users/memory_managment.rst: Add Prototypes
Add Prototypes to Memory Management APIs in POSIX Users Guide.

This work was part of GCI 2018.
2018-11-21 13:07:02 -06:00
Marçal Comajoan Cara
96064e839a posix-users/system_database.rst: Add Prototypes
Add Prototypes to System Database APIs in POSIX Users Guide.

This work was part of GCI 2018.
2018-11-21 12:43:23 -06:00
Marçal Comajoan Cara
9980ff21a3 posix-users/thread_cancellation.rst: Add Prototypes
Add Prototypes to Thread Cancellation APIs.

This work was part of GCI 2018.
2018-11-21 12:08:41 -06:00
Marçal Comajoan Cara
5278c7f852 posix-users/language_specific_services.rst: Add Prototypes to Language Specific Service APIs
This work was part of GCI 2018.
2018-11-21 10:53:17 -06:00
Chris Johns
969e60e596 Update the copyright year. 2018-10-19 14:42:12 +11:00
Chris Johns
5ce8e43506 build: Fix indexing so it works on HTML and PDF.
- Remove all genindex.rst files, these are generated and should not
  exist in our source.
- Fix the HTML templates so the local specialisation works.
- Add a index link to the sidebar for HTML.

Note, there is no TOC entry for the index in the PDF output and I
cannot figure out how to add one.

Closes #3503
2018-08-21 13:47:40 +10:00
Chris Johns
42d50d760e Add indexes to all documents.
Update #3229.
2017-11-12 10:32:39 +11:00
Sebastian Huber
c5161ee2f3 posix-users: Clarify timed operation errors
Close #3182.
2017-10-24 10:50:45 +02:00
Joel Sherrill
d36d685f98 posix-users/thread.rst: Add pthread_getconcurrency and pthread_setconcurrency
Closes #2680.
2017-10-11 19:56:20 -05:00
Chris Johns
efc29ff31b Update copyright notices. 2017-08-11 13:45:52 +10:00
Gedare Bloom
1ab6d59863 memory_management: update mmap, munmap, shm_open, shm_unlink
Close #2859.
2017-07-28 15:15:57 -04:00
Gedare Bloom
6543b90aa8 posix1003-1, posix_users: mark mmap and shm functions implemented
Update #2859.
2017-07-28 15:15:57 -04:00
Joel Sherrill
ca2926f595 POSIX Users: Add posix_devctl() 2017-04-25 12:32:58 -05:00
Chris Johns
ad5d63277c waf: Cleaner formatting to see the importing. 2017-03-27 10:25:25 +11:00
Chris Johns
f97be09daf Use a single top level version number. 2017-03-20 12:18:53 +11:00
Joel Sherrill
7193f09294 Update document titles for consistency 2017-01-11 19:01:20 -06:00
Sebastian Huber
45dc7c7ba5 Update version/revision to 4.11.99 2016-12-21 11:32:51 +01:00
Chris Johns
72a62ad88f Rename all manuals with an _ to have a -. It helps released naming of files. 2016-11-03 16:58:08 +11:00