
#include "V_s_lc.h"
/*
* Here are debug wrappers for the "seek" system call.
*/

#if defined(USE_syscall) && defined(SYS_lseek)
lseek(f,o,w) {return Lseek(f,o,w);}
#endif

unsigned long d_seek(f,o,w)
	int  f;
	Sizt o;
	int  w;
{	long v;
	int   e;
	V6s "lseek(%d,%08lX=%ld,%d)",f,o,o,w D;
#if defined(USE_syscall) && defined(SYS_lseek)
	v = syscall(SYS_lseek,f,o,w);
#else
	v = lseek(f,o,w);
#endif
	e = errno;
	V6s "lseek(%d,%08lX=%ld,%d)=%ld [Err %d=%s=%s]",f,o,o,w,v,Errinfo D;
	errno = e;
	return(v);
}
