summaryrefslogtreecommitdiff
path: root/cups/tempfile.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-10-20 18:36:23 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-10-20 18:36:23 +0000
commit2abf387cae0cce4bf3a0a259ded28ef0269aec47 (patch)
treee62c740dbab4b00ffb2cb1db8c57194a7553648b /cups/tempfile.c
parent07725fee410af68be5081d9b1af3536eff5326b8 (diff)
downloadcups-2abf387cae0cce4bf3a0a259ded28ef0269aec47.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@224 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/tempfile.c')
-rw-r--r--cups/tempfile.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/cups/tempfile.c b/cups/tempfile.c
index 0e64565b0..60dfc81ff 100644
--- a/cups/tempfile.c
+++ b/cups/tempfile.c
@@ -1,9 +1,9 @@
/*
- * "$Id: tempfile.c 4918 2006-01-12 05:14:40Z mike $"
+ * "$Id: tempfile.c 6040 2006-10-17 02:24:49Z mike $"
*
* Temp file utilities for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2005 by Easy Software Products.
+ * Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -25,9 +25,9 @@
*
* Contents:
*
- * cupsTempFd() - Create a temporary file.
- * cupsTempFile() - Generate a temporary filename.
- * cupsTempFile2() - Create a temporary CUPS file.
+ * cupsTempFd() - Creates a temporary file.
+ * cupsTempFile() - Generates a temporary filename.
+ * cupsTempFile2() - Creates a temporary CUPS file.
*/
/*
@@ -48,12 +48,13 @@
/*
- * 'cupsTempFd()' - Create a temporary file.
+ * 'cupsTempFd()' - Creates a temporary file.
*
- * The temporary filename is stored in the filename buffer.
+ * The temporary filename is returned in the filename buffer.
+ * The temporary file is opened for reading and writing.
*/
-int /* O - New file descriptor */
+int /* O - New file descriptor or -1 on error */
cupsTempFd(char *filename, /* I - Pointer to buffer */
int len) /* I - Size of buffer */
{
@@ -158,16 +159,16 @@ cupsTempFd(char *filename, /* I - Pointer to buffer */
/*
- * 'cupsTempFile()' - Generate a temporary filename.
+ * 'cupsTempFile()' - Generates a temporary filename.
*
- * The temporary filename is stored in the filename buffer.
+ * The temporary filename is returned in the filename buffer.
* This function is deprecated - use cupsTempFd() or cupsTempFile2()
* instead.
*
* @deprecated@
*/
-char * /* O - Filename */
+char * /* O - Filename or NULL on error */
cupsTempFile(char *filename, /* I - Pointer to buffer */
int len) /* I - Size of buffer */
{
@@ -207,9 +208,10 @@ cupsTempFile(char *filename, /* I - Pointer to buffer */
/*
- * 'cupsTempFile2()' - Create a temporary CUPS file.
+ * 'cupsTempFile2()' - Creates a temporary CUPS file.
*
- * The temporary filename is stored in the filename buffer.
+ * The temporary filename is returned in the filename buffer.
+ * The temporary file is opened for writing.
*
* @since CUPS 1.2@
*/
@@ -236,5 +238,5 @@ cupsTempFile2(char *filename, /* I - Pointer to buffer */
/*
- * End of "$Id: tempfile.c 4918 2006-01-12 05:14:40Z mike $".
+ * End of "$Id: tempfile.c 6040 2006-10-17 02:24:49Z mike $".
*/