Searched refs:mode (Results 1 - 25 of 25) sorted by relevance

/sendmail/devtools/bin/
H A Dinstall.sh17 mode=""
44 -m) mode=$2
124 # Change mode if requested
125 if [ ! -z "$mode" ]
127 chmod $mode $dst
/sendmail/libsm/
H A Dsetvbuf.c38 ** mode -- buffering method to use
47 sm_io_setvbuf(fp, timeout, buf, mode, size)
51 int mode;
68 if (mode != SM_IO_NBF)
69 if ((mode != SM_IO_FBF && mode != SM_IO_LBF &&
70 mode != SM_IO_NOW) || (int) size < 0)
95 /* If setting unbuffered mode, skip all the hard work. */
96 if (mode == SM_IO_NBF)
157 if (mode
[all...]
H A Dshm.c109 ** SM_SHMSETOWNER -- set owner/group/mode of shared memory segment.
115 ** mode -- mode to use
123 sm_shmsetowner(shmid, uid, gid, mode)
127 mode_t mode;
137 shmid_ds.shm_perm.mode = mode;
H A Dstdio.c211 ** SM_STDSETMODE -- set the access mode for the file
217 ** mode -- new mode to set the file access to
225 sm_stdsetmode(fp, mode)
227 const int *mode;
231 switch (SM_IO_MODE(*mode))
253 ** SM_STDGETMODE -- for getinfo determine open mode
258 ** fp -- the file mode being determined
259 ** mode -- internal mode t
480 MODE_T mode; local
[all...]
H A Dmpeix.c371 ** - MPE priv mode allows sendmail to call setuid(), not uid 0
376 ** setuid mode bits which exist but are unused by MPE. If the setgid mode
377 ** bit is on, then gid emulation will be enabled. If the setuid mode bit is
392 ** SENDMAIL_MPE_GETMODE -- return the mode bits for the current process
398 ** file mode bits for the current process program file.
436 ** If !sendmail_mpe_flaginit then obtain the mode bits to determine
454 mode_t mode; local
456 mode = sendmail_mpe_getmode();
457 sendmail_mpe_gidflag = ((mode
485 mode_t mode; local
[all...]
H A Dstrio.c208 ** flags -- flags for methods of access (was mode)
305 ** SM_STRSETMODE -- set mode info for the file
307 ** Note: changing the mode can be a safe way to have the "parent"
312 ** mode -- location of new mode to set
320 sm_strsetmode(fp, mode)
322 const int *mode;
327 switch (*mode)
351 ** SM_STRGETMODE -- get mode info for the file
355 ** mode
[all...]
H A Dsmstdio.c315 ** mode -- the mode argument to fopen() which describes stream
320 ** Abort if mode is gibberish or stream is bad.
325 sm_io_stdioopen(stream, mode)
327 char *mode;
338 switch (mode[0])
348 sm_abort("sm_io_stdioopen: mode '%s' is bad", mode);
350 if (strchr(&mode[1], '+') != NULL)
H A Dsem.c206 ** SM_SEMSETOWNER -- set owner/group/mode of semaphores.
212 ** mode -- mode to use
220 sm_semsetowner(semid, uid, gid, mode)
224 mode_t mode;
240 semidds.sem_perm.mode = mode;
/sendmail/libsmdb/
H A Dsmdb.c172 ** mode -- The mode to set on the database file or files.
190 smdb_open_database(database, db_name, mode, mode_mask, sff, type, user_info,
194 int mode;
224 result = smdb_db_open(database, db_name, mode, mode_mask, sff,
242 result = smdb_ndbm_open(database, db_name, mode, mode_mask,
307 ** mode -- The open mode.
316 smdb_lock_file(lock_fd, db_name, mode, sff, extension)
319 int mode;
[all...]
H A Dsmndbm.c469 ** mode -- File permisions on a created database.
489 smdb_ndbm_open(database, db_name, mode, mode_mask, sff, type, user_info,
493 int mode;
527 bitset(mode, O_CREAT))
531 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
541 result = smdb_lock_file(&pag_fd, db_name, mode, sff,
550 mode |= O_TRUNC;
551 mode &= ~(O_CREAT|O_EXCL);
568 dbm = dbm_open(db_name, mode, DBMMODE);
H A Dsmdb1.c428 ** mode -- File permisions on the database if created.
448 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info,
452 int mode;
489 bitset(mode, O_CREAT))
493 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
500 mode |= O_TRUNC;
501 mode &= ~(O_CREAT|O_EXCL);
538 db = dbopen(db_file_name, mode, DBMMODE, db_type, params);
H A Dsmdb2.c543 ** mode -- File permisions for a created database.
566 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, db_params)
569 int mode;
608 bitset(mode, O_CREAT))
611 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
618 mode |= O_TRUNC;
619 mode &= ~(O_CREAT|O_EXCL);
640 if (bitset(O_CREAT, mode))
642 if (bitset(O_TRUNC, mode))
644 if (mode
[all...]
/sendmail/libsmutil/
H A Dsafefile.c33 ** mode -- mode bits that must match.
38 ** 0 if fn exists, is owned by uid, and matches mode.
46 safefile(fn, uid, gid, user, flags, mode, st)
52 int mode;
64 sm_dprintf("safefile(%s, uid=%d, gid=%d, flags=%lx, mode=%o):\n",
65 fn, (int) uid, (int) gid, flags, mode);
246 sm_dprintf("\t[final dir %s uid %d mode %lo] %s\n",
260 sm_dprintf("\t[slink mode %lo]\tE_SM_NOSLINK\n",
268 sm_dprintf("\t[non-reg mode
404 int mode = S_IWOTH; local
[all...]
/sendmail/sendmail/
H A Dmap.c78 /* default error message for trying to open a map in write mode */
112 ** bool map_open(MAP *map, int mode)
113 ** Open the map for the indicated mode. Mode should
978 dns_map_open(map, mode)
980 int mode;
983 sm_dprintf("dns_map_open(%s, %d)\n", map->map_mname, mode);
985 mode &= O_ACCMODE;
986 if (mode != O_RDONLY)
1403 ndbm_map_open(map, mode)
1405 int mode;
[all...]
H A Ddeliver.c53 ** mode -- the delivery mode to use. If SM_DEFAULT, use
62 ** If we are running in a non-interactive mode, takes the
67 sendall(e, mode)
69 int mode;
101 ** the message at all if we are in SMTP mode. Local errors
113 /* determine actual delivery mode */
114 if (mode == SM_DEFAULT)
116 mode = e->e_sendmode;
117 if (mode !
5114 volatile int mode; local
[all...]
H A Dutil.c649 ** SET_DELIVERY_MODE -- set and record the delivery mode
652 ** mode -- delivery mode
663 set_delivery_mode(mode, e)
664 int mode;
669 e->e_sendmode = (char) mode;
670 buf[0] = (char) mode;
676 ** SET_OP_MODE -- set and record the op mode
679 ** mode -- op mode
[all...]
H A Drecipient.c1430 int mode; local
1799 mode = S_IWOTH;
1804 mode |= S_IWGRP;
1806 if (bitset(mode, st.st_mode))
H A Dsrvrsmtp.c257 #define CMDVERB 17 /* verb -- go into verbose mode */
264 #define CMDDBGDEBUG 25 /* debug -- set debug mode */
3219 case CMDVERB: /* set verbose mode */
3232 message("250 2.0.0 Verbose mode");
3242 case CMDDBGDEBUG: /* set debug mode */
3250 case CMDDBGDEBUG: /* set debug mode */
3754 int mode; local
3757 mode = SM_DEFAULT;
3763 mode = SM_QUEUE;
3768 mode
[all...]
/sendmail/makemap/
H A Dmakemap.c95 int mode; local
309 mode = O_RDONLY;
314 mode = O_RDWR;
317 mode |= O_CREAT|O_TRUNC;
325 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/sendmail/contrib/
H A Dre-mqueue.pl155 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
H A Dbuildvirtuser120 chmod($st->mode, $new) || warn "Could not chmod($st->mode, $new): $!\n";
H A Dexpn.pl1285 The normal mode of operation for
/sendmail/editmap/
H A Deditmap.c92 int mode; local
275 mode = O_RDONLY;
280 mode = O_RDWR | O_CREAT;
287 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/sendmail/include/sm/
H A Dio.h28 /* mode for sm io (exposed) */
36 # define SM_IO_BINARY 0x0 /* binary mode: not used in Unix */
37 #define SM_IS_BINARY(mode) (((mode) & SM_IO_BINARY) != 0)
38 #define SM_IO_MODE(mode) ((mode) & 0x0f)
89 ** try to write or read from a file that is in `read' or `write' mode.
90 ** (Moreover, they can, and do, automatically switch from read mode to
91 ** write mode, and back, on "r+" and "w+" files.)
133 struct sm_file *f_modefp; /* sync mode wit
[all...]
/sendmail/mail.local/
H A Dmail.local.c1127 int mode = S_IRUSR|S_IWUSR; local
1133 mode |= S_IRGRP|S_IWGRP;
1137 mode);

Completed in 311 milliseconds