]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/fs_io.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 06 Disk I/O Routines */
11 #ifndef SQUID_FS_IO_H_
12 #define SQUID_FS_IO_H_
14 #include "mem/forward.h"
15 #include "typedefs.h" //DRCB, DWCB
44 int file_open(const char *path
, int mode
);
45 void file_close(int fd
);
46 void file_write(int, off_t
, void const *, int len
, DWCB
*, void *, FREE
*);
47 void file_write_mbuf(int fd
, off_t
, MemBuf mb
, DWCB
* handler
, void *handler_data
);
48 void file_read(int, char *, int, off_t
, DRCB
*, void *);
49 void safeunlink(const char *path
, int quiet
);
50 int xrename(const char *from
, const char *to
);
52 int fsBlockSize(const char *path
, int *blksize
);
53 int fsStats(const char *, int *, int *, int *, int *);
55 #endif /* SQUID_FS_IO_H_ */