|
|
@ -35,7 +35,7 @@ typedef struct buffer {
|
|
|
|
int fd; /* passed as first argument to op */
|
|
|
|
int fd; /* passed as first argument to op */
|
|
|
|
} buffer;
|
|
|
|
} buffer;
|
|
|
|
|
|
|
|
|
|
|
|
#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, NULL, (fd) }
|
|
|
|
#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
|
|
|
|
#define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) }
|
|
|
|
#define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) }
|
|
|
|
#define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
|
|
|
|
#define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
|
|
|
|
#define BUFFER_INSIZE 8192
|
|
|
|
#define BUFFER_INSIZE 8192
|
|
|
|