headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / boot / loader / file_systems / bfs / Link.cpp
blobc5159a2003cfcbbeab96cb572de44b8056e4c269
1 /*
2 * Copyright 2004-2013, Axel Dörfler, axeld@pinc-software.de.
3 * This file may be used under the terms of the MIT License.
4 */
7 #include "Link.h"
10 namespace BFS {
13 Link::Link(Volume &volume, block_run run)
14 : File(volume, run)
19 Link::Link(Volume &volume, off_t id)
20 : File(volume, id)
25 Link::Link(const Stream &stream)
26 : File(stream)
31 status_t
32 Link::InitCheck()
34 return fStream.InitCheck();
38 status_t
39 Link::ReadLink(char *buffer, size_t bufferSize)
41 return fStream.ReadLink(buffer, bufferSize);
45 ssize_t
46 Link::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize)
48 return B_NOT_ALLOWED;
52 ssize_t
53 Link::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize)
55 return B_NOT_ALLOWED;
59 int32
60 Link::Type() const
62 return S_IFLNK;
66 } // namespace BFS