🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #1654

Re: vax c ---> mips c

#1654
From: Bradford R. Daniels
Date: Sat, 30 Jun 1990 16:34
23 lines
1630 bytes
In article <DAVIS.90Jun30113823@pacific.pacific.mps.ohio-state.edu>,
davis@pacific.pacific.mps.ohio-state.edu ("John E. Davis") writes:
> ...  It seems that mips
> c does not have the 'system' function or the 'getenv' function both of which
> are in the stdlib.h include file.  Does mips c have replacements for these?
> Also any hints on making the switch would be appreciated.

Have you tried linking?  Those functions should be in the MIPS C RTL.
They are pretty standard Unix functions, and both are mentioned in
section 3 of my copy of the MIPS ULTRIX docset.  I think what is con-
fusing you is that stdlib.h is not available on MIPS ULTRIX yet.
It is an ANSI standard header, and the current release of MIPS
ULTRIX is much farther from ANSI standard than VAX C.

Try doing a "man system" and a "man getenv" at the command prompt
on your DECstation.

- Brad

-----------------------------------------------------------------
Brad Daniels			|  Digital Equipment Corp. almost
DEC Software Devo		|  definitely wouldn't approve of
"VAX C RTL Whipping Boy"	|  anything I say here...
Technical Details
Message-ID: <12986@shlump.nac.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!hanoi.enet.dec.com!daniels
References: <DAVIS.90Jun30113823@pacific.pacific.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!hanoi.enet.dec.com!daniels
From: daniels@hanoi.enet.dec.com (Bradford R. Daniels)
Newsgroups: comp.sys.dec
Subject: Re: vax c ---> mips c
Message-ID: <12986@shlump.nac.dec.com>
Date: 30 Jun 90 16:34:56 GMT
References: <DAVIS.90Jun30113823@pacific.pacific.mps.ohio-state.edu>
Sender: newsdaemon@shlump.nac.dec.com
Reply-To: daniels@hanoi.enet.dec.com (Bradford R. Daniels)
Distribution: comp
Organization: Digital Equipment Corp.
Lines: 23