Difference between revisions of "Standard library"

From Embedded Xinu
Jump to navigation Jump to search
(Basic page layout; notes on headers not implemented in XINU)
 
m (Fixed inclusion of update template)
Line 1: Line 1:
{Update}
+
{{Update}}
 
The Embedded XINU standard library contains a portion of the functions defined by the ANSI standard.  The functions parallel the ANSI standard C library as close as possible.
 
The Embedded XINU standard library contains a portion of the functions defined by the ANSI standard.  The functions parallel the ANSI standard C library as close as possible.
  

Revision as of 21:57, 24 July 2007

Clockimportant.png This article or section needs to be updated.
Parts of this article or section have been identified as no longer being up to date.
Please update the article to reflect recent changes, and remove this template when finished.

The Embedded XINU standard library contains a portion of the functions defined by the ANSI standard. The functions parallel the ANSI standard C library as close as possible.

Input and Output <stdio.h>

The input and output functions are currently being tested and augmented.

Character Class Tests <ctype.h>

The character class functions are currently being tested and augmented.

String Functions <string.h>

The string functions are currently being tested and augmented.

Utility Functions <stdlib.h>

The utility functions are currently being tested and augmented.

Diagnostics <assert.h>

A macro ASSERT(int expression) is defined in kernel.h. No assert.h header file is included in the Embedded XINU standard library.

Variable Argument Lists <stdarg.h>

Code relating to variable argument lists currently resides in the header vararg.h This header needs to be tested and migrated to the standard header stdarg.h.

Signals <signal.h>

Signals are not currently implemented in the XINU standard library. However, this portion of the library would be a beneficial addition for future releases. The header signal.h provides functionality for handling conditions that arise during execution including termination and error conditions.

Date and Time Functions <time.h>

Dates and times are not currently used in Embedded XINU. However, this portion of the library would be a beneficial addition for future releases. The header time.h provides functions for date and time formatting and determining current date and time. This header would be more useful after the network driver is complete and Embedded XINU is able to synchronize with an time server.

Implementation-defined Limits <limits.h>

Limits are not currently used in Embedded XINU. However, this portion of the library would be a beneficial addition for future releases. The header limits.h defines maximum and minimum values for the integral C types.

Not Implemented Headers

Some of the ANSI standard library headers are not included in the XINU standard library, nor are there reasons to add these headers. The following headers have been excluded due to architectural limitations and lack of feasibility:

  • math.h
  • float.h
  • setjmp.h
  • locale.h
  • errno.h
  • stddef.h