]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/disk.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 */
43 int file_open(const char *path
, int mode
);
44 void file_close(int fd
);
46 /* Adapter file_write for object callbacks */
49 FreeObject(void *address
)
51 O
*anObject
= static_cast <O
*>(address
);
55 void file_write(int, off_t
, void const *, int len
, DWCB
*, void *, FREE
*);
56 void file_write_mbuf(int fd
, off_t
, MemBuf mb
, DWCB
* handler
, void *handler_data
);
57 void file_read(int, char *, int, off_t
, DRCB
*, void *);
59 void safeunlink(const char *path
, int quiet
);
60 int xrename(const char *from
, const char *to
); //disk.cc
62 #endif /* SQUID_DISK_H_ */