/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2012 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "sfdchdr.h"
/* Discipline to turn on direct IO capability.
** This currently only works for XFS on SGI's.
**
** Written by Kiem-Phong Vo, kpv@research.att.com, 03/18/1998.
*/
#ifndef FDIRECT
#endif
typedef struct _direct_s
#ifdef F_DIOINFO
#endif
} Direct_t;
/* convert a pointer to an int */
#if __STD_C
#else
Sfio_t* f;
size_t n;
int type;
#endif
{
done = 0; /* amount processed by direct IO */
rv = 0;
#ifdef F_DIOINFO
{ /* direct IO ok, make sure we're in the right mode */
}
if(rv > 0)
}
break;
}
}
{ /* turn off directIO for remaining IO operation */
}
#endif /*F_DIOINFO*/
}
#if __STD_C
#else
Sfio_t* f;
size_t n;
#endif
{
}
#if __STD_C
#else
Sfio_t* f;
size_t n;
#endif
{
}
#if __STD_C
#else
Sfio_t* f;
int type;
#endif
{
{
#ifdef F_DIOINFO
}
#endif
}
return 0;
}
#if __STD_C
#else
Sfio_t* f;
#endif
{
#ifndef F_DIOINFO
return -1;
#else
int cntl;
return -1;
return -1;
return -1;
}
goto no_direct;
if(bufsize > 0)
if(bufsize <= 0)
goto no_direct;
goto no_direct;
}
else
goto no_direct;
}
return -1;
}
return 0;
#endif /*F_DIOINFO*/
}