Article View: comp.sys.ibm.pc
Article #8538No Inherit Flag
From: Ian Stewartson
Date: Wed, 13 Dec 1989 12:29
Date: Wed, 13 Dec 1989 12:29
20 lines
1257 bytes
1257 bytes
Does anyone know how to modify the No Inherit flag for a file handler. The flag can be set via the MSDOS Open system call (int 0x21, AH = 0x3d, AL=0x80) and this flag is transfered on dup and dup2. If set, the file is auto-closed by MSDOS on exec or spawn. However, there appears to be no way of testing, clearing or setting the bit on an already open file. If anyone can give me any information about testing, clearing or setting this bit, I would be very grateful. I noted in passing that the Microsoft C V5.1 library open always clears this bit, even though it is defined in the fcntl.h header file. A quick patch resolved that problem. Thanks, Ian Stewartson Data Logic Ltd, Queens House, Greenhill Way, Harrow, Middlesex, HA1 1YR, UK. (Phone) +44 1 863 0383 (Telex) 888103 (Fax) +44 1 861 2010 +44 81 863 0383 after May 1990. (Network) gis@datlog.co.uk or ukc!datlog!gis
Technical Details
Message-ID:
<2365@dlvax2.datlog.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!datlog!gisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!datlog!gis From: gis@datlog.co.uk ( Ian Stewartson ) Newsgroups: comp.sys.ibm.pc Subject: No Inherit Flag Message-ID: <2365@dlvax2.datlog.co.uk> Date: 13 Dec 89 12:29:25 GMT Organization: Data Logic Ltd, Queens House, Greenhill Way, Harrow, London. Lines: 20