freebsd-skq/contrib/sendmail/libsm
Gregory Neil Shapiro 552d4955b8 Merge sendmail 8.14.7 to HEAD
MFC after:	4 days
2013-04-21 17:08:44 +00:00
..
assert.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
assert.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
b-strcmp.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
b-strl.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
cdefs.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
cf.c Merge sendmail 8.14.7 to HEAD 2013-04-21 17:08:44 +00:00
clock.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
clrerr.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
config.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
debug.c Merge sendmail 8.14.4 to HEAD 2010-01-26 04:41:15 +00:00
debug.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
errstring.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
exc.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
exc.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fclose.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
feof.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
ferror.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fflush.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fget.c Merge sendmail 8.14.7 to HEAD 2013-04-21 17:08:44 +00:00
findfp.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
flags.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fopen.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fpos.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fpurge.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fput.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fread.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fscanf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fseek.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fvwrite.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fvwrite.h Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fwalk.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
fwrite.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
gen.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
get.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
glue.h Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
heap.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
heap.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
index.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
io.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
ldap.c Merge sendmail 8.14.5 to HEAD 2011-06-14 04:20:18 +00:00
local.h Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
makebuf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
Makefile Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
Makefile.m4 Merge sendmail 8.14.7 to HEAD 2013-04-21 17:08:44 +00:00
match.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
mbdb.c Merge sendmail 8.14.4 to HEAD 2010-01-26 04:41:15 +00:00
memstat.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
mpeix.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
niprop.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
path.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
put.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
README Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
refill.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
rewind.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
rpool.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
rpool.html Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
sem.c Merge sendmail 8.14.4 to HEAD 2010-01-26 04:41:15 +00:00
setvbuf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
shm.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
signal.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
smstdio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
snprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
sscanf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
stdio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strcasecmp.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strdup.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strerror.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strexit.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
string.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
stringf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strl.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strrevcmp.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
strto.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
syslogio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-cf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-event.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-exc.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-fget.c Merge sendmail 8.14.7 to HEAD 2013-04-21 17:08:44 +00:00
t-float.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-fopen.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-heap.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-match.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-memstat.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-path.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-qic.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-rpool.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-scanf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-sem.c Merge sendmail 8.14.4 to HEAD 2010-01-26 04:41:15 +00:00
t-shm.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-smstdio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-string.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-strio.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-strl.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-strrevcmp.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
t-types.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
test.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
ungetc.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
util.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
vasprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
vfprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
vfscanf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
vprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
vsnprintf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
wbuf.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
wsetup.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00
xtrap.c Stage 1 of sendmail dist tree flattening. contrib/sendmail/contrib 2008-08-28 02:25:51 +00:00

# Copyright (c) 2000-2002 Sendmail, 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.24 2003/12/20 09:23:48 gshapiro 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".