/*********************************************************************
d4port.h   (c)Copyright Sequiter Software Inc., 1996.
All rights reserved.

This is the header file for d4port.c and should be modified by the user
so that the program may compile.

*********************************************************************/
/***USER DEFINE AREA START***/

   #define S4LOCKF
/* #define S4NO_ATOF       */
/* #define S4NO_CHSIZE     */
/* #define S4NO_ECVT       */
/* #define S4NO_FCVT       */
/* #define S4NO_FILELENGTH */
/* #define S4NO_FTIME      */
/* #define S4NO_MEMMOVE    */
/* #define S4NO_POW        */
/* #define S4NO_RENAME     */
/* #define S4NO_REMOVE     */
/* #define S4NO_SIZE_T     */
/* #define S4NO_STRLWR     */
/* #define S4NO_STRUPR     */
/* #define S4NO_STRNICMP   */


/***USER DEFINE AREA END***/

#define T4LOCK_POS 1000000000L

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <math.h>
#include <string.h>
#ifndef S4NO_FTIME
   #include <sys/timeb.h>
#else
   #include <sys/time.h>
#endif

#ifdef S4NO_SIZE_T
   typedef unsigned size_t ;
#endif


/*static void sig_bus(int signo);*/
/* int buserr = 0;*/

static int filelen(int myfile);