Newsgroups: comp.sys.transputer
From: mse@wolverine.utias.utoronto.ca (Manfred Sever)
Subject: ANSI C: Missing macros and definitions
Organization: University of Toronto Institute for Aerospace Studies
Date: 18 May 94 22:44:59 GMT
Message-ID: <1994May18.184459.26345@jarvis.csri.toronto.edu>


Attention all INMOS ANSI C Toolset users!

I am in the process of porting a library of matrix
manipulation utilities to the INMOS Transputer,
using the ANSI C Toolset.

The code was originally written for Unix-based workstations
such as the Sparc and RS6000.

In compiling the code under ICC, the following function 
definitions were missing:
  fileno()
  isascii()


In the libraries for the Sun Sparc C compilers (CC and ACC),
the function ``isascii()'' is included in the header file
``ctype.h''.  This function is missing from ctype.h supplied
by INMOS.

Also, for the Sun Sparc C compilers, ``fileno()'' is defined
in the header ``stdio.h''.  This is not the case with the
INMOS compiler.

I haven't been able to find definitions for these macros/
functions anywhere is the ANSI C Toolset.

Does anybody know what the equivalent names for the above
are in the INMOS ANSI C Toolset? (Or do they not exist?)
Has anybody written definitions for these functions, or
ported C code that required the above to be defined?

Anybody out there know C well enough to give me a hand?

Your help would be most appreciated.

Manfred.

-- 
===============================================================================
Manfred D. M. Sever               |
                                  |
Space Robotics Group,             | E-mail: sever@ecf.utoronto.ca

