/sendmail/libsm/ |
H A D | fprintf.c | 26 ** fp -- file pointer to be printed to 38 sm_io_fprintf(SM_FILE_T *fp, int timeout, const char *fmt, ...) argument 40 sm_io_fprintf(fp, timeout, fmt, va_alist) 41 SM_FILE_T *fp; 50 SM_REQUIRE_ISA(fp, SmFileMagic); 52 ret = sm_io_vfprintf(fp, timeout, fmt, ap);
|
H A D | fscanf.c | 26 ** fp -- the file pointer to obtain the data from 38 sm_io_fscanf(SM_FILE_T *fp, int timeout, char const *fmt, ...) argument 40 sm_io_fscanf(fp, timeout, fmt, va_alist) 41 SM_FILE_T *fp; 50 SM_REQUIRE_ISA(fp, SmFileMagic); 52 ret = sm_vfscanf(fp, timeout, fmt, ap);
|
H A D | fwalk.c | 38 register SM_FILE_T *fp; local 46 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++) 48 if (fp->f_flags != 0) 51 fptimeout = fp->f_timeout; 56 ret |= (*function)(fp, &fptimeout);
|
H A D | t-smstdio.c | 23 SM_FILE_T *fp; local 34 fp = sm_io_stdioopen(stream, "w"); 35 SM_TEST(fp != NULL); 37 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s", testmsg); 38 sm_io_close(fp, SM_TIME_DEFAULT); 53 fp = sm_io_stdioopen(stream, "r"); 54 SM_TEST(fp != NULL); 56 n = sm_io_read(fp, SM_TIME_DEFAULT, buf, sizeof(buf));
|
H A D | fopen.c | 114 register SM_FILE_T *fp; local 135 fp = sm_fp(type, ioflags, NULL); 148 if ((*fp->f_open)(fp, info, flags, rpool) < 0) 150 fp->f_flags = 0; /* release */ 151 fp->sm_magic = NULL; /* release */ 161 sm_rpool_attach_x(rpool, sm_io_fclose, fp); 164 return fp; 170 ** fp -- file pointer to duplicate 183 sm_io_dup(fp) [all...] |
H A D | smstdio.c | 27 ** stdio. fp->f_cookie is the FILE* of stdio. The cookie may be 29 ** When binding late (when fp->f_cookie==NULL) then the value of 30 ** fp->f_ival is used (0, 1 or 2) to map to stdio's stdin, stdout or 38 ** fp -- file pointer assign for this open 50 sm_stdioopen(fp, info, flags, rpool) 51 SM_FILE_T *fp; 98 fp->f_cookie = s; 106 ** fp - the file pointer to get the cookie assigned 113 setup(fp) 114 SM_FILE_T *fp; 332 SM_FILE_T *fp; local [all...] |
H A D | findfp.c | 153 register SM_FILE_T *fp; local 164 fp = oldfp; 165 goto found; /* for opening reusing an 'fp' */ 170 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++) 171 if (fp->sm_magic == NULL) 177 fp->sm_magic = SmFileMagic; /* 'fp' now valid and in-use */ 178 fp->f_p = NULL; /* no current pointer */ 179 fp [all...] |
H A D | stdio.c | 47 ** fp -- file pointer to be associated with the open 60 sm_stdopen(fp, info, flags, rpool) 61 SM_FILE_T *fp; 97 fp->f_file = open(path, oflags, 99 if (fp->f_file < 0) 103 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END); 105 return fp->f_file; 112 ** fp -- file pointer to read from 125 sm_stdread(fp, bu 481 SM_FILE_T *fp; local [all...] |
H A D | ldap.c | 309 char *fp, *p, *q; local 317 fp = filter; 350 (void) sm_snprintf(fp, SPACELEFT(filter, fp), 352 fp += strlen(fp); 360 (void) sm_snprintf(fp, SPACELEFT(filter, fp), 362 fp += strlen(fp); [all...] |
/sendmail/libsmutil/ |
H A D | safefile.c | 796 SM_FILE_T *fp; local 835 fp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, 837 if (fp != NULL) 838 return fp;
|
/sendmail/rmail/ |
H A D | rmail.c | 98 SM_FILE_T *fp; local 372 if ((fp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, (void *) &(pdes[1]), 380 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s", lbuf); 387 if (sm_io_close(fp, SM_TIME_DEFAULT))
|
/sendmail/sendmail/ |
H A D | sfsasl.c | 29 SM_FILE_T *fp; member in struct:sasl_obj 35 SM_FILE_T *fp; member in struct:sasl_info 44 ** fp -- the file descriptor 56 sasl_getinfo(fp, what, valp) 57 SM_FILE_T *fp; 61 struct sasl_obj *so = (struct sasl_obj *) fp->f_cookie; 66 if (so->fp == NULL) 68 return so->fp->f_file; /* for stdio fileno() compatability */ 71 if (so->fp == NULL) 75 return sm_io_getinfo(so->fp, wha 423 SM_FILE_T *fp; member in struct:tls_obj 429 SM_FILE_T *fp; member in struct:tls_info [all...] |
H A D | mci.c | 565 ** fp -- output file pointer 609 mci_dump(fp, mci, logit) 610 SM_FILE_T *fp; 678 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s\n", buf); 684 ** fp -- output file pointer 693 mci_dump_all(fp, logit) 694 SM_FILE_T *fp; 703 mci_dump(fp, MciCache[i], logit); 865 SM_FILE_T *fp; local 895 fp 1318 SM_FILE_T *fp; local [all...] |
H A D | recipient.c | 1424 SM_FILE_T *volatile fp = NULL; local 1661 else if ((fp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, fname, 1668 else if (filechanged(fname, sm_io_getinfo(fp,SM_IO_WHAT_FD, NULL), &st)) 1712 if (fp == NULL) 1715 if (fstat(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), &st) < 0) 1719 (void) sm_io_close(fp, SM_TIME_DEFAULT); 1724 safechown = chownsafe(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), safedir); 1787 (void) sm_io_close(fp, SM_TIME_DEFAULT); 1827 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0 && 1880 if (sm_io_error(fp) [all...] |
H A D | savemail.c | 59 register SM_FILE_T *fp; local 418 (fp = safefopen(DeadLetterDrop, O_WRONLY|O_APPEND, 426 mcibuf.mci_out = fp; 440 sm_io_flush(fp, SM_TIME_DEFAULT) == SM_IO_EOF || 441 sm_io_error(fp) || 442 sm_io_close(fp, SM_TIME_DEFAULT) < 0)
|
H A D | conf.c | 962 register SM_FILE_T *fp; local 971 fp = safefopen(ServiceSwitchFile, O_RDONLY, 0, sff); 972 if (fp != NULL) 976 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, 1032 (void) sm_io_close(fp, SM_TIME_DEFAULT); 1784 SM_FILE_T *fp; local 1786 fp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, _PATH_LOADAVG, SM_IO_RDONLY, 1788 if (fp == NULL) 1795 result = sm_io_fscanf(fp, SM_TIME_DEFAULT, "%lf", &avenrun); 1796 (void) sm_io_close(fp, SM_TIME_DEFAUL [all...] |
/sendmail/mail.local/ |
H A D | mail.local.c | 769 FILE *fp = NULL; local 783 if ((fd = mkstemp(tmpbuf)) < 0 || (fp = fdopen(fd, "w+")) == NULL) 801 (void) fprintf(fp, "From %s %s", from, ctime(&tval)); 865 if (fp != NULL) 866 HeaderLength = ftell(fp); 884 fp != NULL && 886 (void) putc('>', fp); 904 if (fp != NULL) 906 (void) fwrite(line, sizeof(char), line_len, fp); 907 if (ferror(fp)) [all...] |