/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 1998
* Sleepycat Software. All rights reserved.
*/
#include "config.h"
#ifndef lint
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#include <errno.h>
#include <unistd.h>
#endif
#include "db_int.h"
#include "os_jump.h"
/*
* __os_io --
* Do an I/O.
*
* PUBLIC: int __os_io __P((DB_IO *, int, ssize_t *));
*/
int
int op;
{
int ret;
#ifdef HAVE_PREAD
switch (op) {
case DB_IO_READ:
goto slow;
break;
case DB_IO_WRITE:
goto slow;
break;
}
return (0);
slow:
#endif
goto err;
switch (op) {
case DB_IO_READ:
ret =
break;
case DB_IO_WRITE:
ret =
break;
}
return (ret);
}
/*
* __os_read --
* Read from a file handle.
*
* PUBLIC: int __os_read __P((int, void *, size_t, ssize_t *));
*/
int
int fd;
void *addr;
{
return (errno);
if (nr == 0)
break;
}
return (0);
}
/*
* __os_write --
* Write to a file handle.
*
* PUBLIC: int __os_write __P((int, void *, size_t, ssize_t *));
*/
int
int fd;
void *addr;
{
return (errno);
return (0);
}