lseek3d.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1989-2011 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> *
* Eduardo Krell <ekrell@adexus.cl> *
* *
***********************************************************************/
#pragma prototyped
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#define lseek ______lseek
#endif
#define _def_syscall_3d 1
#define _LS_H 1
#include "3d.h"
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#endif
#ifdef lseek3d
#if !_nosys_lseek64 && _typ_off64_t
{
off64_t r;
int n;
int m;
#if FS
#endif
if (!seekf)
break;
if (m >= 0)
{
r = (*state.trap.intercept[m].call)(&state.trap.intercept[m], MSG_seek, SYS3D_lseek64, (void*)fd, (void*)&off, (void*)op, NiL, NiL, NiL) ? -1 : off;
}
else
#if FS
if (r != (off64_t)(-1))
{
if (mp)
}
#endif
return r;
}
#endif
{
off_t r;
#if FS
#endif
if (sizeof(off_t) > sizeof(long))
{
if (!seekf)
}
return -1;
#if FS
if (mp)
#endif
return r;
}
#else
#endif