1N/A/*-
1N/A * See the file LICENSE for redistribution information.
1N/A *
1N/A * Copyright (c) 1997, 1998
1N/A * Sleepycat Software. All rights reserved.
1N/A *
1N/A * @(#)os.h 10.11 (Sleepycat) 10/12/98
1N/A */
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A/*
1N/A * We group seek/write calls into a single function so that we can use
1N/A * pread(2)/pwrite(2) where they're available.
1N/A */
1N/A#define DB_IO_READ 1
1N/A#define DB_IO_WRITE 2
1N/Atypedef struct __io {
1N/A int fd_io; /* I/O file descriptor. */
1N/A int fd_lock; /* Locking file descriptor. */
1N/A db_mutex_t *mutexp; /* Mutex to lock. */
1N/A size_t pagesize; /* Page size. */
1N/A db_pgno_t pgno; /* Page number. */
1N/A u_int8_t *buf; /* Buffer. */
1N/A size_t bytes; /* Bytes read/written. */
1N/A} DB_IO;