About This Manual

This manual contains a summary of the syntax and semantics of the C programming language as implemented on Silicon Graphics workstations. It documents previous releases of the Silicon Graphics C compiler as well as the American National Standards Institute (ANSI) C compiler.

The Silicon Graphics compiler system supports three modes of compilation: the old 32-bit mode (-o32 or -32 option), the new 32-bit mode (-n32 option), and the 64-bit mode (-64 option). For information on compilation modes and general compiler options for the old 32-bit mode, see the o32(5) man page and the MIPS Compiling and Performance Tuning Guide. For information on the new 32-bit mode and 64-bit mode, see the cc(1) man page and the MIPSpro Compiling and Performance Tuning Guide.

The term "traditional C" refers to the dialect of C described in the first edition of The C Programming Language by Kernighan and Ritchie.

Related Publications

The following documents contain additional information that may be helpful:

  • MIPSpro C and C++ Pragmas describes the #pragma directives supported by the MIPSpro C and C++ compilers.

  • MIPS Compiling and Performance Tuning Guideand MIPSpro Compiling and Performance Tuning Guide describe the compiler system, Dynamic Shared Objects (DSOs), and programming tools and interfaces. They also explain ways to improve program performance.

  • Topics in IRIX Programming presents information about internationalizing an application; working with fonts; file and record locking; and interprocess communication.

Obtaining Publications

The User Publications Catalog describes the availability and content of all Cray hardware and software documents that are available to customers. Customers who subscribe to the Cray Inform (CRInform) program can access this information on the CRInform system.

To order a document, call +1 651 683 5907. Silicon Graphics employees may send electronic mail to orderdsk@sgi.com (UNIX system users).

Customers who subscribe to the CRInform program can order software release packages electronically by using the Order Cray Software option.

Customers outside of the United States and Canada should contact their local service organization for ordering and documentation information.

Conventions

The following conventions are used throughout this document:

Convention 

Meaning

command 

This fixed-space font denotes literal items such as commands, files, routines, path names, signals, messages, and programming language structures.

manpage(x) 

Man page section identifiers appear in parentheses after man page names. The following list describes the identifiers:

1

User commands

1B

User commands ported from BSD

2

System calls

3

Library routines, macros, and opdefs

4

Devices (special files)

4P

Protocols

5

File formats

7

Miscellaneous topics

7D

DWB-related information

8

Administrator commands

Some internal routines (for example, the _assign_asgcmd_info() routine) do not have man pages associated with them.

variable 

Italic typeface denotes variable entries and words or concepts being defined.

user input 

This bold, fixed-space font denotes literal items that the user enters in interactive sessions. Output is shown in nonbold, fixed-space font.

[ ] 

Brackets enclose optional portions of a command or directive line.

... 

Ellipses indicate that a preceding element can be repeated.

The default shell in the UNICOS and UNICOS/mk operating systems, referred to as the standard shell, is a version of the Korn shell that conforms to the following standards:

  • Institute of Electrical and Electronics Engineers (IEEE) Portable Operating System Interface (POSIX) Standard 1003.2-1992

  • X/Open Portability Guide, Issue 4 (XPG4)

The UNICOS and UNICOS/mk operating systems also support the optional use of the C shell.

Reader Comments

If you have comments about the technical accuracy, content, or organization of this document, please tell us. Be sure to include the title and part number of the document with your comments.

You can contact us in any of the following ways:

  • Send electronic mail to the following address:

    techpubs@sgi.com

  • Send a facsimile to the attention of "Technical Publications" at fax number +1 650 932 0801.

  • Use the Suggestion Box form on the Technical Publications Library World Wide Web page:

    http://techpubs.sgi.com/library/

  • Call the Technical Publications Group, through the Technical Assistance Center, using one of the following numbers:

    For Silicon Graphics IRIX based operating systems: 1 800 800 4SGI

    For UNICOS or UNICOS/mk based operating systems or CRAY Origin2000 systems: 1 800 950 2729 (toll free from the United States and Canada) or +1 651 683 5600

  • Send mail to the following address:

    Technical Publications
    Silicon Graphics, Inc.
    1600 Amphitheatre Pkwy.
    Mountain View, California 94043-1351

We value your comments and will respond to them promptly.