Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!usc!samsung!munnari.oz.au!metro!cluster!bruce From: bruce@cs.su.oz (Bruce Janson) Newsgroups: comp.sys.mips Subject: ldopen() Summary: how do I shut it up? Message-ID: <1228@cluster.cs.su.oz.au> Date: 30 Sep 90 14:29:16 GMT Sender: news@cluster.cs.su.oz.au Lines: 26 When I call ldopen() on a file that is neither an ecoff executable nor an archive it insists on writing a message very like this to fd 2: libmld: ldinitheaders:magic number incorrect (0x2369) However, the program that contains the call to ldopen() also checks the return status (from ldopen()) and then gives what I think is a better error message. Without preceeding all calls to ldopen() with a dup2() and close() and then following them with another dup2() and close(), is there a simple way of getting ldopen() to *silently* return its status information? Cheers, bruce. Bruce Janson Basser Department of Computer Science University of Sydney Sydney, N.S.W., 2006 AUSTRALIA Internet: bruce@basser.cs.su.oz.au Telephone: +61-2-692-3264 Fax: +61-2-692-3838