Missed this file to the club.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
02193d0df5
commit
c302a6742b
@ -9,7 +9,7 @@
|
|||||||
#include <util/kernel_cpp.h>
|
#include <util/kernel_cpp.h>
|
||||||
|
|
||||||
#include "Handle.h"
|
#include "Handle.h"
|
||||||
#include "toscalls."
|
#include "toscalls.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (X)BIOS supports char and block devices with a separate namespace
|
* (X)BIOS supports char and block devices with a separate namespace
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
Handle::Handle(int handle)
|
Handle::Handle(int handle)
|
||||||
:
|
:
|
||||||
fHandle((int16)handle),
|
fHandle((int16)handle)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +97,8 @@ CharHandle::~CharHandle()
|
|||||||
ssize_t
|
ssize_t
|
||||||
CharHandle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize)
|
CharHandle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize)
|
||||||
{
|
{
|
||||||
const char *string = (const char *)buffer;
|
char *string = (char *)buffer;
|
||||||
|
int i;
|
||||||
|
|
||||||
// can't seek
|
// can't seek
|
||||||
for (i = 0; i < bufferSize; i++) {
|
for (i = 0; i < bufferSize; i++) {
|
||||||
@ -114,6 +115,7 @@ ssize_t
|
|||||||
CharHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize)
|
CharHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize)
|
||||||
{
|
{
|
||||||
const char *string = (const char *)buffer;
|
const char *string = (const char *)buffer;
|
||||||
|
int i;
|
||||||
|
|
||||||
// can't seek
|
// can't seek
|
||||||
|
|
||||||
@ -126,11 +128,3 @@ CharHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSi
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
off_t
|
|
||||||
CharHandle::Size() const
|
|
||||||
{
|
|
||||||
// ToDo: fix this!
|
|
||||||
return 1024LL * 1024 * 1024 * 1024;
|
|
||||||
// 1024 GB
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ KernelMergeObject boot_platform_atari_m68k.o :
|
|||||||
#bios.S
|
#bios.S
|
||||||
console.cpp
|
console.cpp
|
||||||
#serial.cpp
|
#serial.cpp
|
||||||
|
Handle.cpp
|
||||||
devices.cpp
|
devices.cpp
|
||||||
keyboard.cpp
|
keyboard.cpp
|
||||||
menu.cpp
|
menu.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user