66 lines
2.5 KiB
C
66 lines
2.5 KiB
C
|
#ifndef h_NET
|
||
|
#define h_NET
|
||
|
/****************************************************************************
|
||
|
*
|
||
|
* NET.h - standard Network daemon data definitions
|
||
|
*
|
||
|
* 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.
|
||
|
* 03/08/96 18103 GMM Added UVNET_ENV_VAR
|
||
|
* 05/01/95 16244 GMM taken out INCLUDED_SY_STAT_H
|
||
|
* 03/21/95 16189 AGM NT only: Move the SY_STAT_H include to MFILE.h
|
||
|
* 06/16/94 13588 SHK Undo last univel change
|
||
|
* 10/07/93 12382 FAI Port to Univel.
|
||
|
* 08/18/93 11392 TMC fix problem of multiple include SY_STAT_H (execute.h)
|
||
|
* 12/20/90 7868 TMC Port Rel 5.7 to Rel 7
|
||
|
* 06/13/90 4944 TMC Network phase II
|
||
|
* 06/19/89 6077 GPS TCP/IP for Eurotech.
|
||
|
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
|
||
|
*
|
||
|
***************************************************************************/
|
||
|
|
||
|
#include "DBFILE.h"
|
||
|
#include "MFILE.h"
|
||
|
|
||
|
#include SY_STAT_H
|
||
|
|
||
|
/* define our UVNET environment variable for holding remote user information.
|
||
|
(Note that this is required outside the "if NETWORK" ifdef) */
|
||
|
|
||
|
#define UVNET_ENV_VAR "UVNETRID"
|
||
|
|
||
|
#if NETwork
|
||
|
|
||
|
/* Action code for NETsemop */
|
||
|
|
||
|
#define _NETfsemp 1 /* Set file lock */
|
||
|
#define _NETfsemv 2 /* Clear file lock */
|
||
|
#define _NETrsemp 3 /* Set group read lock */
|
||
|
#define _NETrsemv 4 /* Clear group read lock */
|
||
|
#define _NETwsemp 5 /* Set group write lock */
|
||
|
#define _NETwsemu 6 /* Clear group write lock and touch READU table */
|
||
|
#define _NETwsemv 7 /* Clear group write lock */
|
||
|
#define _NETclrlk 8 /* Clear all readu locks */
|
||
|
|
||
|
#define LMCNAME 25 /* Length of Nodename on TCP/IP */
|
||
|
#define LFNAME 256 /* Length of FILE NAME */
|
||
|
#define NETFMAX 128 /* Number of file table entries in uvnetd */
|
||
|
#define MAXfdVAL 10000 /* Maximum value of fd returned by open(2) */
|
||
|
#define MAXNODES 40 /* Maximum number of nodes in NET.CONFIG file*/
|
||
|
#define DBRWSBUF 10 /* Buffer shift for DBRWBUF */
|
||
|
#define DBRWBUF (1<<DBRWSBUF) /* Buffer size for read and write data */
|
||
|
|
||
|
#endif /* Networking defined */
|
||
|
#endif /* end of NET.h */
|