Staging
v0.8.1
Revision 04509738b5779c33e59b93e4959b0ac19acab838 authored by Junio C Hamano on 29 December 2006, 10:25:04 UTC, committed by Junio C Hamano on 29 December 2006, 10:25:04 UTC
Not that this reveals anything new, but I did test_tick shell
function in test-lib and found it rather cute and nice.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent eff7375
Raw File
pkt-line.h
#ifndef PKTLINE_H
#define PKTLINE_H

#include "git-compat-util.h"

/*
 * Silly packetized line writing interface
 */
void packet_flush(int fd);
void packet_write(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3)));

int packet_read_line(int fd, char *buffer, unsigned size);
ssize_t safe_write(int, const void *, ssize_t);

#endif
back to top