-d38.9

Trace database map closings and appends Debug command-line switch

The -d38.9 debugging switch traces map closures for maps that can be closed:

ndbm_map_close(name, file, flags)
db_map_close(name, file, flags)
impl_map_close(name, file, flags)
ph_map_close(name): pmap-ph_fastclose=num
prog_map_lookup(name) failed (errno) -- closing
seq_map_close(name)

Here, the name is either the name you gave to the map with the K configuration command, or one assigned internally by sendmail (such as aliases.files). The file is the filename on disk that contains the database. The flags describe the specific features of a map. They are printed in hexadecimal, and the meanings of the values printed are listed in Table 15-10.

Table 15-10. Flags describing properties of database maps

Hex

Text

Description

MF_VALID

0x00000001

This entry is valid.

MF_INCLNULL

0x00000002

Include null byte in key.

MF_OPTIONAL

0x00000004

Don’t complain if map is not found.

MF_NOFOLDCASE

0x00000008

Don’t fold case in keys.

MF_MATCHONLY

0x00000010

Only check for existence of the key.

MF_OPEN

0x00000020

This database is open.

MF_WRITABLE

0x00000040

Open for writing.

MF_ALIAS

0x00000080

This is an alias file.

MF_TRY0NULL

0x00000100

Try with no null byte.

MF_TRY1NULL

0x00000200

Try with the null byte.

MF_LOCKED

0x00000400

This map is currently locked.

MF_ALIASWAIT

0x00000800

Alias map in aliaswait state.

MF_IMPL_HASH

0x00001000

Implicit: underlying hash database.

MF_IMPL_NDBM

0x00002000 ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.