Lines Matching defs:type

70 **		type -- type of the lock.  Bits can be:
80 smdb_lockfile(fd, type)
82 int type;
91 if (bitset(LOCK_UN, type))
93 else if (bitset(LOCK_EX, type))
98 if (bitset(LOCK_NB, type))
112 ** as type "tmp" (that is, served from swap space), the
121 if (!bitset(LOCK_NB, type) ||
128 syslog(LOG_ERR, "cannot lockf(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
129 filename, ext, fd, type, omode, euid);
136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
142 if (!bitset(LOCK_NB, type) || save_errno != EWOULDBLOCK)
148 syslog(LOG_ERR, "cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
149 filename, ext, fd, type, omode, euid);
161 ** This opens a database. If type is SMDB_DEFAULT it tries to
163 ** to use NDBM. If a specific type is given it will try to open
164 ** a database of that type.
175 ** type -- The type of database to open. Supported types
190 smdb_open_database(database, db_name, mode, mode_mask, sff, type, user_info,
197 SMDB_DBTYPE type;
203 if (type == SMDB_TYPE_DEFAULT)
207 type = SMDB_TYPE_HASH;
210 type = SMDB_TYPE_NDBM;
215 if (type == SMDB_TYPE_DEFAULT)
218 if ((strncmp(type, SMDB_TYPE_HASH, SMDB_TYPE_HASH_LEN) == 0) ||
219 (strncmp(type, SMDB_TYPE_BTREE, SMDB_TYPE_BTREE_LEN) == 0))
225 type, user_info, params);
228 type = SMDB_TYPE_NDBM;
237 if (strncmp(type, SMDB_TYPE_NDBM, SMDB_TYPE_NDBM_LEN) == 0)
243 sff, type, user_info, params);
366 ** type -- type of the lock. Bits can be:
375 smdb_lock_map(database, type)
377 int type;
384 if (!smdb_lockfile(fd, type))
509 ** SMDB_DB_DEFINITION -- Given a database type, return database definition
512 ** type and the required cpp define from sendmail/README.
516 ** type -- The name of the database type.
519 ** definition for type, otherwise NULL.
524 SMDB_DBTYPE type;
537 smdb_db_definition(type)
538 SMDB_DBTYPE type;
542 while (ptr != NULL && ptr->type != NULL)
544 if (strcmp(type, ptr->type) == 0)