| 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)
- type-generic macros
#include <tgmath.h>
The <tgmath.h> header includes the headers <math.h> and <complex.h> and defines severaltype-generic macros.
Of the functions contained within the <math.h> and <complex.h> headers without anf (float) orl (long double) suffix, several have one or more parameterswhose corresponding real type isdouble. For each such function exceptmodf(3M), thereis a corresponding type-generic macro. The parameters whose corresponding real type isdouble in the function synopsis are generic parameters. Use of the macroinvokes a function whose corresponding real type and type domain are determinedby the arguments for the generic parameters.
Use of the macro invokes a function whose generic parameters have thecorresponding real type determined as follows:
First, if any argument for generic parameters has typelong double, the type determined islong double.
Otherwise, if any argument for generic parameters has typedouble or is of integer type, the type determined isdouble.
Otherwise, the type determined isfloat.
For each unsuffixed function in the <math.h> header for which there isa function in the <complex.h> header with the same name except forac prefix, the corresponding type-generic macro (for both functions) has the samename as the function in the <math.h> header. The corresponding type-generic macroforfabs() andcabs() isfabs().
|
If at least one argument for a generic parameter is complex, thenuse of the macro invokes a complex function; otherwise, use of themacro invokes a real function.
For each unsuffixed function in the <math.h> header without ac-prefixed counterpartin the <complex.h> header, the corresponding type-generic macro has the same nameas the function. These type-generic macros are:
atan2() fma() llround() remainder()cbrt() fmax() log10() remquo()ceil() fmin() log1p() rint()copysign() fmod() log2() round()erf() frexp() logb() scalbn()erfc() hypot() lrint() scalbln()exp2() ilogb() lround() tgamma()expm1() ldexp() nearbyint() trunc()fdim() lgamma() nextafter()floor() llrint() nexttoward()
If all arguments for generic parameters are real, then use of themacro invokes a real function; otherwise, use of the macro results inundefined behavior.
For each unsuffixed function in the <complex.h> header that is not ac-prefixed counterpart to a function in the <math.h> header, the corresponding type-genericmacro has the same name as the function. These type-generic macros are:
carg()cimag()conj()cproj()creal()
Use of the macro with any real or complex argument invokes acomplex function.
Functions invoked by use of type-generic macros are invoked with the declarationslisted below.
#include <tgmath.h>int n;float f;double d;long double ld;float complex fc;double complex dc;long double complex ldc;
The following are the type-generic macros that invoke the functions that areinvoked with the preceding declarations.
|
Seeattributes(5) for descriptions of the following attributes:
|
modf(3M),complex.h(3HEAD),math.h(3HEAD),cabs(3M),fabs(3M),attributes(5),standards(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |