filelock.h
Go to the documentation of this file.
#ifndef WIBBLE_SYS_FILELOCK_H
#define WIBBLE_SYS_FILELOCK_H
#include <wibble/sys/macros.h>
#ifdef POSIX
#include <fcntl.h>
namespace wibble {
namespace sys {
namespace fs {
struct FileLock
{
int fd;
struct flock lock;
FileLock(int fd, short l_type, short l_whence=SEEK_SET, off_t l_start=0, off_t l_len=0);
~FileLock();
private:
// Disallow copying
FileLock(const FileLock&);
FileLock& operator=(const FileLock&);
};
}
}
}
// vim:set ts=4 sw=4:
#endif
#endif
macros.h
wibble
Definition: amorph.h:17