tldm-universe/Ardent/UV/gcidir/include/JOB.h

77 lines
1.9 KiB
C
Raw Normal View History

2024-09-09 21:51:08 +00:00
#ifndef h_JOB
#define h_JOB
/******************************************************************************
*
* Definitions for JOB control functions
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 08/25/98 23601 SAP Dont define rusage
* 07/29/97 20050 SAP Need to include more sys files when WAIT3st
* 07/10/97 20055 SAP Fix solaris build hang.
* 07/01/97 20055 LAG Removed include of system wait.h
* 06/30/97 20055 SAP If system wait() exists, include system wait.h.
* 08/23/95 17242 AGM Replace COMPUTER==WINNT test by MSWIN test
* 03/28/95 16230 SJM WINNT changes
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
*
*****************************************************************************/
#if WAIT3st
# include <sys/wait.h>
# include <sys/time.h>
# include <sys/resource.h>
# include "wait.h"
#else
#if WAIT3fn
# include <sys/wait.h>
#endif
# include "wait.h"
#if TIMEucb
# include <sys/time.h>
# include <sys/resource.h>
#else
#if COMPUTER != IBMrios && COMPUTER != Solaris
struct rusage
{
int dummy;
};
#endif
#endif
#endif
#define JDONE 1
#define JROGUE 2
EXTERN WSTAT jobwait();
EXTERN void jobadd();
EXTERN void jobset();
EXTERN void jobnotify();
EXTERN void jobcheck();
EXTERN int joblist();
struct jobque
{
pid_t pid;
#ifdef MSWIN
HANDLE jhandle;
#endif
int type;
WSTAT stat;
STRING name;
JOB *next;
};
#endif /* end of JOB.h */