Lines Matching refs:file

4  * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
54 static void savemsglist(char *file, int *msgvec, int flag);
121 * Save a message in a file. Mark the message as saved
131 * Copy a message to a file without affected its saved-ness
140 * Save/copy the indicated messages at the end of the passed file name.
146 char *file, *cmd;
151 if ((file = snarf(str, &f, 0)) == NOSTR)
152 file = Getf("MBOX");
165 if ((file = expand(file)) == NOSTR)
167 savemsglist(file, msgvec, mark | S_SAVING);
184 * save/copy the indicated messages at the end of a file named
217 * Put the indicated messages at the end of the passed file name.
222 char *file;
226 if ((file = snarf(str, &f, 0)) == NOSTR)
227 file = Getf("MBOX");
240 if ((file = expand(file)) == NOSTR)
242 savemsglist(file, msgvec, doign);
247 * save a message list in a file.
260 savemsglist(char *file, int *msgvec, int flag)
270 printf("\"%s\" ", file);
272 if (stat(file, &statb) >= 0)
275 disp = "[New file]";
276 if ((obuf = fopen(file, "a")) == NULL) {
305 perror(file);
318 perror(file);
359 * file name, minus header and trailing blank line.
365 register char *file;
369 if ((file = snarf(str, &f, 1)) == NOSTR)
373 if ((file = expand(file)) == NOSTR)
385 savemsglist(file, msgvec, S_MARK|S_NOHEADER);
390 * Snarf the file from the end of the command line and
391 * return a pointer to it. If there is no file attached,
392 * just return NOSTR. Put a null in front of the file
394 * unless the file name is the only thing on the line, in
429 printf(gettext("No file specified.\n"));
510 printf(gettext("No file specified.\n"));