/*-
* 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>
#endif
#include "db_int.h"
#include "os_jump.h"
/*
* __os_exists --
* Return if the file exists.
*
* PUBLIC: int __os_exists __P((const char *, int *));
*/
int
const char *path;
int *isdirp;
{
return (errno);
#if !defined(S_ISDIR) || defined(STAT_MACROS_BROKEN)
#else
#endif
#endif
return (0);
}
/*
* __os_ioinfo --
* Return file size and I/O size; abstracted to make it easier
* to replace.
*
* PUBLIC: int __os_ioinfo
* PUBLIC: __P((const char *, int, u_int32_t *, u_int32_t *, u_int32_t *));
*/
int
const char *path;
int fd;
{
return (errno);
/* Return the size of the file. */
/*
* Return the underlying filesystem blocksize, if available.
*
* XXX
* but it's always 0.
*/
#ifdef HAVE_ST_BLKSIZE
*iosizep = DB_DEF_IOSIZE;
#else
*iosizep = DB_DEF_IOSIZE;
#endif
return (0);
}