LOGBUF_SIZE
#define LOGBUF_MASK (LOGBUF_SIZE - 1)
char LogBuf[LOGBUF_SIZE];
if (plen <= (size_t)(LOGBUF_SIZE - i)) {
bcopy(prefix, LogBuf + i, LOGBUF_SIZE - i);
plen -= LOGBUF_SIZE - i;
if (bytes <= (size_t)(LOGBUF_SIZE - i)) {
bcopy(buf, LogBuf + i, LOGBUF_SIZE - i);
bytes -= LOGBUF_SIZE - i;
if (i < LOGBUF_SIZE) {
write(fd, LogBuf + i, LOGBUF_SIZE - i);