diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-01-22 21:51:13 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-01-22 21:51:13 +0000 |
| commit | 59bed6ca87c1297b0c0363c418dfd6f947977474 (patch) | |
| tree | ca574214779cfb78fa7d5b597a0f8767a80402a2 /misc/subr.h | |
| parent | b2a877537a02b903e650bfe175b0894acf99256b (diff) | |
| download | btpd-59bed6ca87c1297b0c0363c418dfd6f947977474.tar.gz btpd-59bed6ca87c1297b0c0363c418dfd6f947977474.zip | |
Added vfsync and vfopen.
Diffstat (limited to 'misc/subr.h')
| -rw-r--r-- | misc/subr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/subr.h b/misc/subr.h index 56448cc..8ad42c2 100644 --- a/misc/subr.h +++ b/misc/subr.h @@ -1,6 +1,9 @@ #ifndef BTPD_SUBR_H #define BTPD_SUBR_H +#include <stdio.h> +#include <stdarg.h> + #define min(x, y) ((x) <= (y) ? (x) : (y)) int set_nonblocking(int fd); @@ -8,7 +11,10 @@ int set_blocking(int fd); int mkdirs(char *path); +int vaopen(int *resfd, int flags, const char *fmt, va_list ap); int vopen(int *resfd, int flags, const char *fmt, ...); +int vfopen(FILE **ret, const char *mode, const char *fmt, ...); +int vfsync(const char *fmt, ...); void set_bit(uint8_t *bits, unsigned long index); int has_bit(const uint8_t *bits, unsigned long index); |