Searched defs:st (Results 1 - 24 of 24) sorted by relevance

/sendmail/libsm/
H A Dmakebuf.c97 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 Dfseek.c86 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 Dsmstdio.c290 struct stat st; local
297 if (fstat(fd, &st) == 0)
298 return st.st_size;
H A Dstdio.c350 struct stat st; local
352 if (fstat(fp->f_file, &st) == 0)
353 return st.st_size;
H A Dmpeix.c410 struct stat st; local
427 if (stat(path, &st) < 0)
430 return st.st_mode;
/sendmail/test/
H A Dt_exclopen.c69 struct stat st; local
81 if (stat(Attackee, &st) >= 0)
91 if (stat(Attackee, &st) >= 0)
101 if (stat(Attackee, &st) < 0)
/sendmail/smrsh/
H A Dsmrsh.c153 struct stat st; local
311 if (stat(cmdbuf, &st) < 0)
325 if (!S_ISREG(st.st_mode)
327 && !S_ISLNK(st.st_mode)
/sendmail/libsmdb/
H A Dsmdb.c438 int st; local
447 st = safefile(db_file_name, user_info->smdbu_id,
450 if (st != 0)
451 return st;
/sendmail/libsmutil/
H A Dsafefile.c34 ** 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/makemap/
H A Dmakemap.c94 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 Dalias.c408 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 Dbf.c110 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 Dcollect.c759 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 Drecipient.c1443 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 Dtls.c148 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 Dutil.c1671 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 Ddeliver.c3842 int st; local
3910 st = waitfor(mci->mci_pid);
3916 if (st == -1)
3922 if (WIFEXITED(st))
3925 return (WEXITSTATUS(st));
3930 mci->mci_mailer->m_name, WTERMSIG(st),
3931 WCOREDUMP(st) ? " (core dumped)" :
3932 (WIFSTOPPED(st) ? " (stopped)" : ""));
5100 # define RETURN(st) exit(st);
5639 int st; local
[all...]
H A Dmain.c161 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 Dsrvrsmtp.c3605 struct stat st; local
3608 if (stat(dfname, &st) < 0)
3609 st.st_size = -1;
3612 dfname, (long) st.st_size);
H A Dconf.c952 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 Dmap.c1416 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...]
H A Dqueue.c22 # 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...]
/sendmail/vacation/
H A Dvacation.c831 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/mail.local/
H A Dmail.local.c1491 struct stat st; local
1510 if (stat(LockName, &st) < 0)
1521 if (now < st.st_ctime + LOCKTO_RM)

Completed in 1355 milliseconds