version 1.54, 2005/05/24 06:42:38 |
version 1.55, 2005/05/26 22:27:11 |
|
|
return (fbuf); |
return (fbuf); |
} |
} |
|
|
|
|
/* |
/* |
* cvs_sendreq() |
* cvs_sendreq() |
* |
* |
|
|
* |
* |
* Get a line from the remote end and store it in <lbuf>. The terminating |
* Get a line from the remote end and store it in <lbuf>. The terminating |
* newline character is stripped from the result. |
* newline character is stripped from the result. |
|
* Returns the length in bytes of the line (not including the NUL byte), or |
|
* -1 on failure. |
*/ |
*/ |
int |
int |
cvs_getln(struct cvsroot *root, char *lbuf, size_t len) |
cvs_getln(struct cvsroot *root, char *lbuf, size_t len) |
|
|
if ((rlen > 0) && (lbuf[rlen - 1] == '\n')) |
if ((rlen > 0) && (lbuf[rlen - 1] == '\n')) |
lbuf[--rlen] = '\0'; |
lbuf[--rlen] = '\0'; |
|
|
return (0); |
return (rlen); |
} |
} |
|
|
|
|
|
|
if (cvs_server_inlog != NULL) { |
if (cvs_server_inlog != NULL) { |
fputs(line, cvs_server_inlog); |
fputs(line, cvs_server_inlog); |
if (nl) |
if (nl) |
fputc('\n', cvs_server_inlog); |
putc('\n', cvs_server_inlog); |
} |
} |
fputs(line, out); |
fputs(line, out); |
if (nl) |
if (nl) |
fputc('\n', out); |
putc('\n', out); |
return (0); |
return (0); |
} |
} |
|
|