| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Library Interfaces and Headers Oracle Solaris 11 Information Library |
Library Interfaces and Headers
SMHBA_GetAdapterAttributes(3LIB)
SMHBA_GetAdapterPortAttributes(3LIB)
SMHBA_GetBindingCapability(3LIB)
SMHBA_GetDiscoveredPortAttributes(3LIB)
SMHBA_GetFCPhyAttributes(3LIB)
SMHBA_GetPersistentBinding(3LIB)
SMHBA_GetPortAttributesByWWN(3LIB)
SMHBA_GetProtocolStatistics(3LIB)
SMHBA_GetSASPhyAttributes(3LIB)
SMHBA_GetVendorLibraryAttributes(3LIB)
SMHBA_GetWrapperLibraryAttributes(3LIB)
SMHBA_RegisterForAdapterAddEvents(3LIB)
SMHBA_RegisterForAdapterEvents(3LIB)
SMHBA_RegisterForAdapterPhyStatEvents(3LIB)
SMHBA_RegisterForAdapterPortEvents(3LIB)
SMHBA_RegisterForAdapterPortStatEvents(3LIB)
SMHBA_RegisterForTargetEvents(3LIB)
SMHBA_RemoveAllPersistentBindings(3LIB)
SMHBA_RemovePersistentBinding(3LIB)
- integer types
#include <stdint.h>
The <stdint.h> header declares sets of integer types having specified widths, anddefines corresponding sets of macros. It also defines macros that specify limitsof integer types corresponding to types defined in other standard headers.
The ``width'' of an integer type is the number of bits usedto store its value in a pure binary system; the actual typecan use more bits than that (for example, a 28-bit type couldbe stored in 32 bits of actual storage). An N-bit signed typehas values in the range -2N-1 or 1-2N-1 to 2N-1-1, while an N-bitunsigned type has values in the range 0 to 2N-1.
Types are defined in the following categories:
integer types having certain exact widths
integer types having at least certain specified widths
fastest integer types having at least certain specified widths
integer types wide enough to hold pointers to objects
integer types having greatest width
Some of these types may denote the same type.
Corresponding macros specify limits of the declared types and construct suitable constants.
For each type described herein that the implementation provides, the <stdint.h> headerdeclares thattypedef name and defines the associated macros. Conversely, for eachtype described herein that the implementation does not provide, the <stdint.h> headerdoes not declare thattypedef name, nor does it define the associatedmacros. An implementation provides those types described as required, but need notprovide any of the others (described as optional).
Whentypedef names differing only in the absence or presence of theinitialu are defined, they denote corresponding signed and unsigned types asdescribed in the ISO/IEC 9899: 1999 standard, Section 6.2.5; an implementation providingone of these corresponding types must also provide the other.
In the following descriptions, the symbolN represents an unsigned decimal integerwith no leading zeros (for example, 8 or 24, but not 04or 048).
Thetypedef nameintN_t designates a signed integer type with widthN, no padding bits, and a two's-complement representation. Thus,int8_t denotes a signed integer type with a width of exactly 8 bits.
The typedef nameuintN_t designates an unsigned integer type with widthN. Thus,uint24_t denotes an unsigned integer type with a width of exactly 24 bits.
The following types are required:
int8_tint16_tint32_tuint8_tuint16_tuint32_t
If an implementation provides integer types with width 64 that meet these requirements, then the following types are required:
int64_tuint64_t
In particular, this is the case if any of the following are true:
The implementation supports the_POSIX_V6_ILP32_OFFBIG programming environment and the application is being built in the_POSI X_V6_ILP32_OFFBIG programming environment (see the Shell and Utilities volume of IEEE Std 1003.1-200x, c99, Programming Environments).
The implementation supports the_POSIX_V6_LP64_OFF64 programming environment and the application is being built in the_POSIX_ V6_LP64_OFF64 programming environment.
The implementation supports the_POSIX_V6_LPBIG_OFFBIG programming environment and the application is being built in the_POSIX_V6_LPBIG_OFFBIG programming environment.
All other types of this form are optional.
Thetypedef nameint_leastN_t designates a signed integer type with a width of at leastN, such that no signed integer type with lesser size has at least the specified width. Thus,int_least32 _t denotes a signed integer type with a width of at least 32 bits.
Thetypedef nameuint_leastN_t designates an unsigned integer type with a width of at leastN, such that no unsigned integer type with lesser size has at least the specified width. Thus,uint_ least16_t denotes an unsigned integer type with a width of at least 16 bits.
The following types are required:
int_least8_tint_least16_tint_least32_tint_least64_tuint_least8_tuint_least16_tuint_least32_tuint_least64_t
All other types of this form are optional.
Each of the following types designates an integer type that is usually fastest to operate with among all integer types that have at least the specified width.
The designated type is not guaranteed to be fastest for all purposes; if the implementation has no clear grounds for choosing one type over another, it will simply pick some integer type satisfying the signedness and width requirements.
Thetypedef nameint_fastN_t designates the fastest signed integer type with a width of at leastN. Thetypedef nameuint_fastN_ t designates the fastest unsigned integer type with a width of at leastN.
The following types are required:
int_fast8_tint_fast16_tint_fast32_tint_fast64_tuint_fast8_tuint_fast16_tuint_fast32_tuint_fast64_t
All other types of this form are optional.
Designates a signed integer type with the property that any valid pointer to void can be converted to this type, then converted back to a pointer to void, and the result will compare equal to the original pointer.
Designates an unsigned integer type with the property that any valid pointer to void can be converted to this type, then converted back to a pointer to void, and the result will compare equal to the original pointer.
On standard-conforming systems, theintptr_t anduintptr_t types are required; otherwise, they are optional.
Designates a signed integer type capable of representing any value of any signed integer type.
Designates an unsigned integer type capable of representing any value of any unsigned integer type.
These types are required.
Applications can test for optional types by using the corresponding limit macro fromLimits of Specified-Width Integer Types.
The following macros specify the minimum and maximum limits of the typesdeclared in the <stdint.h> header. Each macro name corresponds to a similartype name inInteger Types.
Each instance of any defined macro is replaced by a constant expressionsuitable for use in#if preprocessing directives. This expression has the sametype as would an expression that is an object of the correspondingtype converted according to the integer promotions. Its implementation-defined value is equal toor greater in magnitude (absolute value) than the corresponding value givenbelow, with the same sign, except where stated to be exactly thegiven value.
Minimum values of exact-width signed integer types:
Exactly -(2N-1)
Maximum values of exact-width signed integer types:
Exactly 2N-1 -1
Maximum values of exact-width unsigned integer types:
Exactly 2N -1
Minimum values of minimum-width signed integer types:
-(2N-1 -1)
Maximum values of minimum-width signed integer types:
2N-1 -1
Maximum values of minimum-width unsigned integer types:
2N -1
Minimum values of fastest minimum-width signed integer types:
-(2N-1 -1)
Maximum values of fastest minimum-width signed integer types:
2N-1 -1
Maximum values of fastest minimum-width unsigned integer types:
2N-1 -1
Minimum value of pointer-holding signed integer type:
-(215 -1)
Maximum value of pointer-holding signed integer type:
215 -1
Minimum value of pointer-holding signed integer type:
216 -1
Minimum value of greatest-width signed integer type:
-(263 -1)
Maximum value of greatest-width signed integer type:
263 -1
Maximum value of greatest-width unsigned integer type:
264 -1
The following macros specify the minimum and maximum limits of integer typescorresponding to types defined in other standard headers.
Each instance of these macros is replaced by a constant expression suitablefor use in#if preprocessing directives. This expression has the same typeas would an expression that is an object of the corresponding typeconverted according to the integer promotions. Its implementation-defined value is equal to orgreater in magnitude (absolute value) than the corresponding value given below, withthe same sign.
-65535
+65535
See below.
See below.
65535
See below.
See below.
See below.
See below.
Ifsig_atomic_t (see the <signal.h> header) is defined as a signed integertype, the value of {SIG_ATOMIC_MIN} is no greater than -127 and thevalue of {SIG_ATOMIC_MAX} is no less than 127. Otherwise,sig_atomic_t is definedas an unsigned integer type, the value of {SIG_ATOMIC_MIN} is 0, andthe value of {SIG_ATOMIC_MAX} is no less than 255.
Ifwchar_t (see the <stddef.h> header) is defined as a signed integertype, the value of {WCHAR_MIN} is no greater than -127 and the value of {WCHAR_MAX} is no less than 127. Otherwise,wchar_t is definedas an unsigned integer type, and the value of {WCHAR_MIN} is 0and the value of {WCHAR_MAX} is no less than 255.
Ifwint_t (see the <wchar.h> header) is defined as a signed integertype, the value of {WINT_MIN} is no greater than -32767 and thevalue of {WINT_MAX} is no less than 32767. Otherwise,wint_t is defined asan unsigned integer type, and the value of {WINT_MIN} is 0 andthe value of {WINT_MAX} is no less than 65535.
The following macros expand to integer constant expressions suitable for initializing objectsthat have integer types corresponding to types defined in the <stdint.h> header.Each macro name corresponds to a similar type name listed under minimum-widthinteger types and greatest-width integer types.
Each invocation of one of these macros expands to an integer constantexpression suitable for use in#if preprocessing directives. The type of theexpression has the same type as would an expression that is anobject of the corresponding type converted according to the integer promotions. The valueof the expression is that of the argument. The argument in anyinstance of these macros is a decimal, octal, or hexadecimal constant witha value that does not exceed the limits for the corresponding type.
The macroINTN_C(value) expands to an integer constant expression corresponding to the typeint_leastN_t. The macroUINTN_C(value) expands to an integer constant expression corresponding to the typeuint_leastN_t. For example, ifuint_least64_t is a name for the type unsigned long long, thenUINT64_C(0x123) might expand to the integer constant0x123ULL.
The following macro expands to an integer constant expression having the value specified by its argument and the typeintmax_t:
INTMAX_C(value)
The following macro expands to an integer constant expression having the value specified by its argument and the typeuintmax_t:
UINTMAX_C(value)
Seeattributes(5) for descriptions of the following attributes:
|
inttypes.h(3HEAD),signal.h(3HEAD),stddef.h(3HEAD),wchar.h(3HEAD),attributes(5),standards(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |