]>
Commit | Line | Data |
---|---|---|
f3a3214e LT |
1 | #ifndef PKTLINE_H |
2 | #define PKTLINE_H | |
3 | ||
07d68930 DS |
4 | #include "git-compat-util.h" |
5 | ||
f3a3214e LT |
6 | /* |
7 | * Silly packetized line writing interface | |
8 | */ | |
9 | void packet_flush(int fd); | |
4ec99bf0 | 10 | void packet_write(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3))); |
f3a3214e LT |
11 | |
12 | int packet_read_line(int fd, char *buffer, unsigned size); | |
583b7ea3 | 13 | ssize_t safe_write(int, const void *, ssize_t); |
f3a3214e LT |
14 | |
15 | #endif |