Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Machine specific predefined names Message-ID: <7387@brl-smoke.ARPA> Date: 1 Mar 88 21:16:32 GMT References: <1988Feb17.115402.12739@light.uucp> <1988Feb21.015424.20436@utzoo.uucp> <265@aiva.ed.ac.uk> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <265@aiva.ed.ac.uk> richard@uk.ac.ed.aiva (Richard Tobin) writes: >It would also be nice if a user could easily replace the open() function >(for example) with one of their own that could call the original one. I disagree strongly with this. The application writer has no way of knowing what the specific internal library semantics are, making it likely that his meddling would break the behavior of some of the standard library routines. For example, my System V emulation package on a BRL/JHU PDP-11 UNIX kept track of open file descriptors internally. Interception of _open() by an application that was unaware of this could have led to erroneous operation.