gis@datlog.co.uk ( Ian Stewartson ) (12/13/89)
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