[comp.sys.mips] ldopen

bruce@cs.su.oz (Bruce Janson) (09/30/90)

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