/sendmail/libsm/ |
H A D | makebuf.c | 97 struct stat st; local 99 if (fp->f_file < 0 || fstat(fp->f_file, &st) < 0) 107 *couldbetty = S_ISCHR(st.st_mode); 108 if (st.st_blksize == 0) 115 if (S_ISREG(st.st_mode) && st.st_blksize > SM_IO_MAX_BUF_FILE) 116 st.st_blksize = SM_IO_MAX_BUF_FILE; 120 if (!S_ISREG(st.st_mode)) 123 if (st.st_blksize > SM_IO_MAX_BUF) 124 st [all...] |
H A D | fseek.c | 86 struct stat st; local 200 fp->f_file < 0 || fstat(fp->f_file, &st) || 201 (st.st_mode & S_IFMT) != S_IFREG) 206 fp->f_blksize = st.st_blksize; 219 if (fstat(fp->f_file, &st)) 221 target = st.st_size + offset;
|
H A D | smstdio.c | 290 struct stat st; local 297 if (fstat(fd, &st) == 0) 298 return st.st_size;
|
H A D | mpeix.c | 410 struct stat st; local 427 if (stat(path, &st) < 0) 430 return st.st_mode;
|
H A D | stdio.c | 350 struct stat st; local 352 if (fstat(fp->f_file, &st) == 0) 353 return st.st_size;
|
/sendmail/libsmutil/ |
H A D | safefile.c | 34 ** st -- if set, points to a stat structure that will 46 safefile(fn, uid, gid, user, flags, mode, st) 53 struct stat *st; 74 if (st == NULL) 75 st = &fstbuf; 83 if ((bitset(SFF_NOSLINK, flags) ? lstat(fn, st) 84 : stat(fn, st)) < 0) 86 if (stat(fn, st) < 0) 92 !bitset(S_IXUSR|S_IXGRP|S_IXOTH, st->st_mode) && 93 S_ISREG(st 935 struct stat st; local [all...] |
/sendmail/test/ |
H A D | t_exclopen.c | 69 struct stat st; local 81 if (stat(Attackee, &st) >= 0) 91 if (stat(Attackee, &st) >= 0) 101 if (stat(Attackee, &st) < 0)
|
/sendmail/contrib/ |
H A D | buildvirtuser | 116 my $st; 118 $st = stat($old); 119 return if (!defined($st)); 120 chmod($st->mode, $new) || warn "Could not chmod($st->mode, $new): $!\n"; 121 chown($st->uid, $st->gid, $new) || warn "Could not chmod($st->uid, $st->gid, $new): $!\n"; 142 my $st [all...] |
H A D | doublebounce.pl | 75 my($st);
|
/sendmail/makemap/ |
H A D | makemap.c | 94 int st; local 482 st = 1; 486 st = 0; 490 st = -1; 494 if (st < 0) 503 else if (st > 0)
|
/sendmail/sendmail/ |
H A D | collect.c | 759 struct stat st; local 763 if (stat(dfile, &st) < 0) 764 st.st_size = -1; 767 dfile, (long) st.st_size); 979 struct stat64 st; local 981 struct stat st; 990 fstat64(sm_io_getinfo(df, SM_IO_WHAT_FD, NULL), &st) 992 fstat(sm_io_getinfo(df, SM_IO_WHAT_FD, NULL), &st) 995 st.st_size = 0; 998 if (st [all...] |
H A D | util.c | 1671 struct stat st; local 1673 if (fstat(fd, &st) < 0 && errno == EBADF) 1795 struct stat64 st; local 1797 struct stat st; local 1807 fstat64(fd, &st) 1809 fstat(fd, &st) 1836 (int) st.st_mode); 1838 switch (st.st_mode & S_IFMT) 1940 major(st.st_dev), minor(st [all...] |
H A D | tls.c | 148 struct stat st; local 159 if (fstat(fd, &st) < 0) 174 if (st.st_mtime + 600 < curtime()) 186 if (use && st.st_size < MIN_RAND_BYTES) 216 RAND_seed((void *) &st, sizeof(st)); 451 ** st -- status bit to set if ok 459 # define TLS_OK_F(var, fn, req, st, type) if (ok) \ 463 status |= st; \ 493 ** st [all...] |
H A D | queue.c | 22 # define ST_INODE(st) (st).st_ino 3938 struct stat st, stf; local 4013 fstat(sm_io_getinfo(qfp, SM_IO_WHAT_FD, NULL), &st) < 0) 4023 if (st.st_nlink != stf.st_nlink || 4024 st.st_dev != stf.st_dev || 4025 ST_INODE(st) != ST_INODE(stf) || 4027 st.st_gen != stf.st_gen || 4029 st.st_uid != stf.st_uid || 4030 st 4837 struct stat st; local 4902 struct stat st; local 6389 struct stat st; local 7055 struct stat st; local [all...] |
H A D | recipient.c | 1443 struct stat st; local 1653 rval = safefile(fname, uid, gid, user, sfflags, S_IREAD, &st); 1668 else if (filechanged(fname, sm_io_getinfo(fp,SM_IO_WHAT_FD, NULL), &st)) 1715 if (fstat(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), &st) < 0) 1735 ctladdr->q_uid = st.st_uid; 1736 ctladdr->q_gid = st.st_gid; 1739 if (ca != NULL && ca->q_uid == st.st_uid) 1749 pw = sm_getpwuid(st.st_uid); 1752 ctladdr->q_uid = st.st_uid; 1806 if (bitset(mode, st [all...] |
H A D | bf.c | 110 struct stat st; local 124 if (stat(filename, &st) == 0) 691 struct stat st; local 701 if (stat(bfp->bf_filename, &st) == 0)
|
H A D | main.c | 161 STAB *st; local 1778 st = stab("mqueue", ST_QUEUE, ST_FIND); 1779 if (st == NULL) 1782 set_def_queueval(st->s_quegrp, true); 1785 st = stab("local", ST_MAILER, ST_FIND); 1786 if (st != NULL) 1787 LocalMailer = st->s_mailer; 1791 st = stab("prog", ST_MAILER, ST_FIND); 1792 if (st == NULL) 1796 ProgMailer = st 4371 STAB *st; local [all...] |
H A D | conf.c | 952 STAB *st; 1013 st = stab(buf, ST_SERVICE, ST_ENTER); 1014 if (st->s_service[0] != NULL) 1015 sm_free((void *) st->s_service[0]); /* XXX */ 1021 st->s_service[svcno++] = p; 1030 st->s_service[svcno] = NULL; 1037 st = stab(service, ST_SERVICE, ST_FIND); 1038 if (st != NULL && st->s_service[0] != NULL) 1044 maptype[svcno] = st 2087 status_$t st; local 2664 int st; local 2693 union wait st; local 2741 int st; local 5656 struct stat st; local [all...] |
H A D | alias.c | 408 auto int st; local 414 map->map_class->map_lookup(map, "@", NULL, &st) == NULL) 927 struct stat st; local 972 if (stat(buf, &st) < 0 && errno == ENOENT)
|
H A D | map.c | 1416 struct stat st; local 1616 if (fstat(pfd, &st) >= 0) 1617 map->map_mtime = st.st_mtime; 2007 struct stat st; variable in typeref:struct:stat 2052 i = safefile(buf, RunAsUid, RunAsGid, RunAsUserName, sff, smode, &st); 2069 if (st.st_mode == ST_MODE_NOFILE) 2095 if (filechanged(buf, fd, &st)) 2105 if (st.st_mode == ST_MODE_NOFILE && fstat(fd, &st) < 0) 2219 if (filechanged(buf, fd, &st)) 2304 int st; local 6004 struct stat st; local [all...] |
/sendmail/libsmdb/ |
H A D | smdb.c | 438 int st; local 447 st = safefile(db_file_name, user_info->smdbu_id, 450 if (st != 0) 451 return st;
|
/sendmail/smrsh/ |
H A D | smrsh.c | 153 struct stat st; local 311 if (stat(cmdbuf, &st) < 0) 325 if (!S_ISREG(st.st_mode) 327 && !S_ISLNK(st.st_mode)
|
/sendmail/vacation/ |
H A D | vacation.c | 831 int st; local 841 st = Db->smdb_get(Db, &key, &data, 0); 842 if (st != SMDBE_OK) 855 st = Db->smdb_get(Db, &key, &data, 0); 856 if (st == SMDBE_OK) 1043 union wait st; local 1045 auto int st; 1057 (void) wait(&st);
|
/sendmail/libmilter/ |
H A D | listener.c | 686 struct timeval st; \ 688 st.tv_sec = (s); \ 689 st.tv_usec = 0; \ 690 if (st.tv_sec > 0) \ 694 rs = select(0, NULL, NULL, NULL, &st); \
|
/sendmail/include/sm/ |
H A D | conf.h | 2888 # define WEXITSTATUS(st) (((st) >> 8) & 0377) 2891 # define WIFEXITED(st) (((st) & 0377) == 0) 2894 # define WIFSTOPPED(st) (((st) & 0100) == 0) 2897 # define WCOREDUMP(st) (((st) & 0200) != 0) 2900 # define WTERMSIG(st) (((st) [all...] |