Searched refs:map (Results 1 - 11 of 11) sorted by relevance

/sendmail/include/sm/
H A Dbitops.h22 ** Each bit in this map can be referenced by an ascii character.
26 # define BITMAPBITS 256 /* number of bits in a bit map */
28 # define BITMAPBYTES (BITMAPBITS / BYTEBITS) /* number of bytes in bit map */
43 # define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit))
46 # define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit)
49 # define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit)
51 /* clear an entire bit map */
[all...]
/sendmail/sendmail/
H A Dmap.c16 SM_RCSID("@(#)$Id: map.c,v 8.713 2013-11-22 20:51:55 ca Exp $")
42 #include "map.h"
78 /* default error message for trying to open a map in write mode */
90 ** MAP.C -- implementations for various map classes.
92 ** Each map class implements a series of functions:
94 ** bool map_parse(MAP *map, char *args)
96 ** if they were ok, false otherwise. Fill in map with the
99 ** char *map_lookup(MAP *map, char *key, char **args, int *pstat)
100 ** Look up the key in the given map. If found, do any
101 ** rewriting the map want
469 register MAP *map; local
624 MAP *map; local
4679 MAP map; local
7165 ns_map_t *map; /* XXX ns_ ? */ member in struct:ns_map_list
[all...]
H A Dalias.c21 static MAP *AliasFileMap = NULL; /* the actual aliases.files map */
78 ** If the map was unavailable, we will queue this message
79 ** until the map becomes available; otherwise, we could
214 static MAP *map = NULL; local
220 if (map == NULL)
226 map = &s->s_map;
228 DYNOPENMAP(map);
243 return (*map->map_class->map_lookup)(map, name, argv, pstat);
245 return (*map
265 register MAP *map; local
[all...]
H A Ddomain.c15 #include "map.h"
631 bestmx_map_lookup(map, name, av, statp)
632 MAP *map;
655 if (bitset(MF_MATCHONLY, map->map_mflags))
656 return map_rewrite(map, name, strlen(name), NULL);
657 if ((map->map_coldelim == '\0') || (nmx == 1))
658 return map_rewrite(map, mxhosts[0], strlen(mxhosts[0]), av);
668 if (strchr(mxhosts[i], map->map_coldelim) != NULL)
670 syserr("bestmx_map_lookup: MX host %.64s includes map delimiter character 0x%02X",
671 mxhosts[i], map
[all...]
H A Ddaemon.c15 #include "map.h"
99 ** host_map_lookup(map, hbuf, avp, pstat)
3895 ** map -- a pointer to this map.
3914 host_map_lookup(map, name, av, statp)
3915 MAP *map;
3971 if (bitset(MF_MATCHONLY, map->map_mflags))
3972 cp = map_rewrite(map, name, strlen(name), NULL);
3974 cp = map_rewrite(map,
3988 bitset(MF_DEFER, map
[all...]
H A Dparseaddr.c19 #include "map.h"
116 ** the map lookups in the rewriting rules could clobber
1465 STAB *map; local
1502 map = stab(mapname, ST_MAP, ST_FIND);
1503 if (map == NULL)
1504 syserr("554 5.3.0 rewrite: map %s not found",
1511 syserr("554 5.3.0 rewrite: missing key for map %s",
1576 map == NULL ? '\0' : map->s_map.map_spacesub,
1579 replac = map_lookup(map, cbu
1800 MAP *map; local
[all...]
H A Dudb.c15 #include "map.h"
820 ** UDB_MAP_LOOKUP -- look up arbitrary entry in user database map
823 ** map -- the map being queried.
825 ** av -- arguments to the map lookup.
829 ** NULL if name not found in map.
835 udb_map_lookup(map, name, av, statp)
836 MAP *map;
847 sm_dprintf("udb_map_lookup(%s, %s)\n", map->map_mname, name);
849 if (bitset(MF_NOFOLDCASE, map
[all...]
H A Dreadcf.c370 syserr("too many arguments for map lookup");
381 syserr("cannot nest map lookups");
387 syserr("syntax error in map lookup");
395 syserr("missing map name for lookup");
400 syserr("syntax error in map lookup");
437 ** check if map is defined.
446 "Warning: %s: line %d: map %s not found\n",
459 syserr("missing map closing token");
553 /* check if [key]@map:spec */
561 /* look for @LDAP or @map
965 MAP map; local
[all...]
H A Dmain.c102 static int MissingFds = 0; /* bit map of fds missing on startup */
1589 sm_dprintf("Deny user %d attempt to rebuild the alias map\n",
1593 "user %d attempted to rebuild the alias map",
4058 STAB *map; local
4261 "Usage: /[canon|map|mx|parse|try|tryflags]\n");
4319 else if (sm_strcasecmp(&line[1], "map") == 0)
4327 "Usage: /map mapname key\n");
4339 map = stab(p, ST_MAP, ST_FIND);
4340 if (map == NULL)
4346 if (!bitset(MF_OPEN, map
[all...]
H A Dutil.c1018 ** PXLF_MAPFROM -- map From_ to >From_.
1020 ** PXLF_HEADER -- map bare newline in header to newline space.
1559 ** map -- the bit map to check
1562 ** true if map is all zero.
1563 ** false if there are any bits set in map.
1567 bitzerop(map)
1568 BITMAP256 map;
1574 if (map[i] != 0)
H A Dsendmail.h1103 #define MAX_MAP_ARGS 10 /* max arguments for map */
1232 ** An actual map.
1237 MAPCLASS *map_class; /* the class of this map */
1238 MAPCLASS *map_orgclass; /* the original class of this map */
1239 char *map_mname; /* name of this map */
1255 time_t map_timeout; /* timeout for map accesses */
1256 int map_retry; /* # of retries for map accesses */
1257 pid_t map_pid; /* PID of process which opened map */
1268 #define MF_OPTIONAL 0x00000004 /* don't complain if map not found */
1270 #define MF_MATCHONLY 0x00000010 /* don't use the map valu
[all...]

Completed in 58 milliseconds