home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
g
/
gtak212.zip
/
LIBX
/
inherit.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-24
|
646b
|
39 lines
#ifdef OS2
/* $Id: inherit.c,v 1.6 1992/03/30 21:41:49 ak Exp $ */
static char *rcsid = "$Id: inherit.c,v 1.6 1992/03/30 21:41:49 ak Exp $";
#define INCL_FILEMGR
#include <os2.h>
void
noinherit(int fd)
{
#if OS2 >= 2
ULONG s;
DosQueryFHState(fd, &s);
DosSetFHState(fd, (s & ~0x77) | 0x80);
#else
USHORT s;
DosQFHandState(fd, &s);
DosSetFHandState(fd, (s & ~0x77) | 0x80);
#endif
}
void
inherit(int fd)
{
#if OS2 >= 2
ULONG s;
DosQueryFHState(fd, &s);
DosSetFHState(fd, (s & ~0x77) & ~0x80);
#else
USHORT s;
DosQFHandState(fd, &s);
DosSetFHandState(fd, (s & ~0x77) & ~0x80);
#endif
}
#endif