mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
sortix/io.cpp now uses <sortix/seek.h>.
This commit is contained in:
parent
cbdf54fcdd
commit
7ebed6dd6a
1 changed files with 1 additions and 11 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Reference in a new issue