33 Header Files


Files 488
Defined Variables, Types, and Constants 490
errno.h 490
fcntl.h 490
float.h 491
limits.h 491
math.h 491
mathf.h 491
setjmp.h 491
signal.h 491
stdarg.h 491
stddef.h 492
stdio.h 492
stdlib.h 492
string.h 492
time.h 492


Files

The following list is a subset of the header files provided. Each is enclosed in angle brackets, < >, whenever used in text to emphasize their inclusion in the standard C library.

All header files are found in version_path/include. See 2, Installing the Compiler Suites, p.11 for additional information.

Table 33-1   Standard Header Files  

Name  

Description  

<aouthdr.h>  

COFF optional header  

<ar.h>  

archive header  

<assert.h>  

assert( ) macro  

<ctype.h>  

character handling macros  

<dcc.h>  

prototypes not found elsewhere  

<errno.h>  

error macros and errno variable  

<fcntl.h>  

creat( ), fcntl( ), and open( ) definitions  

<filehdr.h>  

COFF file header  

<float.h>  

floating point limits  

<limits.h>  

limits of processor and operating system  

<linenum.h>  

COFF line number definitions  

<locale.h>  

locale definitions  

<malloc.h>  

old malloc( ) definitions. Use <stdlib.h>  

<math.h>  

defines the constant HUGE_VAL and declares math functions  

<mathf.h>  

single precision versions of <math.h> functions  

<memory.h>  

old declarations of mem*( ). Use <string.h>  

<mon.h>  

monitor( ) definitions  

<netdb.h>  

Berkeley socket standard header file  

<netinet/in.h>  

Berkeley socket standard header file  

<netinet/tcp.h>  

Berkeley socket standard header file  

<regexp.h>  

regular expression handling  

<reloc.h>  

COFF relocation entry definitions  

<scnhdr.h>  

COFF section header definitions  

<search.h>  

search routine declarations  

<setjmp.h>  

setjmp( ) and longjmp( ) definitions  

<signal.h>  

signal handling  

<stdarg.h>  

ANSI variable arguments handling  

<stddef.h>  

ANSI definitions  

<stdio.h>  

stdio library definitions  

<stdlib.h>  

ANSI definitions  

<storclass.h>  

COFF storage classes  

<string.h>  

str*( ) and mem*( ) declarations  

<syms.h>  

COFF symbol table definitions  

<sys/socket.h>  

Berkeley socket standard header file  

<sys/types.h>  

type definitions  

<time.h>  

time handling definitions  

<unistd.h>  

prototypes for UNIX system calls  

<values.h>  

old limits definitions. Use <limits.h> and <float.h>  

<varargs.h>  

old variable arguments handling. Use <stdarg.h>  


Defined Variables, Types, and Constants

The following list is a subset of the variables, types, and constants defined in the header files in the Diab C libraries.

errno.h

Declares the variable errno holding error codes. Defines error codes; all starting with E. See the file for more information.

fcntl.h

Defines the following constants used by open( ) and fcntl( ):

float.h

Defines constants handling the precision and range of floating point values. See the ANSI C standard for reference.

limits.h

Defines constants defining the range of integers and operating system limits. See the ANSI C and POSIX 1003.1 standards for reference.

math.h

Defines the value HUGE_VAL that is set to IEEE double precision infinity.

mathf.h

Defines the value HUGE_VAL_F that is set to IEEE single precision infinity.

setjmp.h

Defines the type jmpbuf, used by setjmp( ) and longjmp( ).
Defines the type sigjmpbuf, used by sigsetjmp( ) and siglongjmp( ).

signal.h

Defines the signal macros starting with SIG.
Defines the volatile type sig_atomic_t that can be used by signal handlers.
Defines the type sigset_t, used by POSIX signal routines.

stdarg.h

Defines the type va_list used by the macros va_start, va_arg, and va_end.

stddef.h

Defines ptrdiff_t which is the result type of subtracting two pointers.
Defines size_t which is the result type of the sizeof operator.
Defines NULL which is the null pointer constant.

stdio.h

Defines size_t which is the result type of the sizeof operator.
Defines fpos_t which is the type used for file positioning.
Defines FILE which is the type used by stream and file input and output.
Defines the BUFSIZ constant which is the size used by setbuf( ).
Defines the EOF constant which indicates end-of-file.
Defines NULL which is the null pointer constant.
Declares stdin as a pointer to the FILE associated with standard input.
Declares stdout as a pointer to the FILE associated with standard output.
Declares stderr as a pointer to the FILE associated with standard error.

stdlib.h

Defines size_t which is the result type of the sizeof operator.
Defines div_t and ldiv_t which are the types returned by div( ) and ldiv( ).
Defines NULL which is the null pointer constant.
Defines the EXIT_FAILURE and EXIT_SUCCESS constants returned by exit( ).

string.h

Defines NULL which is the null pointer constant.
Defines size_t which is the result type of the sizeof operator.

time.h

Defines CLOCKS_PER_SEC constant which is the number of clock ticks per second.

 

support@windriver.com
Copyright © 2002, Wind River Systems, Inc. All rights reserved.