Previous Section Next Section

...T

The types returned by functions port, edit sendmail/conf.h

Not all versions of C libraries declare values returned by functions in exactly the same way in all cases. For sendmail to work properly it needs to know how certain subroutines are declared on certain systems. A few compile-time macros convey this information to sendmail, and they are listed and described in Table 3-14.

Table 3-14. Compile-time macros that define return types

Macro

Does what

ARBPTR_T

The type of an arbitrary pointer. Usually this is the "void *" type, but for some older compilers it can be the "char *" type.

GIDSET_T

The type of the second argument passed to getgroups(2). Usually this is an "int" type, but for some systems it is a "gid_t" type.

SLEEP_T

The type returned by sleep(2). Usually this is an "unsigned int" type.

SOCKADDR_LEN_T

The type of the third argument to accept(2), getsockname(2), and getpeername(2). Usually this is an "int" type.

SOCKOPT_LEN_T

The type of the fifth argument to getsockopt(2) and setsockopt(2). Usually this is an "int" type.

None of these compile-time macros will need to be defined by you unless you get warnings about mismatched types when compiling.

New ports should be reported to sendmail@sendmail.org so that they can be folded into future releases.

Previous Section Next Section