Home
last modified time | relevance | path

Searched refs:dfname (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Djob.c148 char dfname[18]; in papiJobStreamOpen() local
151 strcpy(dfname, "/tmp/stdin-XXXXX"); in papiJobStreamOpen()
153 if ((s->fd = mkstemp(dfname)) >= 0) in papiJobStreamOpen()
154 s->dfname = strdup(dfname); in papiJobStreamOpen()
199 if (s->dfname != NULL) { /* if it is a tmpfile, print it */ in papiJobStreamClose()
202 files[0] = s->dfname; in papiJobStreamClose()
209 unlink(s->dfname); in papiJobStreamClose()
210 free(s->dfname); in papiJobStreamClose()
H A Dpapi_impl.h56 char *dfname; /* the stream data (if we can't stream) */ member
H A Dlpd-port.c411 send_data_file(int sock, char *dfname, char *name) in send_data_file() argument
430 if (send_lpd_message(sock, "\003%d %s\n", st.st_size, dfname) < 0) in send_data_file()
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dbsd_misc.c194 char *dfname; in create_dfname() local
205 dfname = (char *)malloc(strlen(job->np_host) + 3 + 3 + 1); in create_dfname()
206 ASSERT(dfname, MALLOC_ERR); in create_dfname()
207 (void) memset(dfname, 0, strlen(job->np_host) + 3 + 3 + 1); in create_dfname()
208 (void) sprintf(dfname, "%s%c%s%s", "df", job->np_df_letter, in create_dfname()
216 return (dfname); in create_dfname()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dcollect.c201 char *dfname; local
206 dfname = queuename(e, DATAFL_LETTER);
209 df = bfopen(dfname, QueueFileMode, DataFileBufferSize,
215 syserr("@Cannot create %s", dfname);
897 char *dfname = queuename(e, DATAFL_LETTER); local
898 if ((e->e_dfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, dfname,
902 syserr("@Cannot reopen %s", dfname);
953 char *dfname; local
955 dfname = queuename(e, DATAFL_LETTER);
977 (void) sm_io_reopen(SmFtStdio, SM_TIME_DEFAULT, dfname,
[all …]
H A Dmilter.c166 sm_dprintf(msg, dfname, sm_errstring(save_errno)); \
170 sm_syslog(LOG_ERR, e->e_id, msg, dfname, sm_errstring(save_errno)); \
1719 char dfname[MAXPATHLEN]; local
1721 (void) sm_strlcpy(dfname, queuename(e, DATAFL_LETTER), sizeof(dfname));
1743 if ((e->e_dfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, dfname,
1775 char dfname[MAXPATHLEN]; local
1777 (void) sm_strlcpy(dfname, queuename(e, DATAFL_LETTER), sizeof(dfname));
1801 else if ((e->e_dfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, dfname,
3687 char dfname[MAXPATHLEN]; local
3689 (void) sm_strlcpy(dfname, queuename(e, DATAFL_LETTER),
[all …]
H A Dsrvrsmtp.c3582 char *dfname; local
3585 dfname = queuename(e, DATAFL_LETTER);
3597 if (stat(dfname, &st) < 0)
3601 dfname, (long) st.st_size);
3634 e->e_dfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, dfname,
3639 syserr("@Cannot reopen %s", dfname);