NameDateSize

..08-Feb-202430

assert.cH A D22-Jun-20214.1 KiB

assert.htmlH A D22-Jun-202113.9 KiB

b-strcmp.cH A D22-Jun-20213.4 KiB

b-strl.cH A D02-Feb-20245 KiB

cdefs.htmlH A D22-Jun-20212.4 KiB

cf.cH A D16-Jan-20232 KiB

clock.cH A D16-Jan-202313.9 KiB

clrerr.cH A D22-Jun-2021872

config.cH A D16-Jan-20234.5 KiB

debug.cH A D22-Jun-20218.9 KiB

debug.htmlH A D22-Jun-20217.7 KiB

errstring.cH A D22-Jun-20216 KiB

exc.cH A D22-Jun-202113.1 KiB

exc.htmlH A D02-Feb-202423.3 KiB

fclose.cH A D22-Jun-20213.1 KiB

feof.cH A D22-Jun-2021961

ferror.cH A D22-Jun-2021932

fflush.cH A D22-Jun-20213.1 KiB

fget.cH A D22-Jun-20212.4 KiB

findfp.cH A D22-Jun-202110.7 KiB

flags.cH A D22-Jun-20211.3 KiB

fopen.cH A D22-Jun-20218.3 KiB

fpos.cH A D22-Jun-20213.1 KiB

fprintf.cH A D22-Jun-20211.3 KiB

fpurge.cH A D22-Jun-20211.1 KiB

fput.cH A D22-Jun-20211.2 KiB

fread.cH A D22-Jun-20212.3 KiB

fscanf.cH A D22-Jun-20211.3 KiB

fseek.cH A D22-Jun-20217.2 KiB

fvwrite.cH A D22-Jun-20216.2 KiB

fvwrite.hH A D22-Jun-2021740

fwalk.cH A D22-Jun-20211.4 KiB

fwrite.cH A D22-Jun-20211.5 KiB

gen.htmlH A D22-Jun-2021910

get.cH A D22-Jun-20211.1 KiB

glue.hH A D22-Jun-2021731

heap.cH A D02-Feb-202417.7 KiB

heap.htmlH A D22-Jun-202113.1 KiB

ilenx.cH A D16-Jan-2023744

index.htmlH A D22-Jun-20216 KiB

inet6_ntop.cH A D22-Jun-20211.1 KiB

io.htmlH A D02-Feb-202426.6 KiB

ldap.cH A D02-Feb-202437.1 KiB

local.hH A D22-Jun-20219.4 KiB

lowercase.cH A D02-Feb-20243.4 KiB

makebuf.cH A D16-Jan-20233.3 KiB

MakefileH A D22-Jun-2021346

Makefile.m4H A D02-Feb-20242.1 KiB

match.cH A D22-Jun-20212.8 KiB

mbdb.cH A D16-Jan-202316.5 KiB

memstat.cH A D16-Jan-20235.1 KiB

mpeix.cH A D02-Feb-202413.8 KiB

niprop.cH A D16-Jan-20234.7 KiB

notify.cH A D02-Feb-20243.4 KiB

notify.hH A D02-Feb-20242.7 KiB

put.cH A D22-Jun-20211.6 KiB

READMEH A D02-Feb-20244.3 KiB

refill.cH A D16-Jan-20237.1 KiB

rewind.cH A D02-Feb-20241.1 KiB

rpool.cH A D16-Jan-202312 KiB

rpool.htmlH A D22-Jun-20216.1 KiB

sem.cH A D16-Jan-20234.6 KiB

setvbuf.cH A D02-Feb-20244.2 KiB

shm.cH A D16-Jan-20232.8 KiB

signal.cH A D16-Jan-20236.7 KiB

smstdio.cH A D22-Jun-20216.1 KiB

snprintf.cH A D22-Jun-20212.3 KiB

sscanf.cH A D22-Jun-20212.3 KiB

stdio.cH A D02-Feb-20249.7 KiB

strcasecmp.cH A D22-Jun-20213.1 KiB

strcaseeq.cH A D02-Feb-20241.8 KiB

strdup.cH A D22-Jun-20212.8 KiB

strerror.cH A D22-Jun-20211.3 KiB

strexit.cH A D22-Jun-20212.8 KiB

string.cH A D16-Jan-20231.3 KiB

stringf.cH A D16-Jan-20231.8 KiB

strio.cH A D22-Jun-20219.2 KiB

strl.cH A D22-Jun-20217.5 KiB

strrevcmp.cH A D22-Jun-20211.6 KiB

strto.cH A D22-Jun-20215.4 KiB

syslogio.cH A D22-Jun-20214.1 KiB

t-cf.cH A D22-Jun-2021934

t-event.cH A D22-Jun-20211.8 KiB

t-exc.cH A D22-Jun-20212.7 KiB

t-fget.cH A D22-Jun-20211.7 KiB

t-float.cH A D22-Jun-20211.8 KiB

t-fopen.cH A D22-Jun-2021875

t-heap.cH A D22-Jun-20211.3 KiB

t-inet6_ntop.cH A D22-Jun-20211.4 KiB

t-ixlen.cH A D02-Feb-20242.5 KiB

t-ixlen.shH A D16-Jan-2023683

t-match.cH A D22-Jun-20211.1 KiB

t-memstat.cH A D22-Jun-20212.2 KiB

t-notify.cH A D02-Feb-20244.5 KiB

t-path.cH A D22-Jun-2021742

t-qic.cH A D02-Feb-20246.1 KiB

t-rpool.cH A D22-Jun-20211.5 KiB

t-scanf.cH A D22-Jun-20211.4 KiB

t-sem.cH A D16-Jan-20235.9 KiB

t-shm.cH A D16-Jan-20234.4 KiB

t-smstdio.cH A D22-Jun-20211.5 KiB

t-str2prt.cH A D16-Jan-20231.4 KiB

t-streq.cH A D02-Feb-20241.7 KiB

t-streq.shH A D02-Feb-2024758

t-string.cH A D22-Jun-2021968

t-strio.cH A D22-Jun-2021775

t-strl.cH A D22-Jun-20213.5 KiB

t-strrevcmp.cH A D22-Jun-2021994

t-types.cH A D22-Jun-20212.7 KiB

test.cH A D02-Feb-20242.7 KiB

ungetc.cH A D22-Jun-20213.9 KiB

utf8_valid.cH A D16-Jan-20232.6 KiB

util.cH A D02-Feb-20245.2 KiB

uxtext_unquote.cH A D16-Jan-20236.3 KiB

vasprintf.cH A D16-Jan-20232.9 KiB

vfprintf.cH A D02-Feb-202424.1 KiB

vfscanf.cH A D02-Feb-202418.8 KiB

vprintf.cH A D16-Jan-2023994

vsnprintf.cH A D16-Jan-20231.9 KiB

wbuf.cH A D22-Jun-20212.5 KiB

wsetup.cH A D22-Jun-20211.9 KiB

xleni.cH A D16-Jan-2023787

xtrap.cH A D22-Jun-2021653

README

1# Copyright (c) 2000-2002 Proofpoint, Inc. and its suppliers.
2#	All rights reserved.
3#
4# By using this file, you agree to the terms and conditions set
5# forth in the LICENSE file which can be found at the top level of
6# the sendmail distribution.
7#
8#	$Id: README,v 1.25 2013-11-22 20:51:42 ca Exp $
9#
10
11Libsm is a library of generally useful C abstractions.
12For documentation, see index.html.
13
14Libsm stands alone; it depends on no other sendmail libraries,
15and the only sendmail header files it depends on are its own,
16which reside in ../include/sm.
17
18The t-*.c files are regression tests.
19These tests are incomplete: we do not yet test all of the APIs,
20and we have not yet converted all tests to use the test harness.
21If a test fails read the explanation it generates.  Sometimes it
22is sufficient to change a compile time flag, which are also listed
23below.  If that does not help, check the sendmail/README files for
24problems on your OS.
25
26The b-*.c files are benchmarks that compare system routines with
27those provided by libsm. By default sendmail uses the routines
28provided by the OS. In several cases, the routines provided by
29libsm are faster than those of the OS. If your OS provides the
30routines, you can compare the performance of them with the libsm
31versions by running the programs with the option -d (by default
32the programs just issue an explanation when/how to use them).
33The programs are:
34
35b-strcmp.c	tests strcasecmp().
36
37
38+----------------------+
39| CONFIGURATION MACROS |
40+----------------------+
41
42Libsm uses a set of C preprocessor macros to specify platform specific
43features of the C compiler and standard C libraries.
44
45If you are porting sendmail to a new platform, you may need to tweak
46the values of some of these macros.
47
48The following macros are given default values in <sm/config.h>.
49If the default value is wrong for a given platform, then a platform
50specific value is specified in one of two ways:
51
52  - A -D option is added to the confENVDEF macro; this change can be made
53    to the platform M4 file in devtools/OS, or to the site.config.m4
54    file in devtools/Site.
55
56  - The confSM_OS_HEADER macro in the platform M4 file defines sm_os_foo,
57    which forces "sm/os/sm_os_foo.h" to be included by "sm/config.h" via a
58    link that is made from "sm_os.h" to "sm/os/sm_os_foo.h".  Platform
59    specific configuration macro settings are added to <sm/os/sm_os_foo.h>.
60
61SM_CONF_STDBOOL_H
62	Set to 1 if the header file <stdbool.h> exists,
63	and defines true, false and bool.
64
65SM_CONF_SYS_CDEFS_H
66	Set to 1 if the header file <sys/cdefs.h> exists,
67	and defines __P.  You may need to do this to eliminate
68	warnings about __P being multiply defined.
69
70SM_CONF_STDDEF_H
71	Set to 0 if the header file <stddef.h> does not exist.
72
73SM_CONF_SETITIMER
74	Set to 0 if the setitimer function is not available.
75
76SM_CONF_SYSEXITS_H
77	Set to 1 if <sysexits.h> exists, and sets the EX_* macros
78	to values different from the default BSD values in <sm/sysexits.h>.
79
80SM_CONF_UID_GID
81	Set to 0 if <sys/types.h> does not define uid_t and gid_t.
82
83SM_CONF_SSIZE_T
84	Set to 0 if <sys/types.h> does not define ssize_t.
85
86SM_CONF_BROKEN_SIZE_T
87	Set to 1 if size_t is not unsigned.
88
89SM_CONF_LONGLONG
90	Set to 1 if your C compiler supports the 'long long' type.
91	This will be set automatically if you use gcc or a C compiler
92	that conforms to the 1999 ISO C standard.
93
94SM_CONF_QUAD_T
95	Set to 1 if your C compiler does not support 'long long',
96	but <sys/types.h> defines quad_t as an integral type.
97
98SM_CONF_SHM
99	Set to 1 if System V shared memory APIs are available.
100
101SM_CONF_MSG
102	Set to 1 if System V message queues are available.
103
104SM_CONF_SEM
105	Set to 1 if semaphores are available.
106
107SM_CONF_BROKEN_STRTOD
108	Set to 1 if your strtod() does not work properly.
109
110SM_CONF_LDAP_INITIALIZE
111	Set to 1 if your LDAP client libraries include ldap_initialize(3).
112
113SM_CONF_LDAP_MEMFREE
114	Set to 1 if your LDAP client libraries include ldap_memfree(3).
115
116SM_IO_MAX_BUF_FILE
117	Set this to a useful buffer size for regular files if stat(2)
118	does not return a value for st_blksize that is the
119	"optimal blocksize for I/O".
120
121SM_IO_MAX_BUF
122	Set this to a useful maximum buffer size for other than
123	regular files if stat(2) does not return a value for
124	st_blksize that is the "optimal blocksize for I/O".
125
126SM_IO_MIN_BUF
127	Set this to a useful minimum buffer size for other than
128	regular files if stat(2) does not return a value for
129	st_blksize that is the "optimal blocksize for I/O".
130
131