sortix/io.cpp now uses <sortix/seek.h>.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-02-24 22:02:01 +01:00
parent cbdf54fcdd
commit 7ebed6dd6a
1 changed files with 1 additions and 11 deletions

View File

@ -24,6 +24,7 @@
#include "platform.h"
#include <libmaxsi/error.h>
#include <sortix/seek.h>
#include "thread.h"
#include "process.h"
#include "device.h"
@ -117,17 +118,6 @@ namespace Sortix
return 0;
}
// TODO: Get these from unistd.h or something.
#ifndef SEEK_SET
#define SEEK_SET 0 /* Seek from beginning of file. */
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1 /* Seek from current position. */
#endif
#ifndef SEEK_END
#define SEEK_END 2 /* Seek from end of file. */
#endif
void SysSeek(int fd, off_t* offset, int whence)
{
// TODO: Validate that offset is a legal user-space off_t!