Name Date Size

.. 2014-05-20 21:08:23 31

assert.c 2014-03-06 18:31:30 4.1 KiB

assert.html 2014-03-06 18:31:30 13.9 KiB

b-strcmp.c 2014-03-06 18:31:30 3.4 KiB

b-strl.c 2014-03-06 18:31:30 5 KiB

Build 2014-03-06 18:31:30 346

cdefs.html 2014-03-06 18:31:30 2.4 KiB

cf.c 2014-03-06 18:31:30 2 KiB

clock.c 2014-03-06 18:31:30 14.5 KiB

clrerr.c 2014-03-06 18:31:30 872

config.c 2014-03-06 18:31:30 5.1 KiB

debug.c 2014-03-06 18:31:30 8.2 KiB

debug.html 2014-03-06 18:31:30 7.7 KiB

errstring.c 2014-03-06 18:31:30 6.2 KiB

exc.c 2014-03-06 18:31:30 13.1 KiB

exc.html 2014-03-06 18:31:30 23.3 KiB

fclose.c 2014-03-06 18:31:30 3.1 KiB

feof.c 2014-03-06 18:31:30 961

ferror.c 2014-03-06 18:31:30 932

fflush.c 2014-03-06 18:31:30 3.1 KiB

fget.c 2014-03-06 18:31:30 2.4 KiB

findfp.c 2014-03-06 18:31:30 10.9 KiB

flags.c 2014-03-06 18:31:30 1.3 KiB

fopen.c 2014-03-06 18:31:30 8.3 KiB

fpos.c 2014-03-06 18:31:30 3.1 KiB

fprintf.c 2014-03-06 18:31:30 1.3 KiB

fpurge.c 2014-03-06 18:31:30 1.1 KiB

fput.c 2014-03-06 18:31:30 1.2 KiB

fread.c 2014-03-06 18:31:30 2.3 KiB

fscanf.c 2014-03-06 18:31:30 1.3 KiB

fseek.c 2014-03-06 18:31:30 7.2 KiB

fvwrite.c 2014-03-06 18:31:30 6.2 KiB

fvwrite.h 2014-03-06 18:31:30 740

fwalk.c 2014-03-06 18:31:30 1.4 KiB

fwrite.c 2014-03-06 18:31:30 1.5 KiB

gen.html 2014-03-06 18:31:30 910

get.c 2014-03-06 18:31:30 1.1 KiB

glue.h 2014-03-06 18:31:30 731

heap.c 2014-03-06 18:31:30 17.3 KiB

heap.html 2014-03-06 18:31:30 13.1 KiB

index.html 2014-03-06 18:31:30 6 KiB

inet6_ntop.c 2014-03-06 18:31:30 1.1 KiB

io.html 2014-03-06 18:31:30 26.6 KiB

ldap.c 2014-03-06 18:31:30 31.4 KiB

local.h 2014-03-06 18:31:30 9.4 KiB

makebuf.c 2014-03-06 18:31:30 3.4 KiB

Makefile 2014-03-06 18:31:30 346

Makefile.m4 2014-03-06 18:31:30 1.9 KiB

match.c 2014-03-06 18:31:30 2.8 KiB

mbdb.c 2014-05-16 22:40:15 16.7 KiB

memstat.c 2014-03-06 18:31:30 5.1 KiB

mpeix.c 2014-03-06 18:31:30 13.8 KiB

niprop.c 2014-03-06 18:31:30 4.7 KiB

path.c 2014-03-06 18:31:30 391

put.c 2014-03-06 18:31:30 1.6 KiB

README 2014-03-06 18:31:30 4.4 KiB

refill.c 2014-03-06 18:31:30 7.1 KiB

rewind.c 2014-03-06 18:31:30 1.1 KiB

rpool.c 2014-03-06 18:31:30 11.7 KiB

rpool.html 2014-03-06 18:31:30 6.1 KiB

sem.c 2014-03-06 18:31:30 4.4 KiB

setvbuf.c 2014-03-06 18:31:30 4.2 KiB

shm.c 2014-03-06 18:31:30 2.6 KiB

signal.c 2014-03-06 18:31:30 7 KiB

smstdio.c 2014-03-06 18:31:30 6.1 KiB

snprintf.c 2014-03-06 18:31:30 2.3 KiB

sscanf.c 2014-03-06 18:31:30 2.3 KiB

stdio.c 2014-05-16 22:40:15 9.7 KiB

strcasecmp.c 2014-03-06 18:31:30 3.1 KiB

strdup.c 2014-03-06 18:31:30 2.8 KiB

strerror.c 2014-03-06 18:31:30 1.3 KiB

strexit.c 2014-03-06 18:31:30 2.8 KiB

string.c 2014-03-06 18:31:30 942

stringf.c 2014-03-06 18:31:30 1.8 KiB

strio.c 2014-03-06 18:31:30 9.2 KiB

strl.c 2014-03-06 18:31:30 7.5 KiB

strrevcmp.c 2014-03-06 18:31:30 1.6 KiB

strto.c 2014-03-06 18:31:30 5.4 KiB

syslogio.c 2014-03-06 18:31:30 4.1 KiB

t-cf.c 2014-03-06 18:31:30 934

t-event.c 2014-03-06 18:31:30 1.8 KiB

t-exc.c 2014-03-06 18:31:30 2.8 KiB

t-fget.c 2014-03-06 18:31:30 1.7 KiB

t-float.c 2014-03-06 18:31:30 1.8 KiB

t-fopen.c 2014-03-06 18:31:30 875

t-heap.c 2014-03-06 18:31:30 1.3 KiB

t-inet6_ntop.c 2014-03-06 18:31:30 1.4 KiB

t-match.c 2014-03-06 18:31:30 1.1 KiB

t-memstat.c 2014-03-06 18:31:30 2.2 KiB

t-path.c 2014-03-06 18:31:30 742

t-qic.c 2014-03-06 18:31:30 5.4 KiB

t-rpool.c 2014-03-06 18:31:30 1.5 KiB

t-scanf.c 2014-03-06 18:31:30 1.4 KiB

t-sem.c 2014-03-06 18:31:30 5.9 KiB

t-shm.c 2014-03-06 18:31:30 4.4 KiB

t-smstdio.c 2014-03-06 18:31:30 1.5 KiB

t-string.c 2014-03-06 18:31:30 968

t-strio.c 2014-03-06 18:31:30 775

t-strl.c 2014-03-06 18:31:30 3.5 KiB

t-strrevcmp.c 2014-03-06 18:31:30 994

t-types.c 2014-03-06 18:31:30 2.7 KiB

test.c 2014-03-06 18:31:30 2.7 KiB

ungetc.c 2014-03-06 18:31:30 3.9 KiB

util.c 2014-03-06 18:31:30 4.5 KiB

vasprintf.c 2014-03-06 18:31:30 2.9 KiB

vfprintf.c 2014-05-16 22:40:15 24.1 KiB

vfscanf.c 2014-03-06 18:31:30 18.8 KiB

vprintf.c 2014-03-06 18:31:30 999

vsnprintf.c 2014-03-06 18:31:30 1.9 KiB

wbuf.c 2014-03-06 18:31:30 2.5 KiB

wsetup.c 2014-03-06 18:31:30 1.9 KiB

xtrap.c 2014-03-06 18:31:30 653

README

# Copyright (c) 2000-2002 Proofpoint, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
# $Id: README,v 1.25 2013-11-22 20:51:42 ca Exp $
#
Libsm is a library of generally useful C abstractions.
For documentation, see index.html.
Libsm stands alone; it depends on no other sendmail libraries,
and the only sendmail header files it depends on are its own,
which reside in ../include/sm.
The t-*.c files are regression tests.
These tests are incomplete: we do not yet test all of the APIs,
and we have not yet converted all tests to use the test harness.
If a test fails read the explanation it generates. Sometimes it
is sufficient to change a compile time flag, which are also listed
below. If that does not help, check the sendmail/README files for
problems on your OS.
The b-*.c files are benchmarks that compare system routines with
those provided by libsm. By default sendmail uses the routines
provided by the OS. In several cases, the routines provided by
libsm are faster than those of the OS. If your OS provides the
routines, you can compare the performance of them with the libsm
versions by running the programs with the option -d (by default
the programs just issue an explanation when/how to use them).
The programs are:
b-strcmp.c tests strcasecmp().
+----------------------+
| CONFIGURATION MACROS |
+----------------------+
Libsm uses a set of C preprocessor macros to specify platform specific
features of the C compiler and standard C libraries.
If you are porting sendmail to a new platform, you may need to tweak
the values of some of these macros.
The following macros are given default values in <sm/config.h>.
If the default value is wrong for a given platform, then a platform
specific value is specified in one of two ways:
- A -D option is added to the confENVDEF macro; this change can be made
to the platform M4 file in devtools/OS, or to the site.config.m4
file in devtools/Site.
- The confSM_OS_HEADER macro in the platform M4 file defines sm_os_foo,
which forces "sm/os/sm_os_foo.h" to be included by "sm/config.h" via a
link that is made from "sm_os.h" to "sm/os/sm_os_foo.h". Platform
specific configuration macro settings are added to <sm/os/sm_os_foo.h>.
SM_CONF_STDBOOL_H
Set to 1 if the header file <stdbool.h> exists,
and defines true, false and bool.
SM_CONF_SYS_CDEFS_H
Set to 1 if the header file <sys/cdefs.h> exists,
and defines __P. You may need to do this to eliminate
warnings about __P being multiply defined.
SM_CONF_STDDEF_H
Set to 0 if the header file <stddef.h> does not exist.
SM_CONF_SETITIMER
Set to 0 if the setitimer function is not available.
SM_CONF_SYSEXITS_H
Set to 1 if <sysexits.h> exists, and sets the EX_* macros
to values different from the default BSD values in <sm/sysexits.h>.
SM_CONF_UID_GID
Set to 0 if <sys/types.h> does not define uid_t and gid_t.
SM_CONF_SSIZE_T
Set to 0 if <sys/types.h> does not define ssize_t.
SM_CONF_BROKEN_SIZE_T
Set to 1 if size_t is not unsigned.
SM_CONF_LONGLONG
Set to 1 if your C compiler supports the 'long long' type.
This will be set automatically if you use gcc or a C compiler
that conforms to the 1999 ISO C standard.
SM_CONF_QUAD_T
Set to 1 if your C compiler does not support 'long long',
but <sys/types.h> defines quad_t as an integral type.
SM_CONF_SHM
Set to 1 if System V shared memory APIs are available.
SM_CONF_MSG
Set to 1 if System V message queues are available.
SM_CONF_SEM
Set to 1 if semaphores are available.
SM_CONF_BROKEN_STRTOD
Set to 1 if your strtod() does not work properly.
SM_CONF_GETOPT
Set to 1 if your operating system does not include getopt(3).
SM_CONF_LDAP_INITIALIZE
Set to 1 if your LDAP client libraries include ldap_initialize(3).
SM_CONF_LDAP_MEMFREE
Set to 1 if your LDAP client libraries include ldap_memfree(3).
SM_IO_MAX_BUF_FILE
Set this to a useful buffer size for regular files if stat(2)
does not return a value for st_blksize that is the
"optimal blocksize for I/O".
SM_IO_MAX_BUF
Set this to a useful maximum buffer size for other than
regular files if stat(2) does not return a value for
st_blksize that is the "optimal blocksize for I/O".
SM_IO_MIN_BUF
Set this to a useful minimum buffer size for other than
regular files if stat(2) does not return a value for
st_blksize that is the "optimal blocksize for I/O".