delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/15/17:45:28

Message-Id: <3.0.1.32.19971015164325.0069d4d4@yacker.xiotech.com>
Date: Wed, 15 Oct 1997 16:43:25 -0500
To: djgpp-workers AT delorie DOT com
From: Randy Maas <randym AT xiotech DOT com>
Subject: 971009: FileSysExt's Rev D. p4
Mime-Version: 1.0

--=====================_876969805==_
Content-Type: text/plain; charset="us-ascii"

Attached are the new .h files.  Only one should go it /includle/sys
(ipc.h) .  The other (_ipc.h) really shouldnt...

Randy Maas
randym AT acm DOT orh
--=====================_876969805==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="_ipc.h"

/*
   1997, Randall Maas
   DON'T INSTALL ME IN THE INCLUDES FOLDER.  LOCAL USE ONLY
  
*/

# include <stdio.h>
# include <sys/types.h>
# include <sys/ipc.h>
# include <sys/fsext.h>
# include <fcntl.h>
# include <unistd.h>
# include <malloc.h>
# include <dpmi.h>
# include <io.h>
# include <string.h>
# include <errno.h>

# if !defined(Max)
#  define Max(a,b) ((a)>(b)?(a):(b))
# endif
# if !defined(Min)
#  define Min(a,b) ((a)<(b)?(a):(b))
# endif

typedef struct
{
   int      FD;       /* The IO handle to actually read and write to */
   off_t    Ofs;      /* The offset of the transfer area */
} tranarea;

typedef struct
{
   unsigned RefCount; /* The number times this has been dup'd */
   tranarea Sink;     /* Where the data comes out */
   tranarea Source;   /* Where the data goes in */
   int      Mode;     /* The IO mode of the pipe. */
} bd_pipe;

--=====================_876969805==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="ipc.h"

/*
   Inter-process (or program) communication prototypes
   1997, Randall Maas
   Install me in the include folder

   This does not comply, define or attempt to provide any posix, or other
   standard functionality.  It is meant to provide functionality may be used
   to emulate such a standard, tho'
 */

#if !defined(__IPC_h)
# define __IPC_h
# include <unistd.h>

/*
  */

extern int IPC_Use_lock;
/*
*/
// IPC_Use_lock should be a flag on the _ipc_pipe call..

extern ssize_t _ipc_pipe(int Transfer_FD, int filedes[2], int mode);
#endif

--=====================_876969805==_
Content-Type: text/plain; charset="us-ascii"



--=====================_876969805==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019