/*
- * "$Id: backchannel.c 5099 2006-02-13 02:46:10Z mike $"
+ * "$Id: backchannel.c 5138 2006-02-21 10:49:06Z mike $"
*
* Backchannel functions 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
* @since CUPS 1.2@
*/
-int /* O - Bytes read or -1 on error */
+ssize_t /* O - Bytes read or -1 on error */
cupsBackChannelRead(char *buffer, /* I - Buffer to read */
- int bytes, /* I - Bytes to read */
+ size_t bytes, /* I - Bytes to read */
double timeout) /* I - Timeout in seconds */
{
fd_set input; /* Input set */
* @since CUPS 1.2@
*/
-int /* O - Bytes written or -1 on error */
+ssize_t /* O - Bytes written or -1 on error */
cupsBackChannelWrite(
const char *buffer, /* I - Buffer to write */
- int bytes, /* I - Bytes to write */
+ size_t bytes, /* I - Bytes to write */
double timeout) /* I - Timeout in seconds */
{
fd_set output; /* Output set */
struct timeval tval; /* Timeout value */
int status; /* Select status */
- int count, /* Current bytes */
- total; /* Total bytes */
+ ssize_t count; /* Current bytes */
+ size_t total; /* Total bytes */
/*
/*
- * End of "$Id: backchannel.c 5099 2006-02-13 02:46:10Z mike $".
+ * End of "$Id: backchannel.c 5138 2006-02-21 10:49:06Z mike $".
*/