File:  [OS/2 SDKs] / os2sdk / demos / examples / vioreg / share.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:11 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1988, HEAD
Microsoft OS/2 SDK 03-01-1988

/*
 * This is a common include file used by examples REGISTER, ACCESS, and
 * REPLACE  (found in VIOSUB.C).
 * It contains the declaration of the shared memory segment.
 *
 * Copyright (C) Microsoft Corp. 1988
 */

/* size of shared memory segment */
#define SHRSEGSIZE	sizeof(struct ShareRec)

#define SHRSEGNAME	"\\SHAREMEM\\SHARESEG.DAT"	  /* shared seg name */
#define WAITFOREVER	-1L		/* no timeout if semaphore is owned */

struct ShareRec {
	unsigned long	updated;	/* buffer access semaphore */
	unsigned long	mutexsem;	/* buffer access semaphore */
	int		count;		/* buffer write pointer */
	int		totalength;
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.